Home
last modified time | relevance | path

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

/linux/net/ipv4/
H A Dicmp.c495 struct sk_buff *skb_in, in icmp_route_lookup() argument
516 route_lookup_dev = icmp_get_route_lookup_dev(skb_in); in icmp_route_lookup()
519 security_skb_classify_flow(skb_in, flowi4_to_flowi_common(fl4)); in icmp_route_lookup()
520 rt = ip_route_output_key_hash(net, fl4, skb_in); in icmp_route_lookup()
541 err = xfrm_decode_session_reverse(net, skb_in, flowi4_to_flowi(&fl4_dec), AF_INET); in icmp_route_lookup()
573 orefdst = skb_dstref_steal(skb_in); in icmp_route_lookup()
574 err = ip_route_input(skb_in, fl4_dec.daddr, fl4_dec.saddr, in icmp_route_lookup()
578 rt2 = skb_rtable(skb_in); in icmp_route_lookup()
580 skb_dstref_steal(skb_in); in icmp_route_lookup()
581 skb_dstref_restore(skb_in, orefdst); in icmp_route_lookup()
[all …]
/linux/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c256 static int nf_reject_fill_skb_dst(struct sk_buff *skb_in) in nf_reject_fill_skb_dst() argument
262 fl.u.ip4.daddr = ip_hdr(skb_in)->saddr; in nf_reject_fill_skb_dst()
263 nf_ip_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject_fill_skb_dst()
267 skb_dst_drop(skb_in); in nf_reject_fill_skb_dst()
268 skb_dst_set(skb_in, dst); in nf_reject_fill_skb_dst()
348 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument
350 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach()
351 int dataoff = ip_hdrlen(skb_in); in nf_send_unreach()
357 if (!skb_valid_dst(skb_in) && nf_reject_fill_skb_dst(skb_in) < 0) in nf_send_unreach()
360 if (skb_csum_unnecessary(skb_in) || in nf_send_unreach()
[all …]
/linux/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c297 static int nf_reject6_fill_skb_dst(struct sk_buff *skb_in) in nf_reject6_fill_skb_dst() argument
303 fl.u.ip6.daddr = ipv6_hdr(skb_in)->saddr; in nf_reject6_fill_skb_dst()
304 nf_ip6_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject6_fill_skb_dst()
308 skb_dst_drop(skb_in); in nf_reject6_fill_skb_dst()
309 skb_dst_set(skb_in, dst); in nf_reject6_fill_skb_dst()
438 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, in nf_send_unreach6() argument
441 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6()
444 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6()
445 skb_in->dev = net->loopback_dev; in nf_send_unreach6()
447 if (!skb_valid_dst(skb_in) && nf_reject6_fill_skb_dst(skb_in) < 0) in nf_send_unreach6()
[all …]
/linux/net/hsr/
H A Dhsr_netlink.c313 static int hsr_get_node_status(struct sk_buff *skb_in, struct genl_info *info) in hsr_get_node_status() argument
357 msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, in hsr_get_node_status()
435 netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL); in hsr_get_node_status()
449 static int hsr_get_node_list(struct sk_buff *skb_in, struct genl_info *info) in hsr_get_node_list() argument
484 msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, in hsr_get_node_list()
526 netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL); in hsr_get_node_list()
H A Dhsr_forward.c149 static struct sk_buff *create_stripped_skb_hsr(struct sk_buff *skb_in, in create_stripped_skb_hsr() argument
156 skb_pull(skb_in, HSR_HLEN); in create_stripped_skb_hsr()
157 skb = __pskb_copy(skb_in, skb_headroom(skb_in) - HSR_HLEN, GFP_ATOMIC); in create_stripped_skb_hsr()
158 skb_push(skb_in, HSR_HLEN); in create_stripped_skb_hsr()
170 src = skb_mac_header(skb_in); in create_stripped_skb_hsr()
/linux/net/ipv6/
H A Dicmp.c562 icmp6_ext_append(struct net *net, struct sk_buff *skb_in, in icmp6_ext_append() argument
595 skb = skb_clone(skb_in, GFP_ATOMIC); in icmp6_ext_append()