diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-03-18 17:24:50 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-03-18 17:24:50 +0100 |
commit | f284b0d07b5d99e745312cbcc0fd95a6a4a7f5b4 (patch) | |
tree | 8dc08a86b3c9cc78456aaff8995db2f6f4fca9c6 /lib/parse.c | |
parent | 6b88433a9334f3f0fc44ee52867326ce20c4af15 (diff) |
SCTP, UDPLITE support added
SCTP and UDPLITE port support added to the hash:*port* types.
Diffstat (limited to 'lib/parse.c')
-rw-r--r-- | lib/parse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/parse.c b/lib/parse.c index cd1ad32..0c15231 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -500,10 +500,9 @@ ipset_parse_proto_port(struct ipset_session *session, p = *(const uint8_t *) ipset_data_get(data, IPSET_OPT_PROTO); switch (p) { case IPPROTO_TCP: - proto = tmp; - tmp = a; - goto parse_port; + case IPPROTO_SCTP: case IPPROTO_UDP: + case IPPROTO_UDPLITE: proto = tmp; tmp = a; goto parse_port; |