diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-07-22 15:31:15 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-30 21:57:50 +0200 |
commit | 4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b (patch) | |
tree | eea403c97766ccc62f4a4de628efe5de683a9d37 /dhcpv6.c | |
parent | 3f190726407109fdb74ed7b5f8ddd7e68a56d7aa (diff) | |
download | passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.tar passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.tar.gz passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.tar.bz2 passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.tar.lz passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.tar.xz passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.tar.zst passt-4bc883aeab9b05d66baa4fcf3c0e993ffa6f8a0b.zip |
Move passt mac_guest init to be more symmetric with pasta
In pasta mode, the guest's MAC address is set up in pasta_ns_cobf() called
from tap_sock_tun_init(). If we have a guest MAC configured with
--ns-mac-addr, this will set the given MAC on the kernel tuntap device, or
if we haven't configured one it will update our record of the guest MAC to
the kernel assigned one from the device.
For passt, we don't initially know the guest's MAC until we receive packets
from it, so we have to initially use a broadcast address. This is - oddly
- set up in an entirely different place, in conf_ip() conditional on the
mode.
Move it to the logically matching place for passt - tap_sock_unix_init().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dhcpv6.c')
0 files changed, 0 insertions, 0 deletions