/linux/net/ipv6/ |
A D | ip6_icmp.c | 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() 77 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send() [all …]
|
/linux/net/ipv4/ |
A D | icmp.c | 482 struct sk_buff *skb_in, in icmp_route_lookup() argument 550 rt2 = skb_rtable(skb_in); in icmp_route_lookup() 611 else if (skb_in->dev) in __icmp_send() 621 iph = ip_hdr(skb_in); in __icmp_send() 663 skb_in->data, in __icmp_send() 686 if (!(skb_in->dev && (skb_in->dev->flags&IFF_LOOPBACK)) && in __icmp_send() 732 icmp_param.skb = skb_in; in __icmp_send() 796 if (skb_shared(skb_in)) in icmp_ndo_send() 797 skb_in = cloned_skb = skb_clone(skb_in, GFP_ATOMIC); in icmp_ndo_send() 799 if (unlikely(!skb_in || skb_network_header(skb_in) < skb_in->head || in icmp_ndo_send() [all …]
|
/linux/include/net/ |
A D | icmp.h | 39 void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, 41 static inline void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info) in icmp_send() argument 43 __icmp_send(skb_in, type, code, info, &IPCB(skb_in)->opt); in icmp_send() 47 void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info); 49 static inline void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) in icmp_ndo_send() argument 52 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
|
/linux/net/ipv4/netfilter/ |
A D | nf_reject_ipv4.c | 221 static int nf_reject_fill_skb_dst(struct sk_buff *skb_in) in nf_reject_fill_skb_dst() argument 227 fl.u.ip4.daddr = ip_hdr(skb_in)->saddr; in nf_reject_fill_skb_dst() 228 nf_ip_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject_fill_skb_dst() 232 skb_dst_set(skb_in, dst); in nf_reject_fill_skb_dst() 311 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument 313 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach() 320 nf_reject_fill_skb_dst(skb_in) < 0) in nf_send_unreach() 323 if (skb_csum_unnecessary(skb_in) || !nf_reject_verify_csum(proto)) { in nf_send_unreach() 324 icmp_send(skb_in, ICMP_DEST_UNREACH, code, 0); in nf_send_unreach() 328 if (nf_ip_checksum(skb_in, hook, ip_hdrlen(skb_in), proto) == 0) in nf_send_unreach() [all …]
|
/linux/drivers/staging/gdm724x/ |
A D | gdm_lte.c | 94 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp() 113 if (skb_in->len == 0) in gdm_lte_emulate_arp() 122 memcpy(ð, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp() 128 arp_in = (struct arphdr *)(skb_in->data + mac_header_len); in gdm_lte_emulate_arp() 154 skb_out = dev_alloc_skb(skb_in->len); in gdm_lte_emulate_arp() 164 skb_out->dev = skb_in->dev; in gdm_lte_emulate_arp() 214 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_ndp() 245 memcpy(ð, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_ndp() 279 (skb_in->data + mac_header_len + in gdm_lte_emulate_ndp() 315 skb_out = dev_alloc_skb(skb_in->len); in gdm_lte_emulate_ndp() [all …]
|
/linux/include/linux/usb/ |
A D | cdc_ncm.h | 160 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in); 161 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset); 162 int cdc_ncm_rx_verify_nth32(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in); 163 int cdc_ncm_rx_verify_ndp32(struct sk_buff *skb_in, int ndpoffset); 166 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in);
|
/linux/net/ipv6/netfilter/ |
A 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() 397 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, in nf_send_unreach6() argument 400 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6() 403 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6() 404 skb_in->dev = net->loopback_dev; in nf_send_unreach6() 407 nf_reject6_fill_skb_dst(skb_in) < 0) in nf_send_unreach6() 410 icmpv6_send(skb_in, ICMPV6_DEST_UNREACH, code, 0); in nf_send_unreach6()
|
/linux/drivers/net/usb/ |
A D | cdc_ncm.c | 1548 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth16() 1562 nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; in cdc_ncm_rx_verify_nth16() 1596 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth32() 1610 nth32 = (struct usb_cdc_ncm_nth32 *)skb_in->data; in cdc_ncm_rx_verify_nth32() 1645 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_ndp16() 1681 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_ndp32() 1736 ndpoffset = cdc_ncm_rx_verify_nth16(ctx, skb_in); in cdc_ncm_rx_fixup() 1794 if (((offset + len) > skb_in->len) || in cdc_ncm_rx_fixup() 1798 x, offset, len, skb_in); in cdc_ncm_rx_fixup() 1808 skb_put_data(skb, skb_in->data + offset, len); in cdc_ncm_rx_fixup() [all …]
|
A D | cdc_mbim.c | 410 static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) in cdc_mbim_rx_fixup() argument 427 ndpoffset = cdc_ncm_rx_verify_nth16(ctx, skb_in); in cdc_mbim_rx_fixup() 432 nframes = cdc_ncm_rx_verify_ndp16(skb_in, ndpoffset); in cdc_mbim_rx_fixup() 436 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_mbim_rx_fixup() 474 if (((offset + len) > skb_in->len) || (len > ctx->rx_max)) { in cdc_mbim_rx_fixup() 477 x, offset, len, skb_in); in cdc_mbim_rx_fixup() 482 skb = cdc_mbim_process_dgram(dev, skb_in->data + offset, len, tci); in cdc_mbim_rx_fixup() 496 ctx->rx_overhead += skb_in->len - payload; in cdc_mbim_rx_fixup()
|
/linux/net/hsr/ |
A 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()
|
A 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()
|
/linux/include/linux/ |
A D | icmpv6.h | 56 void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u32 info); 58 static inline void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u32 info) in icmpv6_ndo_send() argument 61 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send()
|
/linux/include/net/netfilter/ipv4/ |
A D | nf_reject.h | 10 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook);
|
/linux/include/net/netfilter/ipv6/ |
A D | nf_reject.h | 8 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
|