Home
last modified time | relevance | path

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

12

/external/iproute2/examples/bpf/
Dbpf_prog.c252 static inline bool flow_is_frag(struct __sk_buff *skb, int nh_off) in flow_is_frag() argument
254 return !!(load_half(skb, nh_off + offsetof(struct iphdr, frag_off)) & in flow_is_frag()
258 static inline int flow_parse_ipv4(struct __sk_buff *skb, int nh_off, in flow_parse_ipv4() argument
263 if (unlikely(flow_is_frag(skb, nh_off))) in flow_parse_ipv4()
266 *ip_proto = load_byte(skb, nh_off + offsetof(struct iphdr, in flow_parse_ipv4()
269 flow->src = load_word(skb, nh_off + offsetof(struct iphdr, saddr)); in flow_parse_ipv4()
270 flow->dst = load_word(skb, nh_off + offsetof(struct iphdr, daddr)); in flow_parse_ipv4()
273 ip_ver_len = load_byte(skb, nh_off + 0 /* offsetof(struct iphdr, ihl) */); in flow_parse_ipv4()
282 static inline __u32 flow_addr_hash_ipv6(struct __sk_buff *skb, int off) in flow_addr_hash_ipv6() argument
284 __u32 w0 = load_word(skb, off); in flow_addr_hash_ipv6()
[all …]
Dbpf_tailcall.c35 int cls_case1(struct __sk_buff *skb) in __section_tail()
42 trace_printk(fmt, sizeof(fmt), *val, skb->cb[0]); in __section_tail()
44 skb->cb[0] = ENTRY_0; in __section_tail()
45 tail_call(skb, &jmp_ex, ENTRY_0); in __section_tail()
51 int cls_case2(struct __sk_buff *skb) in __section_tail()
58 trace_printk(fmt, sizeof(fmt), *val, skb->cb[0]); in __section_tail()
60 skb->cb[0] = ENTRY_1; in __section_tail()
61 tail_call(skb, &jmp_tc, ENTRY_0); in __section_tail()
67 int cls_exit(struct __sk_buff *skb) in __section_tail()
74 trace_printk(fmt, sizeof(fmt), *val, skb->cb[0]); in __section_tail()
[all …]
Dbpf_cyclic.c12 int cls_loop(struct __sk_buff *skb) in cls_loop() argument
16 trace_printk(fmt, sizeof(fmt), skb->cb[0]++); in cls_loop()
17 tail_call(skb, &jmp_tc, 0); in cls_loop()
19 skb->tc_classid = TC_H_MAKE(1, 42); in cls_loop()
24 int cls_entry(struct __sk_buff *skb) in cls_entry() argument
26 tail_call(skb, &jmp_tc, 0); in cls_entry()
Dbpf_graft.c39 int cls_aaa(struct __sk_buff *skb) in cls_aaa() argument
48 int cls_bbb(struct __sk_buff *skb) in cls_bbb() argument
57 int cls_entry(struct __sk_buff *skb) in cls_entry() argument
61 tail_call(skb, &jmp_tc, 0); in cls_entry()
Dbpf_shared.c24 int emain(struct __sk_buff *skb) in emain() argument
36 int imain(struct __sk_buff *skb) in imain() argument
/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/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.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/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/iproute2/include/
Dbpf_api.h172 static void BPF_FUNC(tail_call, struct __sk_buff *skb, void *map,
179 static uint32_t BPF_FUNC(get_cgroup_classid, struct __sk_buff *skb);
180 static uint32_t BPF_FUNC(get_route_realm, struct __sk_buff *skb);
184 static int BPF_FUNC(clone_redirect, struct __sk_buff *skb, int ifindex,
192 static int BPF_FUNC(skb_store_bytes, struct __sk_buff *skb, uint32_t off,
194 static int BPF_FUNC(l3_csum_replace, struct __sk_buff *skb, uint32_t off,
196 static int BPF_FUNC(l4_csum_replace, struct __sk_buff *skb, uint32_t off,
200 static int BPF_FUNC(skb_vlan_push, struct __sk_buff *skb, uint16_t proto,
202 static int BPF_FUNC(skb_vlan_pop, struct __sk_buff *skb);
205 static int BPF_FUNC(skb_get_tunnel_key, struct __sk_buff *skb,
[all …]
/external/iptables/extensions/
Dlibxt_CLASSIFY.man1 This module allows you to set the skb\->priority value (and thus classify the packet into a specifi…
Dlibxt_u32.man56 Any access of memory outside [skb\->data,skb\->end] causes the match to fail.
/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/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
Dsockex2.ll9 define i32 @bpf_prog2(%struct.sk_buff* %skb) #0 section "socket2" {
12 %1 = bitcast %struct.sk_buff* %skb to i8*
/external/syslinux/gpxe/src/drivers/net/e1000/
De1000.h104 struct sk_buff *skb; member
/external/libvncserver/webclients/novnc/include/
Dui.js786 var skb = $D('showKeyboard');
793 skb.className = "noVNC_status_button_selected";
796 skb.className = "noVNC_status_button";
/external/syslinux/gpxe/src/drivers/net/
Dvia-velocity.h262 struct sk_buff *skb; member
292 struct sk_buff *skb; member
Dtg3.h1845 struct sk_buff *skb;
1850 struct sk_buff *skb;
Dhfa384x.h2837 hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb, p80211_hdr_t *p80211_hdr, p80211_metawep_t…
Dbnx2.h3937 struct sk_buff *skb;
/external/syslinux/gpxe/src/drivers/net/ath5k/
Dath5k.c176 static int ath5k_tx(struct net80211_device *dev, struct io_buffer *skb);
/external/hyphenation-patterns/de/
Dhyph-de-ch-1901.pat.txt16425 4skb
Dhyph-de-1996.pat.txt16359 4skb

12