Skip to content
Snippets Groups Projects
Unverified Commit d342ce9d authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Merge branch 'fwup_type_net'

parents c7d6e553 0218cb36
Branches
Tags
No related merge requests found
...@@ -49,13 +49,15 @@ The sets may have different types. The types are specified by ...@@ -49,13 +49,15 @@ The sets may have different types. The types are specified by
single-character code in the protocol. single-character code in the protocol.
[options="header"] [options="header"]
|=================================================================================== |====================================================================================
|Code |Kernel type |Family |Description |Note |Code |Kernel type |Family |Description |Note
|`i` |hash:ip |IPv4 |Single IPv4 address | |`i` |hash:ip |IPv4 |Single IPv4 address |
|`I` |hash:ip |IPv6 |Single IPv6 address | |`I` |hash:ip |IPv6 |Single IPv6 address |
|`b` |hash:ip,port |IPv4 |IPv4 address and port |Both tcp and udp ports are added |`b` |hash:ip,port |IPv4 |IPv4 address and port |Both tcp and udp ports are added
|`B` |hash:ip,port |IPv6 |IPv6 address and port |Both tcp and udp ports are added |`B` |hash:ip,port |IPv6 |IPv6 address and port |Both tcp and udp ports are added
|=================================================================================== |`n` |hash:net |IPv4 |IPv4 address in net-set|Used for IPs, not nets
|`N` |hash:net |IPv6 |IPv6 address in net-set|Used for IPs, not nets
|====================================================================================
Note that in case it says that both tcp and udp ports are added, there Note that in case it says that both tcp and udp ports are added, there
are two items generated in the kernel for each one address sent from are two items generated in the kernel for each one address sent from
......
...@@ -76,6 +76,16 @@ const struct set_type set_types[256] = { ...@@ -76,6 +76,16 @@ const struct set_type set_types[256] = {
.family = "inet6", .family = "inet6",
.addr2str = inet62str .addr2str = inet62str
}, },
['n'] = {
.desc = "hash:net",
.family = "inet",
.addr2str = inet2str
},
['N'] = {
.desc = "hash:net",
.family = "inet6",
.addr2str = inet62str
},
['b'] = { ['b'] = {
.desc = "hash:ip,port", .desc = "hash:ip,port",
.family = "inet", .family = "inet",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment