diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-06-04 17:30:24 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-06-04 17:30:24 +0000 |
commit | 37aa26983847cf1be7884427b16815da84e6b82a (patch) | |
tree | 50a1b300c736226eec810e5a162913ea49fdc18f /extensions | |
parent | 96e24fbed8e9e45c82e500eb4d34293696dced23 (diff) | |
download | conntrack-tools-37aa26983847cf1be7884427b16815da84e6b82a.tar.gz conntrack-tools-37aa26983847cf1be7884427b16815da84e6b82a.zip |
add aliases --sport and --dport to make it more iptables-like
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libct_proto_tcp.c | 2 | ||||
-rw-r--r-- | extensions/libct_proto_udp.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/extensions/libct_proto_tcp.c b/extensions/libct_proto_tcp.c index 5a5c5c4..1f0cde6 100644 --- a/extensions/libct_proto_tcp.c +++ b/extensions/libct_proto_tcp.c @@ -19,7 +19,9 @@ static struct option opts[] = { {"orig-port-src", 1, 0, '1'}, + {"sport", 1, 0, '1'}, {"orig-port-dst", 1, 0, '2'}, + {"dport", 1, 0, '2'}, {"reply-port-src", 1, 0, '3'}, {"reply-port-dst", 1, 0, '4'}, {"mask-port-src", 1, 0, '5'}, diff --git a/extensions/libct_proto_udp.c b/extensions/libct_proto_udp.c index bae9bf8..ff9c3d2 100644 --- a/extensions/libct_proto_udp.c +++ b/extensions/libct_proto_udp.c @@ -19,7 +19,9 @@ static struct option opts[] = { {"orig-port-src", 1, 0, '1'}, + {"sport", 1, 0, '1'}, {"orig-port-dst", 1, 0, '2'}, + {"dport", 1, 0, '2'}, {"reply-port-src", 1, 0, '3'}, {"reply-port-dst", 1, 0, '4'}, {"mask-port-src", 1, 0, '5'}, |