Home
last modified time | relevance | path

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

/Linux-v4.19/net/ipv4/
Dicmp.c466 struct sk_buff *skb_in, in icmp_route_lookup() argument
486 fl4->flowi4_oif = l3mdev_master_ifindex(skb_dst(skb_in)->dev); in icmp_route_lookup()
488 security_skb_classify_flow(skb_in, flowi4_to_flowi(fl4)); in icmp_route_lookup()
489 rt = ip_route_output_key_hash(net, fl4, skb_in); in icmp_route_lookup()
506 err = xfrm_decode_session_reverse(skb_in, flowi4_to_flowi(&fl4_dec), AF_INET); in icmp_route_lookup()
510 if (inet_addr_type_dev_table(net, skb_dst(skb_in)->dev, in icmp_route_lookup()
526 orefdst = skb_in->_skb_refdst; /* save old refdst */ in icmp_route_lookup()
527 skb_dst_set(skb_in, NULL); in icmp_route_lookup()
528 err = ip_route_input(skb_in, fl4_dec.daddr, fl4_dec.saddr, in icmp_route_lookup()
532 rt2 = skb_rtable(skb_in); in icmp_route_lookup()
[all …]
/Linux-v4.19/net/ipv4/netfilter/
Dnf_reject_ipv4.c171 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook) in nf_send_unreach() argument
173 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach()
179 if (skb_csum_unnecessary(skb_in)) { in nf_send_unreach()
180 icmp_send(skb_in, ICMP_DEST_UNREACH, code, 0); in nf_send_unreach()
189 if (nf_ip_checksum(skb_in, hook, ip_hdrlen(skb_in), proto) == 0) in nf_send_unreach()
190 icmp_send(skb_in, ICMP_DEST_UNREACH, code, 0); in nf_send_unreach()
/Linux-v4.19/drivers/staging/gdm724x/
Dgdm_lte.c92 static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type) in gdm_lte_emulate_arp() argument
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()
117 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
118 memcpy(&vlan_eth, skb_in->data, sizeof(struct vlan_ethhdr)); in gdm_lte_emulate_arp()
122 memcpy(&eth, 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()
129 arp_data_in = (struct arpdata *)(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()
[all …]
/Linux-v4.19/drivers/isdn/i4l/
Disdn_bsdcomp.c454 static int bsd_compress(void *state, struct sk_buff *skb_in, struct sk_buff *skb_out, int proto) in bsd_compress() argument
467 unsigned char *rptr = skb_in->data; in bsd_compress()
468 int isize = skb_in->len; in bsd_compress()
617 if (!skb_out || skb_out->len >= skb_in->len) { in bsd_compress()
635 static void bsd_incomp(void *state, struct sk_buff *skb_in, int proto) in bsd_incomp() argument
637 bsd_compress(state, skb_in, NULL, proto); in bsd_incomp()
643 static int bsd_decompress(void *state, struct sk_buff *skb_in, struct sk_buff *skb_out, in bsd_decompress() argument
671 if (!skb_in || !skb_out) { in bsd_decompress()
679 if ((p = skb_pull(skb_in, 2)) == NULL) { in bsd_decompress()
684 ilen = skb_in->len; in bsd_decompress()
[all …]
Disdn_ppp.c39 static struct sk_buff *isdn_ppp_compress(struct sk_buff *skb_in, int *proto,
2614 static struct sk_buff *isdn_ppp_compress(struct sk_buff *skb_in, int *proto, in isdn_ppp_compress() argument
2625 return skb_in; in isdn_ppp_compress()
2629 return skb_in; in isdn_ppp_compress()
2645 return skb_in; in isdn_ppp_compress()
2649 return skb_in; in isdn_ppp_compress()
2653 skb_out = alloc_skb(skb_in->len + skb_in->len / 2 + 32 + in isdn_ppp_compress()
2654 skb_headroom(skb_in), GFP_ATOMIC); in isdn_ppp_compress()
2656 return skb_in; in isdn_ppp_compress()
2657 skb_reserve(skb_out, skb_headroom(skb_in)); in isdn_ppp_compress()
[all …]
/Linux-v4.19/net/hsr/
Dhsr_netlink.c233 static int hsr_get_node_status(struct sk_buff *skb_in, struct genl_info *info) in hsr_get_node_status() argument
278 msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, in hsr_get_node_status()
354 netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL); in hsr_get_node_status()
367 static int hsr_get_node_list(struct sk_buff *skb_in, struct genl_info *info) in hsr_get_node_list() argument
404 msg_head = genlmsg_put(skb_out, NETLINK_CB(skb_in).portid, in hsr_get_node_list()
436 netlink_ack(skb_in, nlmsg_hdr(skb_in), -EINVAL, NULL); in hsr_get_node_list()
Dhsr_forward.c93 static struct sk_buff *create_stripped_skb(struct sk_buff *skb_in, in create_stripped_skb() argument
100 skb_pull(skb_in, HSR_HLEN); in create_stripped_skb()
101 skb = __pskb_copy(skb_in, skb_headroom(skb_in) - HSR_HLEN, GFP_ATOMIC); in create_stripped_skb()
102 skb_push(skb_in, HSR_HLEN); in create_stripped_skb()
114 src = skb_mac_header(skb_in); in create_stripped_skb()
/Linux-v4.19/include/linux/usb/
Dcdc_ncm.h151 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in);
152 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset);
155 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in);
/Linux-v4.19/net/ipv6/netfilter/
Dnf_reject_ipv6.c235 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, in nf_send_unreach6() argument
238 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6()
241 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6()
242 skb_in->dev = net->loopback_dev; in nf_send_unreach6()
244 icmpv6_send(skb_in, ICMPV6_DEST_UNREACH, code, 0); in nf_send_unreach6()
/Linux-v4.19/drivers/net/usb/
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()
Dcdc_ncm.c1411 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth16() argument
1413 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth16()
1421 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth16) + in cdc_ncm_rx_verify_nth16()
1427 nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; in cdc_ncm_rx_verify_nth16()
1460 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset) in cdc_ncm_rx_verify_ndp16() argument
1462 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_ndp16()
1466 if ((ndpoffset + sizeof(struct usb_cdc_ncm_ndp16)) > skb_in->len) { in cdc_ncm_rx_verify_ndp16()
1471 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_verify_ndp16()
1485 ret * (sizeof(struct usb_cdc_ncm_dpe16))) > skb_in->len) { in cdc_ncm_rx_verify_ndp16()
1495 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) in cdc_ncm_rx_fixup() argument
[all …]
/Linux-v4.19/include/net/netfilter/ipv4/
Dnf_reject.h9 void nf_send_unreach(struct sk_buff *skb_in, int code, int hook);
/Linux-v4.19/include/net/netfilter/ipv6/
Dnf_reject.h7 void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
/Linux-v4.19/include/net/
Dicmp.h42 void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info);