Home
last modified time | relevance | path

Searched refs:__sk_buff (Results 1 – 6 of 6) sorted by relevance

/linux-4.1.27/samples/bpf/
Dtcbpf1_kern.c14 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()
Dsockex2_kern.c45 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()
Dtest_verifier.c650 offsetof(struct __sk_buff, len)),
653 offsetof(struct __sk_buff, mark)),
656 offsetof(struct __sk_buff, pkt_type)),
659 offsetof(struct __sk_buff, queue_mapping)),
662 offsetof(struct __sk_buff, protocol)),
665 offsetof(struct __sk_buff, vlan_present)),
668 offsetof(struct __sk_buff, vlan_tci)),
696 offsetof(struct __sk_buff, pkt_type)),
708 offsetof(struct __sk_buff, pkt_type)),
729 offsetof(struct __sk_buff, len)),
Dsockex1_kern.c15 int bpf_prog1(struct __sk_buff *skb) in bpf_prog1()
/linux-4.1.27/net/core/
Dfilter.c1394 if (off < 0 || off >= sizeof(struct __sk_buff)) in sk_filter_is_valid_access()
1414 case offsetof(struct __sk_buff, len): in sk_filter_convert_ctx_access()
1421 case offsetof(struct __sk_buff, protocol): in sk_filter_convert_ctx_access()
1428 case offsetof(struct __sk_buff, vlan_proto): in sk_filter_convert_ctx_access()
1435 case offsetof(struct __sk_buff, priority): in sk_filter_convert_ctx_access()
1442 case offsetof(struct __sk_buff, mark): in sk_filter_convert_ctx_access()
1445 case offsetof(struct __sk_buff, pkt_type): in sk_filter_convert_ctx_access()
1448 case offsetof(struct __sk_buff, queue_mapping): in sk_filter_convert_ctx_access()
1451 case offsetof(struct __sk_buff, vlan_present): in sk_filter_convert_ctx_access()
1455 case offsetof(struct __sk_buff, vlan_tci): in sk_filter_convert_ctx_access()
/linux-4.1.27/include/uapi/linux/
Dbpf.h219 struct __sk_buff { struct