added a note about the assumption for m->m_pkthdr.rcvif

Obtained from: KAME
MFC After: 1 day
This commit is contained in:
suz 2006-01-09 09:08:43 +00:00
parent 36bb818343
commit b08b7ed729

View File

@ -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