Searched refs:__sk_buff (Results 1 – 9 of 9) sorted by relevance
/linux-4.4.14/samples/bpf/ |
D | tcbpf1_kern.c | 14 static inline void set_dst_mac(struct __sk_buff *skb, char *mac) in set_dst_mac() 22 static inline void set_ip_tos(struct __sk_buff *skb, __u8 new_tos) in set_ip_tos() 35 static inline void set_tcp_ip_src(struct __sk_buff *skb, __u32 new_ip) in set_tcp_ip_src() 45 static inline void set_tcp_dest_port(struct __sk_buff *skb, __u16 new_port) in set_tcp_dest_port() 54 int bpf_prog1(struct __sk_buff *skb) in bpf_prog1() 68 int _redirect_xmit(struct __sk_buff *skb) in _redirect_xmit() 73 int _redirect_recv(struct __sk_buff *skb) in _redirect_recv() 78 int _clone_redirect_xmit(struct __sk_buff *skb) in _clone_redirect_xmit() 84 int _clone_redirect_recv(struct __sk_buff *skb) in _clone_redirect_recv()
|
D | sockex3_kern.c | 39 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto) in parse_eth_proto() 74 static inline int ip_is_fragment(struct __sk_buff *ctx, __u64 nhoff) in ip_is_fragment() 80 static inline __u32 ipv6_addr_hash(struct __sk_buff *ctx, __u64 off) in ipv6_addr_hash() 122 static void update_stats(struct __sk_buff *skb, struct globals *g) in update_stats() 138 static __always_inline void parse_ip_proto(struct __sk_buff *skb, in parse_ip_proto() 189 PROG(PARSE_IP)(struct __sk_buff *skb) in PROG() 217 PROG(PARSE_IPV6)(struct __sk_buff *skb) in PROG() 240 PROG(PARSE_VLAN)(struct __sk_buff *skb) in PROG() 256 PROG(PARSE_MPLS)(struct __sk_buff *skb) in PROG() 280 int main_prog(struct __sk_buff *skb) in main_prog()
|
D | test_verifier.c | 675 offsetof(struct __sk_buff, len)), 678 offsetof(struct __sk_buff, mark)), 681 offsetof(struct __sk_buff, pkt_type)), 684 offsetof(struct __sk_buff, queue_mapping)), 687 offsetof(struct __sk_buff, protocol)), 690 offsetof(struct __sk_buff, vlan_present)), 693 offsetof(struct __sk_buff, vlan_tci)), 721 offsetof(struct __sk_buff, pkt_type)), 734 offsetof(struct __sk_buff, pkt_type)), 756 offsetof(struct __sk_buff, len)), [all …]
|
D | sockex2_kern.c | 45 static inline int ip_is_fragment(struct __sk_buff *ctx, __u64 nhoff) in ip_is_fragment() 51 static inline __u32 ipv6_addr_hash(struct __sk_buff *ctx, __u64 off) in ipv6_addr_hash() 61 static inline __u64 parse_ip(struct __sk_buff *skb, __u64 nhoff, __u64 *ip_proto, in parse_ip() 85 static inline __u64 parse_ipv6(struct __sk_buff *skb, __u64 nhoff, __u64 *ip_proto, in parse_ipv6() 99 static inline bool flow_dissector(struct __sk_buff *skb, struct flow_keys *flow) in flow_dissector() 199 int bpf_prog2(struct __sk_buff *skb) in bpf_prog2()
|
D | sockex1_kern.c | 15 int bpf_prog1(struct __sk_buff *skb) in bpf_prog1()
|
/linux-4.4.14/net/core/ |
D | filter.c | 1695 if (off < 0 || off >= sizeof(struct __sk_buff)) in __is_valid_access() 1712 if (off == offsetof(struct __sk_buff, tc_classid)) in sk_filter_is_valid_access() 1717 case offsetof(struct __sk_buff, cb[0]) ... in sk_filter_is_valid_access() 1718 offsetof(struct __sk_buff, cb[4]): in sk_filter_is_valid_access() 1731 if (off == offsetof(struct __sk_buff, tc_classid)) in tc_cls_act_is_valid_access() 1736 case offsetof(struct __sk_buff, mark): in tc_cls_act_is_valid_access() 1737 case offsetof(struct __sk_buff, tc_index): in tc_cls_act_is_valid_access() 1738 case offsetof(struct __sk_buff, priority): in tc_cls_act_is_valid_access() 1739 case offsetof(struct __sk_buff, cb[0]) ... in tc_cls_act_is_valid_access() 1740 offsetof(struct __sk_buff, cb[4]): in tc_cls_act_is_valid_access() [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | bpf.h | 278 struct __sk_buff { struct
|
/linux-4.4.14/tools/testing/selftests/net/ |
D | psock_fanout.c | 100 const int len_off = __builtin_offsetof(struct __sk_buff, len); in sock_fanout_set_ebpf()
|
/linux-4.4.14/include/linux/ |
D | filter.h | 360 BUILD_BUG_ON(FIELD_SIZEOF(struct __sk_buff, cb) != in bpf_prog_run_save_cb()
|