/* This function extracts the last byte of the daddr, and uses it * as output dev index.
*/
SEC("lwt_xmit") int test_lwt_reroute(struct __sk_buff *skb)
{ struct iphdr *iph = NULL; void *start = (void *)(long)skb->data; void *end = (void *)(long)skb->data_end;
/* set mark at most once */ if (skb->mark != 0) return BPF_OK;
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.