]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: proto: fixed a rreply symbol
authorAna Rey <anarey@gmail.com>
Mon, 17 Feb 2014 10:46:11 +0000 (10:46 +0000)
committerPatrick McHardy <kaber@trash.net>
Mon, 17 Feb 2014 10:46:11 +0000 (10:46 +0000)
There is a bug with rreply symbol. The rreply and reply symbol were the same.

There is a reproduction of this bug here:
$ sudo nft add rule arp art-t filter arp operation reply
$ sudo nft list table arp art-t
table arp art-t {
        chain filter {
 type filter hook input priority 0;
                 arp operation 512
        }
}

$ sudo nft add rule arp art-t filter arp operation rreply
$ sudo nft list table arp art-t
table arp art-t {
        chain filter {
 type filter hook input priority 0;
                 arp operation 512  <=====
                 arp operation 512  <=====
        }
}

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/proto.c

index cc073af0e2c934574d9b334956dc9aec6244702f..3e62f92a11e4584821600bbdf9c57f42ee142823 100644 (file)
@@ -661,7 +661,7 @@ static const struct symbol_table arpop_tbl = {
                SYMBOL("request",       ARPOP_REQUEST),
                SYMBOL("reply",         ARPOP_REPLY),
                SYMBOL("rrequest",      ARPOP_RREQUEST),
-               SYMBOL("rreply",        ARPOP_REPLY),
+               SYMBOL("rreply",        ARPOP_RREPLY),
                SYMBOL("inrequest",     ARPOP_InREQUEST),
                SYMBOL("inreply",       ARPOP_InREPLY),
                SYMBOL("nak",           ARPOP_NAK),