tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bridge(4) - feedback local packets into ether_input()



On Fri, Apr 22, 2016 at 6:50 PM, Roy Marples <roy%marples.name@localhost> wrote:
> On 22/04/2016 10:36, Ryota Ozaki wrote:
>> BTW with the change can we write ATF tests of dhcpcd without interfering
>> the host (or with minimum affects)?
>
> You kind of could anyway with ISC dhcpd because it listens and sends via
> BPF which worked for this anyway. This patch feeds it back into our
> stack so any program can open a PF_INET/SOCK_DGRAM and listen to it
> normally, like dnsmasq does.
>
> You would need to setup an ip range on tap0 to serve DHCP from.
> Then dhcpcd can run happily on tap1 and test everything with the
> following notes
>
>   *  dhcpcd should be instructed not to install any default routes (-G)
>   *  dhcpcd should run a custom dhcpcd-run-hooks(8) script
>
> There are commandline options for both of these, and also in dhcpcd.conf
> You can then write ATF tests to observe addreses and routes installed
> and for the variables set for dhcpcd-run-hooks.

Thanks! I'll try to write some tests.

  ozaki-r


Home | Main Index | Thread Index | Old Index