/Linux-v5.10/include/linux/ |
D | skbuff.h | 504 int skb_zerocopy_iter_dgram(struct sk_buff *skb, struct msghdr *msg, int len); 505 int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb, 753 void (*destructor)(struct sk_buff *skb); 938 static inline bool skb_pfmemalloc(const struct sk_buff *skb) in skb_pfmemalloc() argument 940 return unlikely(skb->pfmemalloc); in skb_pfmemalloc() 956 static inline struct dst_entry *skb_dst(const struct sk_buff *skb) in skb_dst() argument 961 WARN_ON((skb->_skb_refdst & SKB_DST_NOREF) && in skb_dst() 964 return (struct dst_entry *)(skb->_skb_refdst & SKB_DST_PTRMASK); in skb_dst() 975 static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set() argument 977 skb->_skb_refdst = (unsigned long)dst; in skb_dst_set() [all …]
|
/Linux-v5.10/net/xfrm/ |
D | xfrm_output.c | 27 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb); 28 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb); 30 static int xfrm_skb_check_space(struct sk_buff *skb) in xfrm_skb_check_space() argument 32 struct dst_entry *dst = skb_dst(skb); in xfrm_skb_check_space() 34 - skb_headroom(skb); in xfrm_skb_check_space() 35 int ntail = dst->dev->needed_tailroom - skb_tailroom(skb); in xfrm_skb_check_space() 44 return pskb_expand_head(skb, nhead, ntail, GFP_ATOMIC); in xfrm_skb_check_space() 51 static struct dst_entry *skb_dst_pop(struct sk_buff *skb) in skb_dst_pop() argument 53 struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb))); in skb_dst_pop() 55 skb_dst_drop(skb); in skb_dst_pop() [all …]
|
D | xfrm_input.c | 38 int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb); 100 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument 111 ret = afinfo->callback(skb, protocol, err); in xfrm_rcv_cb() 117 struct sec_path *secpath_set(struct sk_buff *skb) in secpath_set() argument 119 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH); in secpath_set() 121 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH); in secpath_set() 139 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 156 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi() 158 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi() 165 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi() [all …]
|
/Linux-v5.10/net/ipv4/ |
D | udp_offload.c | 14 static struct sk_buff *__skb_udp_tunnel_segment(struct sk_buff *skb, in __skb_udp_tunnel_segment() argument 16 struct sk_buff *(*gso_inner_segment)(struct sk_buff *skb, in __skb_udp_tunnel_segment() argument 20 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in __skb_udp_tunnel_segment() 23 struct udphdr *uh = udp_hdr(skb); in __skb_udp_tunnel_segment() 24 u16 mac_offset = skb->mac_header; in __skb_udp_tunnel_segment() 25 __be16 protocol = skb->protocol; in __skb_udp_tunnel_segment() 26 u16 mac_len = skb->mac_len; in __skb_udp_tunnel_segment() 31 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) in __skb_udp_tunnel_segment() 40 if (skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) in __skb_udp_tunnel_segment() 43 partial = (__force __wsum)htonl(skb->len); in __skb_udp_tunnel_segment() [all …]
|
D | ip_input.c | 148 bool ip_call_ra_chain(struct sk_buff *skb) in ip_call_ra_chain() argument 151 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain() 153 struct net_device *dev = skb->dev; in ip_call_ra_chain() 165 if (ip_is_fragment(ip_hdr(skb))) { in ip_call_ra_chain() 166 if (ip_defrag(net, skb, IP_DEFRAG_CALL_RA_CHAIN)) in ip_call_ra_chain() 170 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_call_ra_chain() 179 raw_rcv(last, skb); in ip_call_ra_chain() 187 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) in ip_protocol_deliver_rcu() argument 193 raw = raw_local_deliver(skb, protocol); in ip_protocol_deliver_rcu() 198 if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) { in ip_protocol_deliver_rcu() [all …]
|
D | gre_offload.c | 14 static struct sk_buff *gre_gso_segment(struct sk_buff *skb, in gre_gso_segment() argument 17 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in gre_gso_segment() 20 u16 mac_offset = skb->mac_header; in gre_gso_segment() 21 __be16 protocol = skb->protocol; in gre_gso_segment() 22 u16 mac_len = skb->mac_len; in gre_gso_segment() 25 if (!skb->encapsulation) in gre_gso_segment() 31 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) in gre_gso_segment() 35 skb->encapsulation = 0; in gre_gso_segment() 36 SKB_GSO_CB(skb)->encap_level = 0; in gre_gso_segment() 37 __skb_pull(skb, tnl_hlen); in gre_gso_segment() [all …]
|
D | tcp_offload.c | 14 static void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq, in tcp_gso_tstamp() argument 17 while (skb) { in tcp_gso_tstamp() 19 skb_shinfo(skb)->tx_flags |= SKBTX_SW_TSTAMP; in tcp_gso_tstamp() 20 skb_shinfo(skb)->tskey = ts_seq; in tcp_gso_tstamp() 24 skb = skb->next; in tcp_gso_tstamp() 29 static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb, in tcp4_gso_segment() argument 32 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)) in tcp4_gso_segment() 35 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp4_gso_segment() 38 if (unlikely(skb->ip_summed != CHECKSUM_PARTIAL)) { in tcp4_gso_segment() 39 const struct iphdr *iph = ip_hdr(skb); in tcp4_gso_segment() [all …]
|
/Linux-v5.10/net/ipv6/ |
D | exthdrs.c | 65 bool (*func)(struct sk_buff *skb, int offset); 74 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument 88 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown() 99 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown() 103 icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); in ip6_tlvopt_unknown() 108 kfree_skb(skb); in ip6_tlvopt_unknown() 115 struct sk_buff *skb, in ip6_parse_tlv() argument 118 int len = (skb_transport_header(skb)[1] + 1) << 3; in ip6_parse_tlv() 119 const unsigned char *nh = skb_network_header(skb); in ip6_parse_tlv() 120 int off = skb_network_header_len(skb); in ip6_parse_tlv() [all …]
|
D | ip6_input.c | 50 struct sk_buff *skb) in ip6_rcv_finish_core() argument 52 void (*edemux)(struct sk_buff *skb); in ip6_rcv_finish_core() 54 if (net->ipv4.sysctl_ip_early_demux && !skb_dst(skb) && skb->sk == NULL) { in ip6_rcv_finish_core() 57 ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); in ip6_rcv_finish_core() 60 udp_v6_early_demux, skb); in ip6_rcv_finish_core() 62 if (!skb_valid_dst(skb)) in ip6_rcv_finish_core() 63 ip6_route_input(skb); in ip6_rcv_finish_core() 66 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument 71 skb = l3mdev_ip6_rcv(skb); in ip6_rcv_finish() 72 if (!skb) in ip6_rcv_finish() [all …]
|
D | ip6_offload.c | 31 #define indirect_call_gro_receive_l4(f2, f1, cb, head, skb) \ argument 33 unlikely(gro_recursion_inc_test(skb)) ? \ 34 NAPI_GRO_CB(skb)->flush |= 1, NULL : \ 35 INDIRECT_CALL_L4(cb, f2, f1, head, skb); \ 38 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument 56 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs() 59 opth = (void *)skb->data; in ipv6_gso_pull_exthdrs() 62 if (unlikely(!pskb_may_pull(skb, len))) in ipv6_gso_pull_exthdrs() 65 opth = (void *)skb->data; in ipv6_gso_pull_exthdrs() 67 __skb_pull(skb, len); in ipv6_gso_pull_exthdrs() [all …]
|
D | udp_offload.c | 17 static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, in udp6_ufo_fragment() argument 31 mss = skb_shinfo(skb)->gso_size; in udp6_ufo_fragment() 32 if (unlikely(skb->len <= mss)) in udp6_ufo_fragment() 35 if (skb->encapsulation && skb_shinfo(skb)->gso_type & in udp6_ufo_fragment() 37 segs = skb_udp_tunnel_segment(skb, features, true); in udp6_ufo_fragment() 42 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4))) in udp6_ufo_fragment() 45 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in udp6_ufo_fragment() 48 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) in udp6_ufo_fragment() 49 return __udp_gso_segment(skb, features); in udp6_ufo_fragment() 55 uh = udp_hdr(skb); in udp6_ufo_fragment() [all …]
|
/Linux-v5.10/net/bridge/ |
D | br_netfilter_hooks.c | 66 #define IS_IP(skb) \ argument 67 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP)) 69 #define IS_IPV6(skb) \ argument 70 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6)) 72 #define IS_ARP(skb) \ argument 73 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP)) 75 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() argument 77 if (skb_vlan_tag_present(skb)) in vlan_proto() 78 return skb->protocol; in vlan_proto() 79 else if (skb->protocol == htons(ETH_P_8021Q)) in vlan_proto() [all …]
|
D | br_forward.c | 22 const struct sk_buff *skb) in should_deliver() argument 27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) && in should_deliver() 28 p->state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) && in should_deliver() 29 nbp_switchdev_allowed_egress(p, skb) && in should_deliver() 30 !br_skb_isolated(p, skb); in should_deliver() 33 int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_dev_queue_push_xmit() argument 35 skb_push(skb, ETH_HLEN); in br_dev_queue_push_xmit() 36 if (!is_skb_forwardable(skb->dev, skb)) in br_dev_queue_push_xmit() 39 br_drop_fake_rtable(skb); in br_dev_queue_push_xmit() 41 if (skb->ip_summed == CHECKSUM_PARTIAL && in br_dev_queue_push_xmit() [all …]
|
D | br_input.c | 27 br_netif_receive_skb(struct net *net, struct sock *sk, struct sk_buff *skb) in br_netif_receive_skb() argument 29 br_drop_fake_rtable(skb); in br_netif_receive_skb() 30 return netif_receive_skb(skb); in br_netif_receive_skb() 33 static int br_pass_frame_up(struct sk_buff *skb) in br_pass_frame_up() argument 35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev; in br_pass_frame_up() 42 brstats->rx_bytes += skb->len; in br_pass_frame_up() 51 !br_allowed_egress(vg, skb)) { in br_pass_frame_up() 52 kfree_skb(skb); in br_pass_frame_up() 56 indev = skb->dev; in br_pass_frame_up() 57 skb->dev = brdev; in br_pass_frame_up() [all …]
|
D | br_netfilter_ipv6.c | 46 static int br_nf_check_hbh_len(struct sk_buff *skb) in br_nf_check_hbh_len() argument 48 unsigned char *raw = (u8 *)(ipv6_hdr(skb) + 1); in br_nf_check_hbh_len() 50 const unsigned char *nh = skb_network_header(skb); in br_nf_check_hbh_len() 54 if ((raw + len) - skb->data > skb_headlen(skb)) in br_nf_check_hbh_len() 76 ipv6_hdr(skb)->payload_len) in br_nf_check_hbh_len() 78 if (pkt_len > skb->len - sizeof(struct ipv6hdr)) in br_nf_check_hbh_len() 80 if (pskb_trim_rcsum(skb, in br_nf_check_hbh_len() 83 nh = skb_network_header(skb); in br_nf_check_hbh_len() 99 int br_validate_ipv6(struct net *net, struct sk_buff *skb) in br_validate_ipv6() argument 102 struct inet6_dev *idev = __in6_dev_get(skb->dev); in br_validate_ipv6() [all …]
|
/Linux-v5.10/drivers/bluetooth/ |
D | btbcm.c | 38 struct sk_buff *skb; in btbcm_check_bdaddr() local 40 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr() 42 if (IS_ERR(skb)) { in btbcm_check_bdaddr() 43 int err = PTR_ERR(skb); in btbcm_check_bdaddr() 49 if (skb->len != sizeof(*bda)) { in btbcm_check_bdaddr() 51 kfree_skb(skb); in btbcm_check_bdaddr() 55 bda = (struct hci_rp_read_bd_addr *)skb->data; in btbcm_check_bdaddr() 93 kfree_skb(skb); in btbcm_check_bdaddr() 101 struct sk_buff *skb; in btbcm_set_bdaddr() local 104 skb = __hci_cmd_sync(hdev, 0xfc01, 6, bdaddr, HCI_INIT_TIMEOUT); in btbcm_set_bdaddr() [all …]
|
/Linux-v5.10/net/core/ |
D | skbuff.c | 102 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic() argument 106 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic() 107 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic() 108 skb->dev ? skb->dev->name : "<NULL>"); in skb_panic() 112 static void skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_over_panic() argument 114 skb_panic(skb, sz, addr, __func__); in skb_over_panic() 117 static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_under_panic() argument 119 skb_panic(skb, sz, addr, __func__); in skb_under_panic() 187 struct sk_buff *skb; in __alloc_skb() local 198 skb = kmem_cache_alloc_node(cache, gfp_mask & ~__GFP_DMA, node); in __alloc_skb() [all …]
|
/Linux-v5.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_handlers.c | 22 static void rmnet_set_skb_proto(struct sk_buff *skb) in rmnet_set_skb_proto() argument 24 switch (skb->data[0] & 0xF0) { in rmnet_set_skb_proto() 26 skb->protocol = htons(ETH_P_IP); in rmnet_set_skb_proto() 29 skb->protocol = htons(ETH_P_IPV6); in rmnet_set_skb_proto() 32 skb->protocol = htons(ETH_P_MAP); in rmnet_set_skb_proto() 40 rmnet_deliver_skb(struct sk_buff *skb) in rmnet_deliver_skb() argument 42 struct rmnet_priv *priv = netdev_priv(skb->dev); in rmnet_deliver_skb() 44 skb_reset_transport_header(skb); in rmnet_deliver_skb() 45 skb_reset_network_header(skb); in rmnet_deliver_skb() 46 rmnet_vnd_rx_fixup(skb, skb->dev); in rmnet_deliver_skb() [all …]
|
/Linux-v5.10/include/net/ |
D | llc_c_ev.h | 123 static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb) in llc_conn_ev() argument 125 return (struct llc_conn_state_ev *)skb->cb; in llc_conn_ev() 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); [all …]
|
D | llc_c_ac.h | 90 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 92 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 93 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 94 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 95 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 96 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 97 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 98 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 100 struct sk_buff *skb); 102 struct sk_buff *skb); [all …]
|
/Linux-v5.10/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 28 struct sk_buff *skb, in nf_br_ip_fragment() argument 34 int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size; in nf_br_ip_fragment() 36 ktime_t tstamp = skb->tstamp; in nf_br_ip_fragment() 42 if (skb->ip_summed == CHECKSUM_PARTIAL && in nf_br_ip_fragment() 43 (err = skb_checksum_help(skb))) in nf_br_ip_fragment() 46 iph = ip_hdr(skb); in nf_br_ip_fragment() 54 ll_rs = LL_RESERVED_SPACE(skb->dev); in nf_br_ip_fragment() 55 mtu = skb->dev->mtu; in nf_br_ip_fragment() 57 if (skb_has_frag_list(skb)) { in nf_br_ip_fragment() 58 unsigned int first_len = skb_pagelen(skb); in nf_br_ip_fragment() [all …]
|
/Linux-v5.10/drivers/net/wireless/ath/ath10k/ |
D | wmi-ops.h | 15 void (*rx)(struct ath10k *ar, struct sk_buff *skb); 19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb, 21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb, 23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb, 26 struct ath10k *ar, struct sk_buff *skb, 28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb, 30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb, 32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb, 34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb, 36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb, [all …]
|
/Linux-v5.10/net/ieee802154/6lowpan/ |
D | rx.c | 21 static int lowpan_give_skb_to_device(struct sk_buff *skb) in lowpan_give_skb_to_device() argument 23 skb->protocol = htons(ETH_P_IPV6); in lowpan_give_skb_to_device() 24 skb->dev->stats.rx_packets++; in lowpan_give_skb_to_device() 25 skb->dev->stats.rx_bytes += skb->len; in lowpan_give_skb_to_device() 27 return netif_rx(skb); in lowpan_give_skb_to_device() 30 static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res) in lowpan_rx_handlers_result() argument 40 kfree_skb(skb); in lowpan_rx_handlers_result() 46 return lowpan_give_skb_to_device(skb); in lowpan_rx_handlers_result() 64 static lowpan_rx_result lowpan_rx_h_frag(struct sk_buff *skb) in lowpan_rx_h_frag() argument 68 if (!(lowpan_is_frag1(*skb_network_header(skb)) || in lowpan_rx_h_frag() [all …]
|
/Linux-v5.10/drivers/net/wireless/intersil/prism54/ |
D | islpci_eth.c | 30 struct sk_buff *skb; in islpci_eth_cleanup_transmit() local 45 skb = priv->data_low_tx[index]; in islpci_eth_cleanup_transmit() 50 skb, skb->data, skb->len, skb->truesize); in islpci_eth_cleanup_transmit() 55 skb->len, DMA_TO_DEVICE); in islpci_eth_cleanup_transmit() 56 dev_kfree_skb_irq(skb); in islpci_eth_cleanup_transmit() 57 skb = NULL; in islpci_eth_cleanup_transmit() 65 islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) in islpci_eth_transmit() argument 103 if (likely(((long) skb->data & 0x03) | init_wds)) { in islpci_eth_transmit() 105 offset = (4 - (long) skb->data) & 0x03; in islpci_eth_transmit() 109 if (!skb_cloned(skb) && (skb_tailroom(skb) >= offset)) { in islpci_eth_transmit() [all …]
|
/Linux-v5.10/drivers/net/wireguard/ |
D | receive.c | 33 #define SKB_TYPE_LE32(skb) (((struct message_header *)(skb)->data)->type) argument 35 static size_t validate_header_len(struct sk_buff *skb) in validate_header_len() argument 37 if (unlikely(skb->len < sizeof(struct message_header))) in validate_header_len() 39 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_DATA) && in validate_header_len() 40 skb->len >= MESSAGE_MINIMUM_LENGTH) in validate_header_len() 42 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_INITIATION) && in validate_header_len() 43 skb->len == sizeof(struct message_handshake_initiation)) in validate_header_len() 45 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_RESPONSE) && in validate_header_len() 46 skb->len == sizeof(struct message_handshake_response)) in validate_header_len() 48 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_COOKIE) && in validate_header_len() [all …]
|