mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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
This commit is contained in:
parent
4ac29d1e8a
commit
79ea3cf110
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54526
@ -34,7 +34,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include "opt_inet6.h"
|
||||
#include "opt_tcpdebug.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -732,9 +731,7 @@ tcp_attach(so, p)
|
||||
if (error)
|
||||
return (error);
|
||||
inp = sotoinpcb(so);
|
||||
#ifdef INET6
|
||||
inp->inp_vflag |= INP_IPV4;
|
||||
#endif
|
||||
tp = tcp_newtcpcb(inp);
|
||||
if (tp == 0) {
|
||||
int nofd = so->so_state & SS_NOFDREF; /* XXX */
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user