Module Name: src Committed By: ozaki-r Date: Tue Jul 3 03:37:04 UTC 2018
Modified Files: src/sys/kern: init_main.c src/sys/net: if.c if.h src/sys/rump/net/lib/libnet: net_component.c Log Message: Fix net.inet6.ip6.ifq node doesn't exist The node (and child nodes) is initialized in sysctl_net_pktq_setup, but the call of sysctl_net_pktq_setup is skipped unexpectedly. sysctl_net_pktq_setup is skipped if in6_present is false that indicates the netinet6 component isn't loaded on rump kernels. However the flag is accidentally always false because the flag is turned on in in6_dom_init that is called after if_sysctl_setup on both normal and rump kernels. Fix the issue by moving if_sysctl_setup after in6_dom_init (domaininit on normal kernels). This fix is ad-hoc but good enough for netbsd-8. We should refine the initialization order of network components in the future. Pointed out by hikaru@ To generate a diff of this commit: cvs rdiff -u -r1.497 -r1.498 src/sys/kern/init_main.c cvs rdiff -u -r1.428 -r1.429 src/sys/net/if.c cvs rdiff -u -r1.263 -r1.264 src/sys/net/if.h cvs rdiff -u -r1.9 -r1.10 src/sys/rump/net/lib/libnet/net_component.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.