mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-19 14:10:58 +00:00
ed7813d28d
Qemu currently sends an Ethernet packet with protocol id 0x835 once a VM was successfully migrated. The content of the packet looks like a gratuitous RARP, just with the wrong protocol ID, which should be 0x8035. I wrote some filters to let either one of the packets pass and am adapting the clean-traffic sample filter to use it. I am also doing some changes on the existing ARP filter which was lacking a test for source MAC address.
15 lines
584 B
XML
15 lines
584 B
XML
<filter name='qemu-announce-self-rarp' chain='rarp'>
|
|
<rule action='accept' direction='out' priority='500'>
|
|
<rarp opcode='Request_Reverse'
|
|
srcmacaddr='$MAC' dstmacaddr='ff:ff:ff:ff:ff:ff'
|
|
arpsrcmacaddr='$MAC' arpdstmacaddr='$MAC'
|
|
arpsrcipaddr='0.0.0.0' arpdstipaddr='0.0.0.0'/>
|
|
</rule>
|
|
<rule action='accept' direction='in' priority='500'>
|
|
<rarp opcode='Request_Reverse'
|
|
dstmacaddr='ff:ff:ff:ff:ff:ff'
|
|
arpsrcmacaddr='$MAC' arpdstmacaddr='$MAC'
|
|
arpsrcipaddr='0.0.0.0' arpdstipaddr='0.0.0.0'/>
|
|
</rule>
|
|
</filter>
|