summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>1999-12-13 00:39:20 +0000
committershin <shin@FreeBSD.org>1999-12-13 00:39:20 +0000
commitfb96762b20276c851c4016f10b8e26ee467a8cff (patch)
treef2c4c3e55058fdd0ff87c1cb23e600c1639e8ecb /sys/netinet/udp_usrreq.c
parent734620334b7a66a42bb3a100d4a3b5ba9241e6da (diff)
downloadFreeBSD-src-fb96762b20276c851c4016f10b8e26ee467a8cff.zip
FreeBSD-src-fb96762b20276c851c4016f10b8e26ee467a8cff.tar.gz
Always set INP_IPV4 flag for IPv4 pcb entries, because netstat needs it
to print out protocol specific pcb info. A patch submitted by guido@gvr.org, and asmodai@wxs.nl also reported the problem. Thanks and sorry for your troubles. Submitted by: guido@gvr.org Reviewed by: shin
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index f49a128..4b998c7 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -771,9 +771,7 @@ udp_attach(struct socket *so, int proto, struct proc *p)
return error;
inp = (struct inpcb *)so->so_pcb;
-#ifdef INET6
inp->inp_vflag |= INP_IPV4;
-#endif
inp->inp_ip_ttl = ip_defttl;
#ifdef IPSEC
error = ipsec_init_policy(so, &inp->inp_sp);
OpenPOWER on IntegriCloud