/* Demonstrates how metadata can be passed from an XDP program to a TC program * using bpf_xdp_adjust_meta. * For the sake of testing the metadata support in drivers, the XDP program uses * a fixed-size payload after the Ethernet header as metadata. The TC program * copies the metadata it receives into a map so it can be checked from * userspace.
*/
/* The Linux networking stack may send other packets on the test * interface that interfere with the test. Just drop them. * The test packets can be recognized by their ethertype of zero.
*/ if (eth->h_proto != 0) return XDP_DROP;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.