nh_off 1344 drivers/net/ethernet/pasemi/pasemi_mac.c const int nh_off = skb_network_offset(skb); nh_off 1352 drivers/net/ethernet/pasemi/pasemi_mac.c XCT_FUN_CRM_SIG | XCT_FUN_LLEN(skb->len - nh_off) | nh_off 1379 drivers/net/ethernet/pasemi/pasemi_mac.c CS_DESC(csring, fill) = XCT_PTR_LEN(map_size[0]-nh_off) | XCT_PTR_ADDR(map[0]+nh_off); nh_off 1434 drivers/net/ethernet/pasemi/pasemi_mac.c const int nh_off = skb_network_offset(skb); nh_off 1466 drivers/net/ethernet/pasemi/pasemi_mac.c dflags |= XCT_MACTX_IPO(nh_off); nh_off 1471 drivers/net/ethernet/pasemi/pasemi_mac.c dflags |= XCT_MACTX_IPO(nh_off); nh_off 740 net/openvswitch/conntrack.c int hooknum, nh_off, err = NF_ACCEPT; nh_off 742 net/openvswitch/conntrack.c nh_off = skb_network_offset(skb); nh_off 743 net/openvswitch/conntrack.c skb_pull_rcsum(skb, nh_off); nh_off 808 net/openvswitch/conntrack.c skb_push(skb, nh_off); nh_off 809 net/openvswitch/conntrack.c skb_postpush_rcsum(skb, skb->data, nh_off); nh_off 51 samples/bpf/parse_varlen.c static int parse_ipv4(void *data, uint64_t nh_off, void *data_end) nh_off 56 samples/bpf/parse_varlen.c iph = data + nh_off; nh_off 65 samples/bpf/parse_varlen.c iph = data + nh_off + ihl_len; nh_off 72 samples/bpf/parse_varlen.c return tcp(data, nh_off + ihl_len, data_end); nh_off 74 samples/bpf/parse_varlen.c return udp(data, nh_off + ihl_len, data_end); nh_off 78 samples/bpf/parse_varlen.c static int parse_ipv6(void *data, uint64_t nh_off, void *data_end) nh_off 85 samples/bpf/parse_varlen.c ip6h = data + nh_off; nh_off 92 samples/bpf/parse_varlen.c iph = data + nh_off + ihl_len; nh_off 98 samples/bpf/parse_varlen.c ip6h = data + nh_off + ihl_len; nh_off 106 samples/bpf/parse_varlen.c return tcp(data, nh_off + ihl_len, data_end); nh_off 108 samples/bpf/parse_varlen.c return udp(data, nh_off + ihl_len, data_end); nh_off 118 samples/bpf/parse_varlen.c uint64_t h_proto, nh_off; nh_off 120 samples/bpf/parse_varlen.c nh_off = sizeof(*eth); nh_off 121 samples/bpf/parse_varlen.c if (data + nh_off > data_end) nh_off 129 samples/bpf/parse_varlen.c vhdr = data + nh_off; nh_off 130 samples/bpf/parse_varlen.c nh_off += sizeof(struct vlan_hdr); nh_off 131 samples/bpf/parse_varlen.c if (data + nh_off > data_end) nh_off 138 samples/bpf/parse_varlen.c vhdr = data + nh_off; nh_off 139 samples/bpf/parse_varlen.c nh_off += sizeof(struct vlan_hdr); nh_off 140 samples/bpf/parse_varlen.c if (data + nh_off > data_end) nh_off 145 samples/bpf/parse_varlen.c return parse_ipv4(data, nh_off, data_end); nh_off 147 samples/bpf/parse_varlen.c return parse_ipv6(data, nh_off, data_end); nh_off 24 samples/bpf/xdp1_kern.c static int parse_ipv4(void *data, u64 nh_off, void *data_end) nh_off 26 samples/bpf/xdp1_kern.c struct iphdr *iph = data + nh_off; nh_off 33 samples/bpf/xdp1_kern.c static int parse_ipv6(void *data, u64 nh_off, void *data_end) nh_off 35 samples/bpf/xdp1_kern.c struct ipv6hdr *ip6h = data + nh_off; nh_off 51 samples/bpf/xdp1_kern.c u64 nh_off; nh_off 54 samples/bpf/xdp1_kern.c nh_off = sizeof(*eth); nh_off 55 samples/bpf/xdp1_kern.c if (data + nh_off > data_end) nh_off 63 samples/bpf/xdp1_kern.c vhdr = data + nh_off; nh_off 64 samples/bpf/xdp1_kern.c nh_off += sizeof(struct vlan_hdr); nh_off 65 samples/bpf/xdp1_kern.c if (data + nh_off > data_end) nh_off 72 samples/bpf/xdp1_kern.c vhdr = data + nh_off; nh_off 73 samples/bpf/xdp1_kern.c nh_off += sizeof(struct vlan_hdr); nh_off 74 samples/bpf/xdp1_kern.c if (data + nh_off > data_end) nh_off 80 samples/bpf/xdp1_kern.c ipproto = parse_ipv4(data, nh_off, data_end); nh_off 82 samples/bpf/xdp1_kern.c ipproto = parse_ipv6(data, nh_off, data_end); nh_off 40 samples/bpf/xdp2_kern.c static int parse_ipv4(void *data, u64 nh_off, void *data_end) nh_off 42 samples/bpf/xdp2_kern.c struct iphdr *iph = data + nh_off; nh_off 49 samples/bpf/xdp2_kern.c static int parse_ipv6(void *data, u64 nh_off, void *data_end) nh_off 51 samples/bpf/xdp2_kern.c struct ipv6hdr *ip6h = data + nh_off; nh_off 67 samples/bpf/xdp2_kern.c u64 nh_off; nh_off 70 samples/bpf/xdp2_kern.c nh_off = sizeof(*eth); nh_off 71 samples/bpf/xdp2_kern.c if (data + nh_off > data_end) nh_off 79 samples/bpf/xdp2_kern.c vhdr = data + nh_off; nh_off 80 samples/bpf/xdp2_kern.c nh_off += sizeof(struct vlan_hdr); nh_off 81 samples/bpf/xdp2_kern.c if (data + nh_off > data_end) nh_off 88 samples/bpf/xdp2_kern.c vhdr = data + nh_off; nh_off 89 samples/bpf/xdp2_kern.c nh_off += sizeof(struct vlan_hdr); nh_off 90 samples/bpf/xdp2_kern.c if (data + nh_off > data_end) nh_off 96 samples/bpf/xdp2_kern.c ipproto = parse_ipv4(data, nh_off, data_end); nh_off 98 samples/bpf/xdp2_kern.c ipproto = parse_ipv6(data, nh_off, data_end); nh_off 52 samples/bpf/xdp_fwd_kern.c u64 nh_off; nh_off 55 samples/bpf/xdp_fwd_kern.c nh_off = sizeof(*eth); nh_off 56 samples/bpf/xdp_fwd_kern.c if (data + nh_off > data_end) nh_off 63 samples/bpf/xdp_fwd_kern.c iph = data + nh_off; nh_off 83 samples/bpf/xdp_fwd_kern.c ip6h = data + nh_off; nh_off 155 samples/bpf/xdp_redirect_cpu_kern.c u16 get_dest_port_ipv4_udp(struct xdp_md *ctx, u64 nh_off) nh_off 159 samples/bpf/xdp_redirect_cpu_kern.c struct iphdr *iph = data + nh_off; nh_off 177 samples/bpf/xdp_redirect_cpu_kern.c int get_proto_ipv4(struct xdp_md *ctx, u64 nh_off) nh_off 181 samples/bpf/xdp_redirect_cpu_kern.c struct iphdr *iph = data + nh_off; nh_off 189 samples/bpf/xdp_redirect_cpu_kern.c int get_proto_ipv6(struct xdp_md *ctx, u64 nh_off) nh_off 193 samples/bpf/xdp_redirect_cpu_kern.c struct ipv6hdr *ip6h = data + nh_off; nh_off 469 samples/bpf/xdp_redirect_cpu_kern.c u32 get_ipv4_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) nh_off 473 samples/bpf/xdp_redirect_cpu_kern.c struct iphdr *iph = data + nh_off; nh_off 486 samples/bpf/xdp_redirect_cpu_kern.c u32 get_ipv6_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) nh_off 490 samples/bpf/xdp_redirect_cpu_kern.c struct ipv6hdr *ip6h = data + nh_off; nh_off 65 samples/bpf/xdp_redirect_kern.c u64 nh_off; nh_off 67 samples/bpf/xdp_redirect_kern.c nh_off = sizeof(*eth); nh_off 68 samples/bpf/xdp_redirect_kern.c if (data + nh_off > data_end) nh_off 65 samples/bpf/xdp_redirect_map_kern.c u64 nh_off; nh_off 67 samples/bpf/xdp_redirect_map_kern.c nh_off = sizeof(*eth); nh_off 68 samples/bpf/xdp_redirect_map_kern.c if (data + nh_off > data_end) nh_off 96 samples/bpf/xdp_router_ipv4_kern.c static inline int parse_ipv4(void *data, u64 nh_off, void *data_end, nh_off 99 samples/bpf/xdp_router_ipv4_kern.c struct iphdr *iph = data + nh_off; nh_off 121 samples/bpf/xdp_router_ipv4_kern.c u64 nh_off; nh_off 123 samples/bpf/xdp_router_ipv4_kern.c nh_off = sizeof(*eth); nh_off 124 samples/bpf/xdp_router_ipv4_kern.c if (data + nh_off > data_end) nh_off 132 samples/bpf/xdp_router_ipv4_kern.c vhdr = data + nh_off; nh_off 133 samples/bpf/xdp_router_ipv4_kern.c nh_off += sizeof(struct vlan_hdr); nh_off 134 samples/bpf/xdp_router_ipv4_kern.c if (data + nh_off > data_end) nh_off 144 samples/bpf/xdp_router_ipv4_kern.c ipproto = parse_ipv4(data, nh_off, data_end, &src_ip, &dest_ip); nh_off 460 tools/testing/selftests/bpf/progs/test_l4lb.c __u32 nh_off; nh_off 462 tools/testing/selftests/bpf/progs/test_l4lb.c nh_off = sizeof(struct eth_hdr); nh_off 463 tools/testing/selftests/bpf/progs/test_l4lb.c if (data + nh_off > data_end) nh_off 467 tools/testing/selftests/bpf/progs/test_l4lb.c return process_packet(data, nh_off, data_end, false, ctx); nh_off 469 tools/testing/selftests/bpf/progs/test_l4lb.c return process_packet(data, nh_off, data_end, true, ctx); nh_off 460 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c __u32 nh_off; nh_off 462 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c nh_off = sizeof(struct eth_hdr); nh_off 463 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (data + nh_off > data_end) nh_off 467 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c return process_packet(data, nh_off, data_end, false, ctx); nh_off 469 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c return process_packet(data, nh_off, data_end, true, ctx); nh_off 22 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c static struct bpf_sock_tuple *get_tuple(void *data, __u64 nh_off, nh_off 31 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct iphdr *iph = (struct iphdr *)(data + nh_off); nh_off 40 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct ipv6hdr *ip6h = (struct ipv6hdr *)(data + nh_off); nh_off 50 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c if (data + nh_off + ihl_len > data_end || proto != IPPROTO_TCP) nh_off 14 tools/testing/selftests/bpf/progs/test_verif_scale1.c int ret = 0, nh_off, i = 0; nh_off 16 tools/testing/selftests/bpf/progs/test_verif_scale1.c nh_off = 14; nh_off 22 tools/testing/selftests/bpf/progs/test_verif_scale1.c if (ptr + nh_off > data_end) \ nh_off 24 tools/testing/selftests/bpf/progs/test_verif_scale1.c ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ nh_off 14 tools/testing/selftests/bpf/progs/test_verif_scale2.c int ret = 0, nh_off, i = 0; nh_off 16 tools/testing/selftests/bpf/progs/test_verif_scale2.c nh_off = 14; nh_off 22 tools/testing/selftests/bpf/progs/test_verif_scale2.c if (ptr + nh_off > data_end) \ nh_off 24 tools/testing/selftests/bpf/progs/test_verif_scale2.c ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ nh_off 14 tools/testing/selftests/bpf/progs/test_verif_scale3.c int ret = 0, nh_off, i = 0; nh_off 16 tools/testing/selftests/bpf/progs/test_verif_scale3.c nh_off = 32; nh_off 22 tools/testing/selftests/bpf/progs/test_verif_scale3.c if (ptr + nh_off > data_end) \ nh_off 24 tools/testing/selftests/bpf/progs/test_verif_scale3.c ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ nh_off 807 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u32 nh_off; nh_off 809 tools/testing/selftests/bpf/progs/test_xdp_noinline.c nh_off = sizeof(struct eth_hdr); nh_off 810 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (data + nh_off > data_end) nh_off 814 tools/testing/selftests/bpf/progs/test_xdp_noinline.c return process_packet(data, nh_off, data_end, 0, ctx); nh_off 816 tools/testing/selftests/bpf/progs/test_xdp_noinline.c return process_packet(data, nh_off, data_end, 1, ctx);