Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 25 of 44) sorted by relevance

12

/external/honggfuzz/examples/linux_kernel_ip/
Dlinux-kernel-4.10.0.patch13 skb_reset_network_header(skb);
14 skb_probe_transport_header(skb, 0);
16 + skb->ip_summed = CHECKSUM_UNNECESSARY;
17 + skb->csum_level = SKB_MAX_CSUM_LEVEL;
19 rxhash = skb_get_hash(skb);
21 tun_rx_batched(tun, tfile, skb, more);
26 @@ -764,7 +764,7 @@ int skb_copy_and_csum_datagram_msg(struct sk_buff *skb,
27 if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter,
31 + if (csum_fold(csum) && skb == NULL)
33 if (unlikely(skb->ip_summed == CHECKSUM_COMPLETE))
[all …]
/external/iputils/Modules/
Dpg3.c241 struct sk_buff *skb; in fill_packet() local
247 skb = alloc_skb(pkt_size+64+16, GFP_ATOMIC); in fill_packet()
248 if (!skb) { in fill_packet()
253 skb_reserve(skb, 16); in fill_packet()
256 eth = (__u8 *) skb_push(skb, 14); in fill_packet()
257 iph = (struct iphdr*)skb_put(skb, sizeof( struct iphdr)); in fill_packet()
258 udph = (struct udphdr*)skb_put(skb, sizeof( struct udphdr)); in fill_packet()
284 skb->protocol = __constant_htons(ETH_P_IP); in fill_packet()
285 skb->mac.raw = ((u8*)iph) - 14; in fill_packet()
286 skb->dev = odev; in fill_packet()
[all …]
/external/iproute2/include/
Dbpf_api.h160 static void BPF_FUNC(tail_call, struct __sk_buff *skb, void *map,
168 static uint32_t BPF_FUNC(get_cgroup_classid, struct __sk_buff *skb);
171 static uint32_t BPF_FUNC(get_route_realm, struct __sk_buff *skb);
172 static uint32_t BPF_FUNC(get_hash_recalc, struct __sk_buff *skb);
173 static uint32_t BPF_FUNC(set_hash_invalid, struct __sk_buff *skb);
177 static int BPF_FUNC(clone_redirect, struct __sk_buff *skb, int ifindex,
181 static int BPF_FUNC(skb_load_bytes, struct __sk_buff *skb, uint32_t off,
183 static int BPF_FUNC(skb_store_bytes, struct __sk_buff *skb, uint32_t off,
186 static int BPF_FUNC(l3_csum_replace, struct __sk_buff *skb, uint32_t off,
188 static int BPF_FUNC(l4_csum_replace, struct __sk_buff *skb, uint32_t off,
[all …]
/external/iproute2/examples/bpf/
Dbpf_tailcall.c56 int cls_case1(struct __sk_buff *skb) in __section_tail()
62 printt("case1: map-val: %d from:%u\n", *val, skb->cb[0]); in __section_tail()
64 skb->cb[0] = ENTRY_0; in __section_tail()
65 tail_call(skb, &jmp_ex, ENTRY_0); in __section_tail()
71 int cls_case2(struct __sk_buff *skb) in __section_tail()
77 printt("case2: map-val: %d from:%u\n", *val, skb->cb[0]); in __section_tail()
79 skb->cb[0] = ENTRY_1; in __section_tail()
80 tail_call(skb, &jmp_tc, ENTRY_0); in __section_tail()
86 int cls_exit(struct __sk_buff *skb) in __section_tail()
92 printt("exit: map-val: %d from:%u\n", *val, skb->cb[0]); in __section_tail()
[all …]
Dbpf_cyclic.c19 int cls_loop(struct __sk_buff *skb) in cls_loop() argument
21 printt("cb: %u\n", skb->cb[0]++); in cls_loop()
22 tail_call(skb, &jmp_tc, 0); in cls_loop()
24 skb->tc_classid = TC_H_MAKE(1, 42); in cls_loop()
29 int cls_entry(struct __sk_buff *skb) in cls_entry() argument
31 tail_call(skb, &jmp_tc, 0); in cls_entry()
Dbpf_graft.c45 int cls_aaa(struct __sk_buff *skb) in cls_aaa() argument
52 int cls_bbb(struct __sk_buff *skb) in cls_bbb() argument
59 int cls_entry(struct __sk_buff *skb) in cls_entry() argument
61 tail_call(skb, &jmp_tc, 0); in cls_entry()
Dbpf_shared.c30 int emain(struct __sk_buff *skb) in emain() argument
42 int imain(struct __sk_buff *skb) in imain() argument
Dbpf_map_in_map.c25 int emain(struct __sk_buff *skb) in emain() argument
41 int imain(struct __sk_buff *skb) in imain() argument
/external/libnfnetlink/include/libnfnetlink/
Dlinux_nfnetlink_compat.h44 #define NFA_NEST(skb, type) \ argument
45 ({ struct nfattr *__start = (struct nfattr *)skb_tail_pointer(skb); \
46 NFA_PUT(skb, (NFNL_NFA_NEST | type), 0, NULL); \
48 #define NFA_NEST_END(skb, start) \ argument
49 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
50 (skb)->len; })
51 #define NFA_NEST_CANCEL(skb, start) \ argument
53 skb_trim(skb, (unsigned char *) (start) - (skb)->data); \
Dlinux_nfnetlink.h59 int (*call)(struct sock *nl, struct sk_buff *skb,
77 extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group,
79 extern int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags);
/external/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_compat.h46 #define NFA_NEST(skb, type) \ argument
47 ({ struct nfattr *__start = (struct nfattr *)skb_tail_pointer(skb); \
48 NFA_PUT(skb, (NFNL_NFA_NEST | type), 0, NULL); \
50 #define NFA_NEST_END(skb, start) \ argument
51 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
52 (skb)->len; })
53 #define NFA_NEST_CANCEL(skb, start) \ argument
55 skb_trim(skb, (unsigned char *) (start) - (skb)->data); \
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h47 #define NFA_NEST(skb, type) \ argument
48 ({ struct nfattr *__start = (struct nfattr *)skb_tail_pointer(skb); \
49 NFA_PUT(skb, (NFNL_NFA_NEST | type), 0, NULL); \
51 #define NFA_NEST_END(skb, start) \ argument
52 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
53 (skb)->len; })
54 #define NFA_NEST_CANCEL(skb, start) \ argument
56 skb_trim(skb, (unsigned char *) (start) - (skb)->data); \
/external/linux-kselftest/tools/testing/selftests/bpf/
Dsockmap_parse_prog.c16 int bpf_prog1(struct __sk_buff *skb) in bpf_prog1() argument
18 void *data_end = (void *)(long) skb->data_end; in bpf_prog1()
19 void *data = (void *)(long) skb->data; in bpf_prog1()
20 __u32 lport = skb->local_port; in bpf_prog1()
21 __u32 rport = skb->remote_port; in bpf_prog1()
25 return skb->len; in bpf_prog1()
32 return skb->len; in bpf_prog1()
Dsockmap_verdict_prog.c37 int bpf_prog2(struct __sk_buff *skb) in bpf_prog2() argument
39 void *data_end = (void *)(long) skb->data_end; in bpf_prog2()
40 void *data = (void *)(long) skb->data; in bpf_prog2()
41 __u32 lport = skb->local_port; in bpf_prog2()
42 __u32 rport = skb->remote_port; in bpf_prog2()
62 return bpf_sk_redirect_map(skb, &sock_map_rx, sk, 0); in bpf_prog2()
63 return bpf_sk_redirect_map(skb, &sock_map_tx, sk, 0); in bpf_prog2()
Dtest_pkt_md_access.c18 TYPE tmp = *(volatile TYPE *)&skb->FIELD; \
19 if (tmp != ((*(volatile __u32 *)&skb->FIELD) & MASK)) \
26 TYPE tmp = *((volatile TYPE *)&skb->FIELD + \
27 TEST_FIELD_OFFSET(skb->FIELD, TYPE)); \
28 if (tmp != ((*(volatile __u32 *)&skb->FIELD) & MASK)) \
34 int process(struct __sk_buff *skb) in process() argument
Dtest_pkt_access.c24 int process(struct __sk_buff *skb) in process() argument
26 void *data_end = (void *)(long)skb->data_end; in process()
27 void *data = (void *)(long)skb->data; in process()
Dbpf_helpers.h91 unsigned long long load_byte(void *skb,
93 unsigned long long load_half(void *skb,
95 unsigned long long load_word(void *skb,
Dtest_obj_id.c27 int test_obj_id(struct __sk_buff *skb) in test_obj_id() argument
Dtest_l4lb.c325 bool is_ipv6, struct __sk_buff *skb) in process_packet() argument
327 void *pkt_start = (void *)(long)skb->data; in process_packet()
448 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet()
/external/iptables/extensions/
Dlibxt_CLASSIFY.man1 This module allows you to set the skb\->priority value (and thus classify the packet into a specifi…
/external/llvm/lib/Target/BPF/
DBPFInstrInfo.td530 : InstBPF<(outs), (ins GPR:$skb, i64imm:$imm),
531 !strconcat(OpcodeStr, "\tr0, $skb.data + $imm"),
532 [(set R0, (OpNode GPR:$skb, i64immSExt32:$imm))]> {
547 : InstBPF<(outs), (ins GPR:$skb, GPR:$val),
548 !strconcat(OpcodeStr, "\tr0, $skb.data + $val"),
549 [(set R0, (OpNode GPR:$skb, GPR:$val))]> {
/external/perfetto/src/ftrace_reader/test/data/android_hammerhead_MRA59G_3.4.0/
Davailable_events307 skb:kfree_skb
308 skb:consume_skb
309 skb:skb_copy_datagram_iovec
/external/perfetto/src/ftrace_reader/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/
Davailable_events764 skb:kfree_skb
765 skb:consume_skb
766 skb:print_skb_gso
767 skb:skb_copy_datagram_iovec
/external/llvm/test/CodeGen/BPF/
Dex1.ll8 @bpf_prog1.fmt = private unnamed_addr constant [15 x i8] c"skb %x dev %x\0A\00", align 1
/external/syslinux/gpxe/src/drivers/net/e1000/
De1000.h104 struct sk_buff *skb; member

12