Brendan Gregg - Sun Microsystems wrote:

This is easier to explain if I post a webrev (which I want to do ASAP).
Anyway, for sent traffic - it is probed as late as possible while the
conn_t is still available; and for received traffic, it is probed
early in common places.

Or described another way - IP is probed when ip meets dld or dls.

The above two statements are in conflict. When IP meets dld or dls there is no notion of a conn_t. While some code paths in the current implementation might have a conn_t, that is a bug which will be fixed with the IP datapath refactoring project. So please don't depend on this.

If you want a conn_t you need to look at transmitted packets at the top of ip_output, and be aware that in some cases none is available (ICMP errors, TCP RST packets, etc). Alternatively you can get a conn_t by looking at transmitted packets at the bottom of tcp/udp/rawip. The latter might be more consistent with the receive side where we have a conn_t when the packet reaches the tcp/udp/rawip input codd.

  Erik
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to