diff options
author | Phil Sutter <phil@nwl.cc> | 2019-06-07 19:25:25 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-08 00:04:24 +0200 |
commit | b089c42f4ba806b93e16bae4e3963f12a33deaf3 (patch) | |
tree | 472a7b6e9fee6c78e4b633c42f5c809bc6fe36fc /tests/py/arp/arp.t.json | |
parent | 5edf80a14b8e3eafa3fbcef073f87e04da5264db (diff) |
tests/py: Add missing arp.t JSON equivalents
Fixes: 4b0f2a712b579 ("src: support for arp sender and target ethernet and IPv4 addresses")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/arp/arp.t.json')
-rw-r--r-- | tests/py/arp/arp.t.json | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/tests/py/arp/arp.t.json b/tests/py/arp/arp.t.json index 4b0439e6..0ea62645 100644 --- a/tests/py/arp/arp.t.json +++ b/tests/py/arp/arp.t.json @@ -816,6 +816,70 @@ } ] +# arp saddr ip 1.2.3.4 +[ + { + "match": { + "left": { + "payload": { + "field": "saddr ip", + "protocol": "arp" + } + }, + "op": "==", + "right": "1.2.3.4" + } + } +] + +# arp daddr ip 4.3.2.1 +[ + { + "match": { + "left": { + "payload": { + "field": "daddr ip", + "protocol": "arp" + } + }, + "op": "==", + "right": "4.3.2.1" + } + } +] + +# arp saddr ether aa:bb:cc:aa:bb:cc +[ + { + "match": { + "left": { + "payload": { + "field": "saddr ether", + "protocol": "arp" + } + }, + "op": "==", + "right": "aa:bb:cc:aa:bb:cc" + } + } +] + +# arp daddr ether aa:bb:cc:aa:bb:cc +[ + { + "match": { + "left": { + "payload": { + "field": "daddr ether", + "protocol": "arp" + } + }, + "op": "==", + "right": "aa:bb:cc:aa:bb:cc" + } + } +] + # meta iifname "invalid" arp ptype 0x0800 arp htype 1 arp hlen 6 arp plen 4 @nh,192,32 0xc0a88f10 @nh,144,48 set 0x112233445566 [ { |