Home
last modified time | relevance | path

Searched refs:ip_proto (Results 1 – 4 of 4) sorted by relevance

/samples/bpf/
Dsockex2_kern.c25 __u8 ip_proto; member
61 static inline __u64 parse_ip(struct __sk_buff *skb, __u64 nhoff, __u64 *ip_proto, in parse_ip() argument
67 *ip_proto = 0; in parse_ip()
69 *ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in parse_ip()
71 if (*ip_proto != IPPROTO_GRE) { in parse_ip()
85 static inline __u64 parse_ipv6(struct __sk_buff *skb, __u64 nhoff, __u64 *ip_proto, in parse_ipv6() argument
88 *ip_proto = load_byte(skb, in parse_ipv6()
103 __u64 ip_proto; in flow_dissector() local
120 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
122 nhoff = parse_ipv6(skb, nhoff, &ip_proto, flow); in flow_dissector()
[all …]
Dsockex3_kern.c71 __u32 ip_proto; member
139 struct globals *g, __u32 ip_proto) in parse_ip_proto() argument
144 switch (ip_proto) { in parse_ip_proto()
181 g->flow.ip_proto = ip_proto; in parse_ip_proto()
192 __u32 nhoff, verlen, ip_proto; in PROG() local
202 ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in PROG()
204 if (ip_proto != IPPROTO_GRE) { in PROG()
213 parse_ip_proto(skb, g, ip_proto); in PROG()
220 __u32 nhoff, ip_proto; in PROG() local
227 ip_proto = load_byte(skb, in PROG()
[all …]
Dxdp_redirect_cpu_kern.c327 u8 ip_proto = IPPROTO_UDP; in xdp_prognum3_proto_separate() local
348 ip_proto = get_proto_ipv4(ctx, l3_offset); in xdp_prognum3_proto_separate()
351 ip_proto = get_proto_ipv6(ctx, l3_offset); in xdp_prognum3_proto_separate()
361 switch (ip_proto) { in xdp_prognum3_proto_separate()
395 u8 ip_proto = IPPROTO_UDP; in xdp_prognum4_ddos_filter_pktgen() local
417 ip_proto = get_proto_ipv4(ctx, l3_offset); in xdp_prognum4_ddos_filter_pktgen()
420 ip_proto = get_proto_ipv6(ctx, l3_offset); in xdp_prognum4_ddos_filter_pktgen()
430 switch (ip_proto) { in xdp_prognum4_ddos_filter_pktgen()
515 u8 ip_proto = IPPROTO_UDP; in xdp_prognum5_lb_hash_ip_pairs() local
Dsockex3_user.c23 __u32 ip_proto; member