]> git.lizzy.rs Git - plan9front.git/commit
ip/dhcpd: bring back interface address for arpenter()
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 1 Sep 2018 13:08:40 +0000 (15:08 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 1 Sep 2018 13:08:40 +0000 (15:08 +0200)
commit5a2c3580fc1b0ca53deb62c1b3e0391ce3895dd8
tree56eb00039c3d4774bdc2f0a15099ae4d51a6c9bc
parent4e61bc282c2869ae8442e356ffd2da3a3818dd51
ip/dhcpd: bring back interface address for arpenter()

the arp table is per interface, so it is possible to have the same
netwrok on multiple physical interfaces, tho with different source
ip address. one example would be a ethernet and a wlan interface.
the mac addresses on these mediums can differ (arp proxying taking
place).

so provide our source address on the interface we received the
request on.

the previous change used the ifcaddr; which is correct; but due to a
oversight in the kernel, had to match the ip of the arp entry.
source address will always work.
sys/src/cmd/ip/dhcpd/dhcpd.c