diff options
-rw-r--r-- | extensions/libarpt_standard.t | 4 | ||||
-rw-r--r-- | iptables/nft-arp.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/extensions/libarpt_standard.t b/extensions/libarpt_standard.t index a2b0a36a..b9a35606 100644 --- a/extensions/libarpt_standard.t +++ b/extensions/libarpt_standard.t @@ -16,3 +16,7 @@ --src-mac ! 01:02:03:04:05:06 --dst-mac ! 07:08:09:0A:0B:0C --h-length ! 6 --opcode ! Request --h-type ! Ethernet --proto-type ! ipv4;! --src-mac 01:02:03:04:05:06 ! --dst-mac 07:08:09:0a:0b:0c ! --h-length 6 ! --opcode 1 ! --h-type 0x1 ! --proto-type 0x800;OK --h-type 10;--h-type 0x10;OK --h-type 0x10;=;OK +--proto-type 10;--proto-type 0xa;OK +--proto-type 10/10;--proto-type 0xa/0xa;OK +--proto-type 0x10;=;OK +--proto-type 0x10/0x10;=;OK diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 83aec500..38b2ab39 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -339,7 +339,7 @@ after_devdst: else printf("--proto-type 0x%x", tmp); if (fw->arp.arpro_mask != 65535) - printf("/%x", ntohs(fw->arp.arpro_mask)); + printf("/0x%x", ntohs(fw->arp.arpro_mask)); sep = " "; } } |