/net/mac80211/ |
H A D | event.c | 19 struct ieee80211_hdr *hdr, const u8 *tsc, 22 cfg80211_michael_mic_failure(sdata->dev, hdr->addr2, 23 (hdr->addr1[0] & 0x01) ? 18 mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int keyidx, struct ieee80211_hdr *hdr, const u8 *tsc, gfp_t gfp) argument
|
H A D | michael.c | 31 struct ieee80211_hdr *hdr) 35 da = ieee80211_get_DA(hdr); 36 sa = ieee80211_get_SA(hdr); 37 if (ieee80211_is_data_qos(hdr->frame_control)) 38 tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; 56 void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, argument 63 michael_mic_hdr(&mctx, key, hdr); 30 michael_mic_hdr(struct michael_mic_ctx *mctx, const u8 *key, struct ieee80211_hdr *hdr) argument
|
H A D | wme.c | 79 struct ieee80211_hdr *hdr) 87 if (!ieee80211_is_data(hdr->frame_control)) { 91 if (!ieee80211_is_data_qos(hdr->frame_control)) { 96 p = ieee80211_get_qos_ctl(hdr); 183 struct ieee80211_hdr *hdr = (void *)skb->data; local 188 if (!ieee80211_is_data_qos(hdr->frame_control)) 191 p = ieee80211_get_qos_ctl(hdr); 197 if (is_multicast_ether_addr(hdr->addr1) || 211 if (!ieee80211_is_qos_nullfunc(hdr->frame_control)) 77 ieee80211_select_queue_80211(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, struct ieee80211_hdr *hdr) argument
|
H A D | wep.c | 94 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; local 99 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); 105 hdrlen = ieee80211_hdrlen(hdr->frame_control); 125 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; local 128 hdrlen = ieee80211_hdrlen(hdr->frame_control); 232 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; local 237 if (!ieee80211_has_protected(hdr->frame_control)) 240 hdrlen = ieee80211_hdrlen(hdr->frame_control); 279 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; local 280 __le16 fc = hdr [all...] |
/net/bridge/netfilter/ |
H A D | ebt_802_3.c | 19 const struct ebt_802_3_hdr *hdr = ebt_802_3_hdr(skb); local 20 __be16 type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type; 23 if (FWINV(info->sap != hdr->llc.ui.ssap, EBT_802_3_SAP)) 25 if (FWINV(info->sap != hdr->llc.ui.dsap, EBT_802_3_SAP)) 30 if (!(hdr->llc.ui.dsap == CHECK_TYPE && hdr->llc.ui.ssap == CHECK_TYPE))
|
/net/core/ |
H A D | tso.c | 14 void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso, argument 22 memcpy(hdr, skb->data, hdr_len); 23 iph = (struct iphdr *)(hdr + mac_hdr_len); 26 tcph = (struct tcphdr *)(hdr + skb_transport_offset(skb));
|
/net/ipv4/ |
H A D | xfrm4_output.c | 106 struct iphdr *hdr; local 108 hdr = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); 109 ip_local_error(skb->sk, EMSGSIZE, hdr->daddr,
|
/net/netfilter/ |
H A D | nf_nat_proto_sctp.c | 37 sctp_sctphdr_t *hdr; local 39 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) 42 hdr = (struct sctphdr *)(skb->data + hdroff); 46 hdr->source = tuple->src.u.sctp.port; 49 hdr->dest = tuple->dst.u.sctp.port; 52 hdr->checksum = sctp_compute_cksum(skb, hdroff);
|
H A D | nf_nat_proto_udp.c | 40 struct udphdr *hdr; local 43 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) 45 hdr = (struct udphdr *)(skb->data + hdroff); 50 portptr = &hdr->source; 54 portptr = &hdr->dest; 56 if (hdr->check || skb->ip_summed == CHECKSUM_PARTIAL) { 57 l3proto->csum_update(skb, iphdroff, &hdr->check, 59 inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport, 61 if (!hdr->check) 62 hdr [all...] |
H A D | nf_nat_proto_dccp.c | 43 struct dccp_hdr *hdr; local 53 hdr = (struct dccp_hdr *)(skb->data + hdroff); 57 portptr = &hdr->dccph_sport; 60 portptr = &hdr->dccph_dport; 66 if (hdrsize < sizeof(*hdr)) 69 l3proto->csum_update(skb, iphdroff, &hdr->dccph_checksum, 71 inet_proto_csum_replace2(&hdr->dccph_checksum, skb, oldport, newport,
|
H A D | nf_nat_proto_tcp.c | 41 struct tcphdr *hdr; local 54 hdr = (struct tcphdr *)(skb->data + hdroff); 59 portptr = &hdr->source; 63 portptr = &hdr->dest; 69 if (hdrsize < sizeof(*hdr)) 72 l3proto->csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); 73 inet_proto_csum_replace2(&hdr->check, skb, oldport, newport, 0);
|
H A D | nf_nat_proto_udplite.c | 40 struct udphdr *hdr; local 43 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) 46 hdr = (struct udphdr *)(skb->data + hdroff); 51 portptr = &hdr->source; 55 portptr = &hdr->dest; 58 l3proto->csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); 59 inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport, 0); 60 if (!hdr->check) 61 hdr->check = CSUM_MANGLED_0;
|
/net/ieee802154/ |
H A D | netlink.c | 46 void *hdr; local 54 hdr = genlmsg_put(msg, 0, ieee802154_seq_num++, 57 if (!hdr) { 68 void *hdr = genlmsg_data(nlmsg_data(nlh)); local 70 if (genlmsg_end(msg, hdr) < 0) 82 void *hdr; local 88 hdr = genlmsg_put_reply(msg, info, 90 if (!hdr) { 101 void *hdr = genlmsg_data(nlmsg_data(nlh)); local 103 if (genlmsg_end(msg, hdr) < [all...] |
H A D | header_ops.c | 54 ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr) argument 58 memcpy(buf, hdr, 1); 59 memcpy(buf + 1, &hdr->frame_counter, 4); 61 switch (hdr->key_id_mode) { 69 memcpy(buf + pos, &hdr->short_src, 4); 74 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN); 79 buf[pos++] = hdr->key_id; 85 ieee802154_hdr_push(struct sk_buff *skb, const struct ieee802154_hdr *hdr) argument 90 struct ieee802154_hdr_fc fc = hdr->fc; 92 buf[pos++] = hdr 168 ieee802154_hdr_get_sechdr(const u8 *buf, struct ieee802154_sechdr *hdr) argument 210 ieee802154_hdr_minlen(const struct ieee802154_hdr *hdr) argument 225 ieee802154_hdr_get_addrs(const u8 *buf, struct ieee802154_hdr *hdr) argument 241 ieee802154_hdr_pull(struct sk_buff *skb, struct ieee802154_hdr *hdr) argument 271 ieee802154_hdr_peek_addrs(const struct sk_buff *skb, struct ieee802154_hdr *hdr) argument 291 ieee802154_hdr_peek(const struct sk_buff *skb, struct ieee802154_hdr *hdr) argument 314 ieee802154_max_payload(const struct ieee802154_hdr *hdr) argument [all...] |
H A D | nl-phy.c | 41 void *hdr; local 50 hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags, 52 if (!hdr) 70 return genlmsg_end(msg, hdr); 74 genlmsg_cancel(msg, hdr);
|
/net/ipv4/netfilter/ |
H A D | nf_nat_proto_icmp.c | 63 struct icmphdr *hdr; local 65 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) 68 hdr = (struct icmphdr *)(skb->data + hdroff); 69 inet_proto_csum_replace2(&hdr->checksum, skb, 70 hdr->un.echo.id, tuple->src.u.icmp.id, 0); 71 hdr->un.echo.id = tuple->src.u.icmp.id;
|
/net/ipv6/netfilter/ |
H A D | nf_nat_proto_icmpv6.c | 64 struct icmp6hdr *hdr; local 66 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) 69 hdr = (struct icmp6hdr *)(skb->data + hdroff); 70 l3proto->csum_update(skb, iphdroff, &hdr->icmp6_cksum, 72 if (hdr->icmp6_type == ICMPV6_ECHO_REQUEST || 73 hdr->icmp6_type == ICMPV6_ECHO_REPLY) { 74 inet_proto_csum_replace2(&hdr->icmp6_cksum, skb, 75 hdr->icmp6_identifier, 77 hdr->icmp6_identifier = tuple->src.u.icmp.id;
|
/net/irda/ |
H A D | irnetlink.c | 84 void *hdr; local 103 hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, 105 if (hdr == NULL) { 117 genlmsg_end(msg, hdr);
|
/net/sched/ |
H A D | em_nbyte.c | 22 struct tcf_em_nbyte hdr; member in struct:nbyte_data 47 unsigned char *ptr = tcf_get_base_ptr(skb, nbyte->hdr.layer); 49 ptr += nbyte->hdr.off; 51 if (!tcf_valid_offset(skb, ptr, nbyte->hdr.len)) 54 return !memcmp(ptr + nbyte->hdr.off, nbyte->pattern, nbyte->hdr.len);
|
/net/ipv6/ |
H A D | ip6_input.c | 67 const struct ipv6hdr *hdr; local 104 if (unlikely(!pskb_may_pull(skb, sizeof(*hdr)))) 107 hdr = ipv6_hdr(skb); 109 if (hdr->version != 6) 114 (ipv6_get_dsfield(hdr) & INET_ECN_MASK), 122 ipv6_addr_loopback(&hdr->daddr)) 133 ipv6_addr_is_multicast(&hdr->daddr) && 134 IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 1) 142 if (ipv6_addr_is_multicast(&hdr->daddr) && 143 IPV6_ADDR_MC_SCOPE(&hdr 227 const struct ipv6hdr *hdr; local 285 const struct ipv6hdr *hdr; local [all...] |
H A D | xfrm6_output.c | 61 const struct ipv6hdr *hdr; local 64 hdr = skb->encapsulation ? inner_ipv6_hdr(skb) : ipv6_hdr(skb); 66 fl6.daddr = hdr->daddr;
|
H A D | exthdrs_core.c | 46 * This function parses (probably truncated) exthdr set "hdr". 119 struct ipv6_opt_hdr *hdr; local 124 hdr = (struct ipv6_opt_hdr *)(nh + offset); 125 len = ((hdr->hdrlen + 1) << 3);
|
/net/nfc/nci/ |
H A D | data.c | 72 struct nci_data_hdr *hdr; local 75 hdr = (struct nci_data_hdr *) skb_push(skb, NCI_DATA_HDR_SIZE); 76 hdr->conn_id = conn_id; 77 hdr->rfu = 0; 78 hdr->plen = plen; 80 nci_mt_set((__u8 *)hdr, NCI_MT_DATA_PKT); 81 nci_pbf_set((__u8 *)hdr, pbf);
|
H A D | spi.c | 71 unsigned char *hdr; local 76 hdr = skb_push(skb, NCI_SPI_HDR_LEN); 77 hdr[0] = NCI_SPI_DIRECT_WRITE; 78 hdr[1] = nspi->acknowledge_mode; 79 hdr[2] = payload_len >> 8; 80 hdr[3] = payload_len & 0xFF; 157 unsigned char *hdr; local 164 hdr = skb_push(skb, NCI_SPI_HDR_LEN); 165 hdr[0] = NCI_SPI_DIRECT_WRITE; 166 hdr[ [all...] |
/net/rxrpc/ |
H A D | ar-accept.c | 30 struct rxrpc_header *hdr) 45 hdr->seq = 0; 46 hdr->type = RXRPC_PACKET_TYPE_BUSY; 47 hdr->flags = 0; 48 hdr->userStatus = 0; 49 hdr->_rsvd = 0; 51 iov[0].iov_base = hdr; 52 iov[0].iov_len = sizeof(*hdr); 56 hdr->serial = htonl(1); 57 _proto("Tx BUSY %%%u", ntohl(hdr 29 rxrpc_busy(struct rxrpc_local *local, struct sockaddr_rxrpc *srx, struct rxrpc_header *hdr) argument [all...] |