use a mobileip_tunnel struct to represent the interfaces tunnel info.
authordlg <dlg@openbsd.org>
Mon, 12 Feb 2018 02:33:50 +0000 (02:33 +0000)
committerdlg <dlg@openbsd.org>
Mon, 12 Feb 2018 02:33:50 +0000 (02:33 +0000)
commitb51f8fe277c51e061ce1389d8240bb676c77c4a2
tree28b9d79256d161b30f19d9560c60f8cc06e0d5e1
parent137f817548ae4f5446f64e927b8dfcf1572db245
use a mobileip_tunnel struct to represent the interfaces tunnel info.

this avoids allocating a mobileip_softc on the stack to build a key
for looking up interfaces with on packet input. struct ifnet inside
mobileip_softc is "quite large", and may blow the 2k limit one day.
sys/net/if_mobileip.c