summaryrefslogtreecommitdiffstats
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-09-01 04:27:34 +0000
committersam <sam@FreeBSD.org>2003-09-01 04:27:34 +0000
commitb972498a825f3774c635f067ed719aa73daa6559 (patch)
treef73ce6890036a5e62cfd79ecb563595572f48e1e /sys/netinet/raw_ip.c
parent68f371d3b3093ac35add4391d9050f9a2773e1e1 (diff)
downloadFreeBSD-src-b972498a825f3774c635f067ed719aa73daa6559.zip
FreeBSD-src-b972498a825f3774c635f067ed719aa73daa6559.tar.gz
remove warning about use of old divert sockets; this was marked
for removal before 5.2 Reviewed by: silence on -net and -arch
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index b5a308e..59f5f07 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -507,14 +507,11 @@ rip_ctlinput(int cmd, struct sockaddr *sa, void *vip)
u_long rip_sendspace = RIPSNDQ;
u_long rip_recvspace = RIPRCVQ;
-int rip_olddiverterror = 1;
SYSCTL_INT(_net_inet_raw, OID_AUTO, maxdgram, CTLFLAG_RW,
&rip_sendspace, 0, "Maximum outgoing raw IP datagram size");
SYSCTL_INT(_net_inet_raw, OID_AUTO, recvspace, CTLFLAG_RW,
&rip_recvspace, 0, "Maximum incoming raw IP datagram size");
-SYSCTL_INT(_net_inet_raw, OID_AUTO, olddiverterror, CTLFLAG_RW,
- &rip_olddiverterror, 0, "Return an error when creating an 'old' DIVERT socket");
static int
rip_attach(struct socket *so, int proto, struct thread *td)
@@ -538,12 +535,6 @@ rip_attach(struct socket *so, int proto, struct thread *td)
INP_INFO_WUNLOCK(&ripcbinfo);
return EPROTONOSUPPORT;
}
- /* To be removed before 5.2 */
- if (rip_olddiverterror && proto == IPPROTO_OLD_DIVERT) {
- INP_INFO_WUNLOCK(&ripcbinfo);
- printf("Old IPDIVERT program needs to be recompiled, or new IP proto 254 user needs sysctl net.inet.raw.olddiverterror=0\n");
- return EPROTONOSUPPORT;
- }
error = soreserve(so, rip_sendspace, rip_recvspace);
if (error) {
OpenPOWER on IntegriCloud