cvs commit: src/sys/netinet ip_divert.c

Gleb Smirnoff glebius at FreeBSD.org
Fri Nov 12 22:17:43 GMT 2004


glebius     2004-11-12 22:17:42 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_divert.c 
  Log:
  Fix ng_ksocket(4) operation as a divert socket, which is pretty useful
  and has been broken twice:
  
  - in the beginning of div_output() replace KASSERT with assignment, as
    it was in rev. 1.83. [1] [to be MFCed]
  - refactor changes introduced in rev. 1.100: do not prepend a new tag
    unconditionally. Before doing this check whether we have one. [2]
  
  A small note for all hacking in this area:
  when divert socket is not a real userland, but ng_ksocket(4), we receive
  _the same_ mbufs, that we transmitted to socket. These mbufs have rcvif,
  the tags we've put on them. And we should treat them correctly.
  
  Discussed with: mlaier [1]
  Silence from:   green [2]
  Reviewed by:    maxim
  Approved by:    julian (mentor)
  MFC after:      1 week
  
  Revision  Changes    Path
  1.109     +12 -11    src/sys/netinet/ip_divert.c


More information about the cvs-src mailing list