On Fri, Jan 5, 2018 at 10:23 AM, Eugene Grosbein <eu...@grosbein.net> wrote:
> 06.01.2018 1:03, Steven Hartland wrote:
>
>> Is there a way to determine if the mbuf is a forwarded mbuf of not?
>
> Yes: m->m_pkthdr.rcvif is defined in case of forwarding.
> It is NULL for locally originated packets.
>

Can't rely on this any more:

 150         union {
 151                 struct m_snd_tag *snd_tag;      /* send tag, if any */
 152                 struct ifnet    *rcvif;         /* rcv interface */
 153         };

Regards,
Navdeep
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to