• Home
  • Raw
  • Download

Lines Matching refs:skb_in

484 					struct sk_buff *skb_in,  in icmp_route_lookup()  argument
505 route_lookup_dev = icmp_get_route_lookup_dev(skb_in); in icmp_route_lookup()
508 security_skb_classify_flow(skb_in, flowi4_to_flowi(fl4)); in icmp_route_lookup()
509 rt = ip_route_output_key_hash(net, fl4, skb_in); in icmp_route_lookup()
526 err = xfrm_decode_session_reverse(skb_in, flowi4_to_flowi(&fl4_dec), AF_INET); in icmp_route_lookup()
546 orefdst = skb_in->_skb_refdst; /* save old refdst */ in icmp_route_lookup()
547 skb_dst_set(skb_in, NULL); in icmp_route_lookup()
548 err = ip_route_input(skb_in, fl4_dec.daddr, fl4_dec.saddr, in icmp_route_lookup()
552 rt2 = skb_rtable(skb_in); in icmp_route_lookup()
553 skb_in->_skb_refdst = orefdst; /* restore old refdst */ in icmp_route_lookup()
593 void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, in __icmp_send() argument
599 struct rtable *rt = skb_rtable(skb_in); in __icmp_send()
613 else if (skb_in->dev) in __icmp_send()
614 net = dev_net(skb_in->dev); in __icmp_send()
623 iph = ip_hdr(skb_in); in __icmp_send()
625 if ((u8 *)iph < skb_in->head || in __icmp_send()
626 (skb_network_header(skb_in) + sizeof(*iph)) > in __icmp_send()
627 skb_tail_pointer(skb_in)) in __icmp_send()
633 if (skb_in->pkt_type != PACKET_HOST) in __icmp_send()
660 itp = skb_header_pointer(skb_in, in __icmp_send()
661 skb_network_header(skb_in) + in __icmp_send()
665 skb_in->data, in __icmp_send()
688 if (!(skb_in->dev && (skb_in->dev->flags&IFF_LOOPBACK)) && in __icmp_send()
707 dev = dev_get_by_index_rcu(net, inet_iif(skb_in)); in __icmp_send()
719 mark = IP4_REPLY_MARK(net, skb_in->mark); in __icmp_send()
721 if (__ip_options_echo(net, &icmp_param.replyopts.opt.opt, skb_in, opt)) in __icmp_send()
733 icmp_param.skb = skb_in; in __icmp_send()
734 icmp_param.offset = skb_network_offset(skb_in); in __icmp_send()
741 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark, in __icmp_send()
763 icmp_param.data_len = skb_in->len - icmp_param.offset; in __icmp_send()
788 void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) in icmp_ndo_send() argument
796 ct = nf_ct_get(skb_in, &ctinfo); in icmp_ndo_send()
798 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
802 if (skb_shared(skb_in)) in icmp_ndo_send()
803 skb_in = cloned_skb = skb_clone(skb_in, GFP_ATOMIC); in icmp_ndo_send()
805 if (unlikely(!skb_in || skb_network_header(skb_in) < skb_in->head || in icmp_ndo_send()
806 (skb_network_header(skb_in) + sizeof(struct iphdr)) > in icmp_ndo_send()
807 skb_tail_pointer(skb_in) || skb_ensure_writable(skb_in, in icmp_ndo_send()
808 skb_network_offset(skb_in) + sizeof(struct iphdr)))) in icmp_ndo_send()
811 orig_ip = ip_hdr(skb_in)->saddr; in icmp_ndo_send()
812 ip_hdr(skb_in)->saddr = ct->tuplehash[0].tuple.src.u3.ip; in icmp_ndo_send()
813 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
814 ip_hdr(skb_in)->saddr = orig_ip; in icmp_ndo_send()