]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct a number of evolved problems with inp_vflag and inp_flags:
authorRobert Watson <rwatson@FreeBSD.org>
Sun, 15 Mar 2009 09:58:31 +0000 (09:58 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Sun, 15 Mar 2009 09:58:31 +0000 (09:58 +0000)
commitad71fe3c3507be642a5eff21e7ae843414a62232
treecd3527457fd5c0f562c209d613115359c71177a9
parent1723a06485c9a7319c877007ff4d8a2dd584d92c
Correct a number of evolved problems with inp_vflag and inp_flags:
certain flags that should have been in inp_flags ended up in inp_vflag,
meaning that they were inconsistently locked, and in one case,
interpreted.  Move the following flags from inp_vflag to gaps in the
inp_flags space (and clean up the inp_flags constants to make gaps
more obvious to future takers):

  INP_TIMEWAIT
  INP_SOCKREF
  INP_ONESBCAST
  INP_DROPPED

Some aspects of this change have no effect on kernel ABI at all, as these
are UDP/TCP/IP-internal uses; however, netstat and sockstat detect
INP_TIMEWAIT when listing TCP sockets, so any MFC will need to take this
into account.

MFC after:      1 week (or after dependencies are MFC'd)
Reviewed by:    bz
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_input.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_timer.c
sys/netinet/tcp_timewait.c
sys/netinet/tcp_usrreq.c
sys/netinet6/in6_pcb.c
usr.bin/netstat/inet.c
usr.bin/systat/netstat.c