Searched refs:skb_in (Results 1 – 6 of 6) sorted by relevance
/net/ipv6/ |
D | ip6_icmp.c | 52 void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u32 info) in icmpv6_ndo_send() argument 60 ct = nf_ct_get(skb_in, &ctinfo); in icmpv6_ndo_send() 62 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send() 66 if (skb_shared(skb_in)) in icmpv6_ndo_send() 67 skb_in = cloned_skb = skb_clone(skb_in, GFP_ATOMIC); in icmpv6_ndo_send() 69 if (unlikely(!skb_in || skb_network_header(skb_in) < skb_in->head || in icmpv6_ndo_send() 70 (skb_network_header(skb_in) + sizeof(struct ipv6hdr)) > in icmpv6_ndo_send() 71 skb_tail_pointer(skb_in) || skb_ensure_writable(skb_in, in icmpv6_ndo_send() 72 skb_network_offset(skb_in) + sizeof(struct ipv6hdr)))) in icmpv6_ndo_send() 75 orig_ip = ipv6_hdr(skb_in)->saddr; in icmpv6_ndo_send() [all …]
|
/net/ipv4/ |
D | icmp.c | 479 struct sk_buff *skb_in, in icmp_route_lookup() argument 500 route_lookup_dev = icmp_get_route_lookup_dev(skb_in); in icmp_route_lookup() 503 security_skb_classify_flow(skb_in, flowi4_to_flowi_common(fl4)); in icmp_route_lookup() 504 rt = ip_route_output_key_hash(net, fl4, skb_in); in icmp_route_lookup() 521 err = xfrm_decode_session_reverse(skb_in, flowi4_to_flowi(&fl4_dec), AF_INET); in icmp_route_lookup() 541 orefdst = skb_in->_skb_refdst; /* save old refdst */ in icmp_route_lookup() 542 skb_dst_set(skb_in, NULL); in icmp_route_lookup() 543 err = ip_route_input(skb_in, fl4_dec.daddr, fl4_dec.saddr, in icmp_route_lookup() 547 rt2 = skb_rtable(skb_in); in icmp_route_lookup() 548 skb_in->_skb_refdst = orefdst; /* restore old refdst */ in icmp_route_lookup() [all …]
|
/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 223 static int nf_reject_fill_skb_dst(struct sk_buff *skb_in) in nf_reject_fill_skb_dst() argument 229 fl.u.ip4.daddr = ip_hdr(skb_in)->saddr; in nf_reject_fill_skb_dst() 230 nf_ip_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject_fill_skb_dst() 234 skb_dst_set(skb_in, dst); in nf_reject_fill_skb_dst() 317 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument 319 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach() 320 int dataoff = ip_hdrlen(skb_in); in nf_send_unreach() 327 nf_reject_fill_skb_dst(skb_in) < 0) in nf_send_unreach() 330 if (skb_csum_unnecessary(skb_in) || in nf_send_unreach() 331 !nf_reject_verify_csum(skb_in, dataoff, proto)) { in nf_send_unreach() [all …]
|
/net/ipv6/netfilter/ |
D | nf_reject_ipv6.c | 263 static int nf_reject6_fill_skb_dst(struct sk_buff *skb_in) in nf_reject6_fill_skb_dst() argument 269 fl.u.ip6.daddr = ipv6_hdr(skb_in)->saddr; in nf_reject6_fill_skb_dst() 270 nf_ip6_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject6_fill_skb_dst() 274 skb_dst_set(skb_in, dst); in nf_reject6_fill_skb_dst() 403 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, in nf_send_unreach6() argument 406 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6() 409 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6() 410 skb_in->dev = net->loopback_dev; in nf_send_unreach6() 413 nf_reject6_fill_skb_dst(skb_in) < 0) in nf_send_unreach6() 416 icmpv6_send(skb_in, ICMPV6_DEST_UNREACH, code, 0); in nf_send_unreach6()
|
/net/hsr/ |
D | hsr_netlink.c | 271 static int hsr_get_node_status(struct sk_buff *skb_in, struct genl_info *info) in hsr_get_node_status() argument 315 msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, in hsr_get_node_status() 393 netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL); in hsr_get_node_status() 407 static int hsr_get_node_list(struct sk_buff *skb_in, struct genl_info *info) in hsr_get_node_list() argument 442 msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, in hsr_get_node_list() 484 netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL); in hsr_get_node_list()
|
D | hsr_forward.c | 120 static struct sk_buff *create_stripped_skb_hsr(struct sk_buff *skb_in, in create_stripped_skb_hsr() argument 127 skb_pull(skb_in, HSR_HLEN); in create_stripped_skb_hsr() 128 skb = __pskb_copy(skb_in, skb_headroom(skb_in) - HSR_HLEN, GFP_ATOMIC); in create_stripped_skb_hsr() 129 skb_push(skb_in, HSR_HLEN); in create_stripped_skb_hsr() 141 src = skb_mac_header(skb_in); in create_stripped_skb_hsr()
|