# include stdio.h # include Linux/TCP.h # include Linux/IPv6.h # include Linux/if _ ether.h struct tcphdr tcp; }_attribute__((packed ) ) PKT_v4={.eth.h_proto=bpf_htons ) eth_p幽默书籍), iph.ihl=5, struct ipv6hdr iph; struct tcphdr tcp; }_attribute__((packed ) ) PKT_v6={.eth.h_proto=bpf_htons ) eth_p幽默书籍V6 ), iph.nexthdr=} gcc公司
# include stdio.h # include Linux/TCP.h # include Linux/IPv6.h # include Linux/if _ ether.h struct tcphdr tcp; } _ packed PKT _ v4={.eth.h _ proto=bpf _ htons (eth _ p幽默书籍), iph.ihl=5, iph.protocol=6, iph . struct ipv6hdr iph; struct tcphdr tcp; } _ packed PKT _ V6={.eth.h _ proto=bpf _ htons (eth _ p幽默书籍V6 ), iph.nexthdr=6, iph.payload _ led } arm64 compiler