]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prepare for network stack as a module
authorstevek <stevek@FreeBSD.org>
Wed, 27 Jul 2016 20:34:09 +0000 (20:34 +0000)
committerstevek <stevek@FreeBSD.org>
Wed, 27 Jul 2016 20:34:09 +0000 (20:34 +0000)
commit3acd4a25e6ff9948f71b5c7cb49522cd8843336c
treef607c561400d9e19a8ed74a692dc91e0f5c49710
parentba785202db129ab53c6523ae86666af692278804
Prepare for network stack as a module

 - Move cr_canseeinpcb to sys/netinet/in_prot.c in order to separate the
   INET and INET6-specific code from the rest of the prot code (It is only
   used by the network stack, so it makes sense for it to live with the
   other network stack code.)
 - Move cr_canseeinpcb prototype from sys/systm.h to netinet/in_systm.h
 - Rename cr_seeotheruids to cr_canseeotheruids and cr_seeothergids to
   cr_canseeothergids, make them non-static, and add prototypes (so they
   can be seen/called by in_prot.c functions.)
 - Remove sw_csum variable from ip6_forward in ip6_forward.c, as it is an
   unused variable.

Reviewed by: gnn, jtl
Approved by: sjg (mentor)
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D2901
sys/conf/files
sys/kern/kern_prot.c
sys/netinet/in_prot.c [new file with mode: 0644]
sys/netinet/in_systm.h
sys/netinet6/ip6_forward.c
sys/sys/systm.h