Home
last modified time | relevance | path

Searched refs:skb_in (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/net/ipv6/
H A Dip6_icmp.c52 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) in icmpv6_ndo_send()
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dip6_icmp.c52 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) in icmpv6_ndo_send()
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c99 static int nf_reject_fill_skb_dst(struct sk_buff *skb_in) in nf_reject_fill_skb_dst() argument
105 fl.u.ip4.daddr = ip_hdr(skb_in)->saddr; in nf_reject_fill_skb_dst()
106 nf_ip_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject_fill_skb_dst()
110 skb_dst_set(skb_in, dst); in nf_reject_fill_skb_dst()
188 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument
190 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach()
196 if (hook == NF_INET_PRE_ROUTING && nf_reject_fill_skb_dst(skb_in)) in nf_send_unreach()
199 if (skb_csum_unnecessary(skb_in) || !nf_reject_verify_csum(proto)) { in nf_send_unreach()
200 icmp_send(skb_in, ICMP_DEST_UNREACH, code, 0); in nf_send_unreach()
204 if (nf_ip_checksum(skb_in, hoo in nf_send_unreach()
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dicmp.c484 struct sk_buff *skb_in, in icmp_route_lookup()
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_common(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 in icmp_route_lookup()
482 icmp_route_lookup(struct net *net, struct flowi4 *fl4, struct sk_buff *skb_in, const struct iphdr *iph, __be32 saddr, u8 tos, u32 mark, int type, int code, struct icmp_bxm *param) icmp_route_lookup() argument
593 __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, const struct ip_options *opt) __icmp_send() argument
789 icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) icmp_ndo_send() argument
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dicmp.c478 struct sk_buff *skb_in, in icmp_route_lookup()
499 route_lookup_dev = icmp_get_route_lookup_dev(skb_in); in icmp_route_lookup()
502 security_skb_classify_flow(skb_in, flowi4_to_flowi_common(fl4)); in icmp_route_lookup()
503 rt = ip_route_output_key_hash(net, fl4, skb_in); in icmp_route_lookup()
520 err = xfrm_decode_session_reverse(skb_in, flowi4_to_flowi(&fl4_dec), AF_INET); in icmp_route_lookup()
540 orefdst = skb_in->_skb_refdst; /* save old refdst */ in icmp_route_lookup()
541 skb_dst_set(skb_in, NULL); in icmp_route_lookup()
542 err = ip_route_input(skb_in, fl4_dec.daddr, fl4_dec.saddr, in icmp_route_lookup()
546 rt2 = skb_rtable(skb_in); in icmp_route_lookup()
547 skb_in in icmp_route_lookup()
476 icmp_route_lookup(struct net *net, struct flowi4 *fl4, struct sk_buff *skb_in, const struct iphdr *iph, __be32 saddr, u8 tos, u32 mark, int type, int code, struct icmp_bxm *param) icmp_route_lookup() argument
587 __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, const struct ip_options *opt) __icmp_send() argument
783 icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) icmp_ndo_send() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dicmp.h39 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()
/kernel/linux/linux-6.6/include/net/
H A Dicmp.h39 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()
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c223 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, dataof in nf_send_unreach()
[all...]
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c129 static int nf_reject6_fill_skb_dst(struct sk_buff *skb_in) in nf_reject6_fill_skb_dst() argument
135 fl.u.ip6.daddr = ipv6_hdr(skb_in)->saddr; in nf_reject6_fill_skb_dst()
136 nf_ip6_route(dev_net(skb_in->dev), &dst, &fl, false); in nf_reject6_fill_skb_dst()
140 skb_dst_set(skb_in, dst); in nf_reject6_fill_skb_dst()
263 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, in nf_send_unreach6() argument
266 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6()
269 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6()
270 skb_in->dev = net->loopback_dev; in nf_send_unreach6()
272 if (hooknum == NF_INET_PRE_ROUTING && nf_reject6_fill_skb_dst(skb_in)) in nf_send_unreach6()
275 icmpv6_send(skb_in, ICMPV6_DEST_UNREAC in nf_send_unreach6()
[all...]
/kernel/linux/linux-5.10/include/linux/usb/
H A Dcdc_ncm.h158 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in);
159 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset);
160 int cdc_ncm_rx_verify_nth32(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in);
161 int cdc_ncm_rx_verify_ndp32(struct sk_buff *skb_in, int ndpoffset);
164 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in);
/kernel/linux/linux-6.6/include/linux/usb/
H A Dcdc_ncm.h160 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);
/kernel/linux/linux-5.10/drivers/staging/gdm724x/
H A Dgdm_lte.c93 static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type) in gdm_lte_emulate_arp() argument
95 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp()
114 if (skb_in->len == 0) in gdm_lte_emulate_arp()
118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
119 memcpy(&vlan_eth, skb_in->data, sizeof(struct vlan_ethhdr)); in gdm_lte_emulate_arp()
123 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp()
129 arp_in = (struct arphdr *)(skb_in->data + mac_header_len); in gdm_lte_emulate_arp()
130 arp_data_in = (struct arpdata *)(skb_in->data + mac_header_len + in gdm_lte_emulate_arp()
155 skb_out = dev_alloc_skb(skb_in->len); in gdm_lte_emulate_arp()
165 skb_out->dev = skb_in in gdm_lte_emulate_arp()
213 gdm_lte_emulate_ndp(struct sk_buff *skb_in, u32 nic_type) gdm_lte_emulate_ndp() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/gdm724x/
H A Dgdm_lte.c93 static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type) in gdm_lte_emulate_arp() argument
95 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp()
114 if (skb_in->len == 0) in gdm_lte_emulate_arp()
118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
119 memcpy(&vlan_eth, skb_in->data, sizeof(struct vlan_ethhdr)); in gdm_lte_emulate_arp()
123 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp()
129 arp_in = (struct arphdr *)(skb_in->data + mac_header_len); in gdm_lte_emulate_arp()
130 arp_data_in = (struct arpdata *)(skb_in->data + mac_header_len + in gdm_lte_emulate_arp()
155 skb_out = dev_alloc_skb(skb_in->len); in gdm_lte_emulate_arp()
165 skb_out->dev = skb_in in gdm_lte_emulate_arp()
212 gdm_lte_emulate_ndp(struct sk_buff *skb_in, u32 nic_type) gdm_lte_emulate_ndp() argument
[all...]
/kernel/linux/linux-6.6/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c263 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_UNREAC in nf_send_unreach6()
[all...]
/kernel/linux/linux-5.10/drivers/net/usb/
H A Dcdc_ncm.c1539 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth16() argument
1541 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth16()
1549 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth16) + in cdc_ncm_rx_verify_nth16()
1555 nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; in cdc_ncm_rx_verify_nth16()
1587 int cdc_ncm_rx_verify_nth32(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth32() argument
1589 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth32()
1597 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth32) + in cdc_ncm_rx_verify_nth32()
1603 nth32 = (struct usb_cdc_ncm_nth32 *)skb_in->data; in cdc_ncm_rx_verify_nth32()
1636 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset) in cdc_ncm_rx_verify_ndp16() argument
1638 struct usbnet *dev = netdev_priv(skb_in in cdc_ncm_rx_verify_ndp16()
1672 cdc_ncm_rx_verify_ndp32(struct sk_buff *skb_in, int ndpoffset) cdc_ncm_rx_verify_ndp32() argument
1707 cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) cdc_ncm_rx_fixup() argument
[all...]
H A Dcdc_mbim.c409 static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) in cdc_mbim_rx_fixup() argument
426 ndpoffset = cdc_ncm_rx_verify_nth16(ctx, skb_in); in cdc_mbim_rx_fixup()
431 nframes = cdc_ncm_rx_verify_ndp16(skb_in, ndpoffset); in cdc_mbim_rx_fixup()
435 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_mbim_rx_fixup()
473 if (((offset + len) > skb_in->len) || (len > ctx->rx_max)) { in cdc_mbim_rx_fixup()
476 x, offset, len, skb_in); in cdc_mbim_rx_fixup()
481 skb = cdc_mbim_process_dgram(dev, skb_in->data + offset, len, tci); in cdc_mbim_rx_fixup()
495 ctx->rx_overhead += skb_in->len - payload; in cdc_mbim_rx_fixup()
/kernel/linux/linux-6.6/drivers/net/usb/
H A Dcdc_ncm.c1553 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth16() argument
1555 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth16()
1563 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth16) + in cdc_ncm_rx_verify_nth16()
1569 nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; in cdc_ncm_rx_verify_nth16()
1601 int cdc_ncm_rx_verify_nth32(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth32() argument
1603 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth32()
1611 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth32) + in cdc_ncm_rx_verify_nth32()
1617 nth32 = (struct usb_cdc_ncm_nth32 *)skb_in->data; in cdc_ncm_rx_verify_nth32()
1650 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset) in cdc_ncm_rx_verify_ndp16() argument
1652 struct usbnet *dev = netdev_priv(skb_in in cdc_ncm_rx_verify_ndp16()
1686 cdc_ncm_rx_verify_ndp32(struct sk_buff *skb_in, int ndpoffset) cdc_ncm_rx_verify_ndp32() argument
1721 cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) cdc_ncm_rx_fixup() argument
[all...]
H A Dcdc_mbim.c411 static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) in cdc_mbim_rx_fixup() argument
428 ndpoffset = cdc_ncm_rx_verify_nth16(ctx, skb_in); in cdc_mbim_rx_fixup()
433 nframes = cdc_ncm_rx_verify_ndp16(skb_in, ndpoffset); in cdc_mbim_rx_fixup()
437 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_mbim_rx_fixup()
475 if (((offset + len) > skb_in->len) || (len > ctx->rx_max)) { in cdc_mbim_rx_fixup()
478 x, offset, len, skb_in); in cdc_mbim_rx_fixup()
483 skb = cdc_mbim_process_dgram(dev, skb_in->data + offset, len, tci); in cdc_mbim_rx_fixup()
497 ctx->rx_overhead += skb_in->len - payload; in cdc_mbim_rx_fixup()
/kernel/linux/linux-5.10/net/hsr/
H A Dhsr_netlink.c271 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()
H A Dhsr_forward.c78 static struct sk_buff *create_stripped_skb_hsr(struct sk_buff *skb_in, in create_stripped_skb_hsr() argument
85 skb_pull(skb_in, HSR_HLEN); in create_stripped_skb_hsr()
86 skb = __pskb_copy(skb_in, skb_headroom(skb_in) - HSR_HLEN, GFP_ATOMIC); in create_stripped_skb_hsr()
87 skb_push(skb_in, HSR_HLEN); in create_stripped_skb_hsr()
99 src = skb_mac_header(skb_in); in create_stripped_skb_hsr()
/kernel/linux/linux-6.6/net/hsr/
H A Dhsr_netlink.c271 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()
H A Dhsr_forward.c120 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()
/kernel/linux/linux-5.10/include/linux/
H A Dicmpv6.h56 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()
/kernel/linux/linux-6.6/include/linux/
H A Dicmpv6.h56 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()
/kernel/linux/linux-5.10/include/net/netfilter/ipv6/
H A Dnf_reject.h8 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,

Completed in 19 milliseconds

12