Searched refs:protocol (Results 1 – 21 of 21) sorted by relevance
/samples/bpf/ |
D | sock_flags_kern.c | 17 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol); in bpf_prog1() 25 sk->protocol == IPPROTO_ICMPV6) in bpf_prog1() 36 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol); in bpf_prog2() 43 sk->protocol == IPPROTO_ICMP) in bpf_prog2()
|
D | xdp_tx_iptunnel_kern.c | 36 static __always_inline void count_tx(u32 protocol) in count_tx() argument 40 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx() 46 u8 protocol) in get_dport() argument 51 switch (protocol) { in get_dport() 95 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4() 99 vip.protocol = iph->protocol; in handle_ipv4() 132 iph->protocol = IPPROTO_IPIP; in handle_ipv4() 147 count_tx(vip.protocol); in handle_ipv4() 171 vip.protocol = ip6h->nexthdr; in handle_ipv6() 210 count_tx(vip.protocol); in handle_ipv6()
|
D | parse_varlen.c | 64 if (iph->protocol == IPPROTO_IPIP) { in parse_ipv4() 71 if (iph->protocol == IPPROTO_TCP) in parse_ipv4() 73 else if (iph->protocol == IPPROTO_UDP) in parse_ipv4() 96 nexthdr = iph->protocol; in parse_ipv6()
|
D | xdp_tx_iptunnel_common.h | 18 __u8 protocol; member
|
D | sockex1_kern.c | 17 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
D | parse_simple.c | 41 if (iph->protocol != IPPROTO_UDP || iph->ihl != 5) in handle_ingress()
|
D | parse_ldabs.c | 33 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress()
|
D | hbm_kern.h | 96 if (sk->protocol == IPPROTO_TCP) { in get_tcp_info() 129 pkti->is_tcp = (iph.protocol == 6); in hbm_get_pkt_info()
|
D | sock_example.c | 49 BPF_LD_ABS(BPF_B, ETH_HLEN + offsetof(struct iphdr, protocol) /* R0 = ip->proto */), in test_sock()
|
D | test_lwt_bpf.c | 48 skb->protocol); in do_test_ctx() 87 #define IP_PROTO_OFF offsetof(struct iphdr, protocol)
|
D | xdp1_kern.c | 30 return iph->protocol; in parse_ipv4()
|
D | xdp_tx_iptunnel_user.c | 173 vip.protocol = IPPROTO_TCP; in main() 199 vip.protocol = atoi(optarg); in main()
|
D | xdp2_kern.c | 46 return iph->protocol; in parse_ipv4()
|
D | tcbpf1_kern.c | 57 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
D | xdp_fwd_kern.c | 73 fib_params.l4_protocol = iph->protocol; in xdp_fwd_flags()
|
D | xdp_adjust_tail_kern.c | 104 iph->protocol = IPPROTO_ICMP; in send_icmp4_too_big()
|
D | xdp_redirect_cpu_kern.c | 165 if (!(iph->protocol == IPPROTO_UDP)) in get_dest_port_ipv4_udp() 185 return iph->protocol; in get_proto_ipv4() 480 cpu_hash = SuperFastHash((char *)&cpu_hash, 4, INITVAL + iph->protocol); in get_ipv4_hash_ip_pair()
|
D | xdp_router_ipv4_kern.c | 105 return iph->protocol; in parse_ipv4()
|
D | sockex2_kern.c | 69 *ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in parse_ip()
|
D | tc_l2_redirect_kern.c | 83 if (iph->protocol != IPPROTO_IPIP) in _l2_to_iptun_ingress_forward()
|
D | sockex3_kern.c | 202 ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in PROG()
|