diff options
author | suz <suz@FreeBSD.org> | 2006-01-09 09:08:43 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2006-01-09 09:08:43 +0000 |
commit | b08b7ed729b7b647c99405f1f0a16342089a774b (patch) | |
tree | f06a4f23f1d286e01d44d2ab2d9a683f4f892fdf /sys/netinet6/ip6_mroute.c | |
parent | 36bb818343279557dcdbe6b0cd848223e3f4d1e1 (diff) | |
download | FreeBSD-src-b08b7ed729b7b647c99405f1f0a16342089a774b.zip FreeBSD-src-b08b7ed729b7b647c99405f1f0a16342089a774b.tar.gz |
added a note about the assumption for m->m_pkthdr.rcvif
Obtained from: KAME
MFC After: 1 day
Diffstat (limited to 'sys/netinet6/ip6_mroute.c')
-rw-r--r-- | sys/netinet6/ip6_mroute.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index a719ddf..514d3f8 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -982,6 +982,14 @@ socket_send(s, mm, src) * The packet is returned unscathed to the caller, unless it is * erroneous, in which case a non-zero return value tells the caller to * discard it. + * + * NOTE: this implementation assumes that m->m_pkthdr.rcvif is NULL iff + * this function is called in the originating context (i.e., not when + * forwarding a packet from other node). ip6_output(), which is currently the + * only function that calls this function is called in the originating context, + * explicitly ensures this condition. It is caller's responsibility to ensure + * that if this function is called from somewhere else in the originating + * context in the future. */ int |