Home
last modified time | relevance | path

Searched refs:rthdr (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/net/mac80211/
Dstatus.c299 struct ieee80211_radiotap_header *rthdr; in ieee80211_add_tx_radiotap_header() local
308 rthdr = skb_push(skb, rtap_len); in ieee80211_add_tx_radiotap_header()
310 memset(rthdr, 0, rtap_len); in ieee80211_add_tx_radiotap_header()
311 rthdr->it_len = cpu_to_le16(rtap_len); in ieee80211_add_tx_radiotap_header()
312 rthdr->it_present = in ieee80211_add_tx_radiotap_header()
315 pos = (unsigned char *)(rthdr + 1); in ieee80211_add_tx_radiotap_header()
344 rthdr->it_present |= cpu_to_le32(BIT(IEEE80211_RADIOTAP_RATE)); in ieee80211_add_tx_radiotap_header()
371 rthdr->it_present |= cpu_to_le32(BIT(IEEE80211_RADIOTAP_MCS)); in ieee80211_add_tx_radiotap_header()
388 rthdr->it_present |= cpu_to_le32(BIT(IEEE80211_RADIOTAP_VHT)); in ieee80211_add_tx_radiotap_header()
391 pos = (u8 *)rthdr + ALIGN(pos - (u8 *)rthdr, 2); in ieee80211_add_tx_radiotap_header()
[all …]
Drx.c301 struct ieee80211_radiotap_header *rthdr; in ieee80211_add_rx_radiotap_header() local
339 rthdr = skb_push(skb, rtap_len - tlvs_len); in ieee80211_add_rx_radiotap_header()
340 memset(rthdr, 0, rtap_len - tlvs_len); in ieee80211_add_rx_radiotap_header()
341 it_present = &rthdr->it_present; in ieee80211_add_rx_radiotap_header()
344 rthdr->it_len = cpu_to_le16(rtap_len); in ieee80211_add_rx_radiotap_header()
372 pos = (void *)&rthdr->it_optional[it_present + 1 - rthdr->it_optional]; in ieee80211_add_rx_radiotap_header()
379 while ((pos - (u8 *)rthdr) & 7) in ieee80211_add_rx_radiotap_header()
385 rthdr->it_present |= cpu_to_le32(BIT(IEEE80211_RADIOTAP_TSFT)); in ieee80211_add_rx_radiotap_header()
409 rthdr->it_present |= cpu_to_le32(BIT(IEEE80211_RADIOTAP_RATE)); in ieee80211_add_rx_radiotap_header()
445 rthdr->it_present |= in ieee80211_add_rx_radiotap_header()
[all …]
Dtx.c2069 struct ieee80211_radiotap_header *rthdr = in ieee80211_validate_radiotap_len() local
2077 if (unlikely(rthdr->it_version)) in ieee80211_validate_radiotap_len()
2092 struct ieee80211_radiotap_header *rthdr = in ieee80211_parse_tx_radiotap() local
2095 int ret = ieee80211_radiotap_iterator_init(&iterator, rthdr, skb->len, in ieee80211_parse_tx_radiotap()
/linux-6.6.21/net/ipv6/
Ddatagram.c716 struct ipv6_rt_hdr *rthdr = (struct ipv6_rt_hdr *)(nh + opt->srcrt); in ip6_datagram_recv_specific_ctl() local
717 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in ip6_datagram_recv_specific_ctl()
766 struct ipv6_rt_hdr *rthdr; in ip6_datagram_send_ctl() local
942 rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
944 switch (rthdr->type) { in ip6_datagram_send_ctl()
947 if (rthdr->hdrlen != 2 || in ip6_datagram_send_ctl()
948 rthdr->segments_left != 1) { in ip6_datagram_send_ctl()
959 len = ((rthdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl()
967 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl()
973 opt->srcrt = rthdr; in ip6_datagram_send_ctl()
Dah6.c211 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr() argument
217 segments_left = rthdr->segments_left; in ipv6_rearrange_rthdr()
220 rthdr->segments_left = 0; in ipv6_rearrange_rthdr()
229 segments = rthdr->hdrlen >> 1; in ipv6_rearrange_rthdr()
231 addrs = ((struct rt0_hdr *)rthdr)->addr; in ipv6_rearrange_rthdr()
Dipv6_sockglue.c362 struct ipv6_rt_hdr *rthdr = opt->srcrt; in ipv6_set_opt_hdr() local
363 switch (rthdr->type) { in ipv6_set_opt_hdr()
366 if (rthdr->hdrlen != 2 || rthdr->segments_left != 1) in ipv6_set_opt_hdr()
Dexthdrs.c655 struct rt0_hdr *rthdr; in ipv6_rthdr_rcv() local
769 rthdr = (struct rt0_hdr *) hdr; in ipv6_rthdr_rcv()
770 addr = rthdr->addr; in ipv6_rthdr_rcv()
/linux-6.6.21/drivers/net/wireless/ath/wil6210/
Dtxrx.c309 struct ieee80211_radiotap_header rthdr; in wil_rx_add_radiotap_header() member
335 rtap->rthdr.it_version = PKTHDR_RADIOTAP_VERSION; in wil_rx_add_radiotap_header()
336 rtap->rthdr.it_len = cpu_to_le16(rtap_len); in wil_rx_add_radiotap_header()
337 rtap->rthdr.it_present = cpu_to_le32((1 << IEEE80211_RADIOTAP_FLAGS) | in wil_rx_add_radiotap_header()