summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Berger <stefanb@us.ibm.com>2011-05-23 19:41:18 -0400
committerStefan Berger <stefanb@us.ibm.com>2011-05-23 19:41:18 -0400
commitfcb0e8c2275f108b595f37defbe3c6de5bfc849e (patch)
treee308a580d2e632c992401043e485b215cf4dbfb1 /tests
parentqemu: don't require is_kvm for vhost-net support (diff)
downloadlibvirt-fcb0e8c2275f108b595f37defbe3c6de5bfc849e.tar.gz
libvirt-fcb0e8c2275f108b595f37defbe3c6de5bfc849e.tar.bz2
libvirt-fcb0e8c2275f108b595f37defbe3c6de5bfc849e.zip
nwfilter: enable filtering of gratuitous ARP packets
This patch enables filtering of gratuitous ARP packets using the following XML: <rule action='accept' direction='in' priority='425'> <arp gratuitous='true'/> </rule>
Diffstat (limited to 'tests')
-rw-r--r--tests/nwfilterxml2xmlin/arp-test.xml4
-rw-r--r--tests/nwfilterxml2xmlout/arp-test.xml3
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/nwfilterxml2xmlin/arp-test.xml b/tests/nwfilterxml2xmlin/arp-test.xml
index d4484dcb2..e9d376836 100644
--- a/tests/nwfilterxml2xmlin/arp-test.xml
+++ b/tests/nwfilterxml2xmlin/arp-test.xml
@@ -30,4 +30,8 @@
<arp srcmacaddr='1:2:3:4:5:6' srcmacmask='ff:ff:ff:ff:ff:ff'
opcode='65536' hwtype='65536' protocoltype='65536' />
</rule>
+
+ <rule action='accept' direction='in'>
+ <arp gratuitous='true'/>
+ </rule>
</filter>
diff --git a/tests/nwfilterxml2xmlout/arp-test.xml b/tests/nwfilterxml2xmlout/arp-test.xml
index 2ce46aed3..856b4ca2a 100644
--- a/tests/nwfilterxml2xmlout/arp-test.xml
+++ b/tests/nwfilterxml2xmlout/arp-test.xml
@@ -15,4 +15,7 @@
<rule action='accept' direction='out' priority='500'>
<arp srcmacaddr='01:02:03:04:05:06' srcmacmask='ff:ff:ff:ff:ff:ff'/>
</rule>
+ <rule action='accept' direction='in' priority='500'>
+ <arp gratuitous='true'/>
+ </rule>
</filter>