mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Widen _KERNEL ifdef to hide more kernel network stack structures from userland.
This commit is contained in:
parent
3a25555c6a
commit
fd1b2a7c57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278987
@ -173,7 +173,6 @@ do { \
|
||||
ifa_ref(&(ia)->ia_ifa); \
|
||||
IN_IFADDR_RUNLOCK(); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* IP datagram reassembly.
|
||||
@ -343,8 +342,6 @@ ims_get_mode(const struct in_multi *inm, const struct ip_msource *ims,
|
||||
return (MCAST_UNDEFINED);
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#ifdef SYSCTL_DECL
|
||||
SYSCTL_DECL(_net_inet);
|
||||
SYSCTL_DECL(_net_inet_ip);
|
||||
@ -425,12 +422,6 @@ void in_rtredirect(struct sockaddr *, struct sockaddr *,
|
||||
struct sockaddr *, int, struct sockaddr *, u_int);
|
||||
int in_rtrequest(int, struct sockaddr *,
|
||||
struct sockaddr *, struct sockaddr *, int, struct rtentry **, u_int);
|
||||
|
||||
#if 0
|
||||
int in_rt_getifa(struct rt_addrinfo *, u_int fibnum);
|
||||
int in_rtioctl(u_long, caddr_t, u_int);
|
||||
int in_rtrequest1(int, struct rt_addrinfo *, struct rtentry **, u_int);
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
/* INET6 stuff */
|
||||
|
@ -596,7 +596,6 @@ ip6_msource_cmp(const struct ip6_msource *a, const struct ip6_msource *b)
|
||||
return (memcmp(&a->im6s_addr, &b->im6s_addr, sizeof(struct in6_addr)));
|
||||
}
|
||||
RB_PROTOTYPE(ip6_msource_tree, ip6_msource, im6s_link, ip6_msource_cmp);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
/*
|
||||
* IPv6 multicast PCB-layer group filter descriptor.
|
||||
@ -696,8 +695,6 @@ im6s_get_mode(const struct in6_multi *inm, const struct ip6_msource *ims,
|
||||
return (MCAST_UNDEFINED);
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
/*
|
||||
* Lock macros for IPv6 layer multicast address lists. IPv6 lock goes
|
||||
* before link layer multicast locks in the lock order. In most cases,
|
||||
|
@ -1190,8 +1190,6 @@ rt_m_getfib(struct mbuf *m)
|
||||
((_m)->m_pkthdr.fibnum) = (_fib); \
|
||||
} while (0)
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#ifdef MBUF_PROFILING
|
||||
void m_profile(struct mbuf *m);
|
||||
#define M_PROFILE(m) m_profile(m)
|
||||
@ -1296,4 +1294,5 @@ mbufq_prepend(struct mbufq *mq, struct mbuf *m)
|
||||
STAILQ_INSERT_HEAD(&mq->mq_head, m, m_stailqpkt);
|
||||
mq->mq_len++;
|
||||
}
|
||||
#endif /* _KERNEL */
|
||||
#endif /* !_SYS_MBUF_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user