aboutgitcodebugslistschat
path: root/test/perf
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-22 15:31:14 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-30 21:57:50 +0200
commit3f190726407109fdb74ed7b5f8ddd7e68a56d7aa (patch)
tree9cad3e6ffe6171db0799f3920f277477f491d15b /test/perf
parent06abfcf6d95762976d37aa5721c16802c649efd4 (diff)
downloadpasst-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.tar
passt-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.tar.gz
passt-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.tar.bz2
passt-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.tar.lz
passt-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.tar.xz
passt-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.tar.zst
passt-3f190726407109fdb74ed7b5f8ddd7e68a56d7aa.zip
Initialize host side MAC when in IPv6 only mode
When sending packets to the guest we need a source MAC address, which we currently take from the host side interface we're using (though it's basically arbitrary). However if not given on the command line this MAC is initialized in an IPv4 specific path, and will end up as 00:00:00:00:00:00 when running "passt 6". The MAC address is also used for IPv6 packets, though. Interestingly, we largely seem to get away with using an all-zero MAC, but it's probably not a good idea. Make the IPv6 path pick the MAC address from its interface if the IPv4 path hasn't already done so. While we're there, use the existing MAC_IS_ZERO macro to make the code a little clearer. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/perf')
0 files changed, 0 insertions, 0 deletions