Date: Fri, 12 Nov 2004 22:17:42 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_divert.c Message-ID: <200411122217.iACMHgKI039319@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411122217.iACMHgKI039319>
