cvs commit: src/sys/netgraph ng_ksocket.c ng_ksocket.h

Gleb Smirnoff glebius at FreeBSD.org
Sat Feb 12 14:54:20 GMT 2005


glebius     2005-02-12 14:54:19 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_ksocket.c ng_ksocket.h 
  Log:
  When netgraph(4) was converted to use mbuf_tags(9) instead of meta-data
  a definite setup was broken: two ng_ksockets are connected to each other,
  connect()ed to different remote hosts, and bind()ed to different local
  interfaces. In this case one ng_ksocket is fooled with tag from the other
  one.
  
  Put node id into tag. In rcvdata method utilize tag only if it has our
  own id inside or id equals zero. The latter case is added to support
  packets send by some third, not ng_ksocket node.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.49      +9 -3      src/sys/netgraph/ng_ksocket.c
  1.12      +1 -0      src/sys/netgraph/ng_ksocket.h


More information about the cvs-src mailing list