Home
last modified time | relevance | path

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

/net/mac80211/
Dstatus.c287 struct ieee80211_radiotap_header *rthdr; in ieee80211_add_tx_radiotap_header() local
291 rthdr = (struct ieee80211_radiotap_header *) skb_push(skb, rtap_len); in ieee80211_add_tx_radiotap_header()
293 memset(rthdr, 0, rtap_len); in ieee80211_add_tx_radiotap_header()
294 rthdr->it_len = cpu_to_le16(rtap_len); in ieee80211_add_tx_radiotap_header()
295 rthdr->it_present = in ieee80211_add_tx_radiotap_header()
298 pos = (unsigned char *)(rthdr + 1); in ieee80211_add_tx_radiotap_header()
312 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RATE); in ieee80211_add_tx_radiotap_header()
344 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_MCS); in ieee80211_add_tx_radiotap_header()
361 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_VHT); in ieee80211_add_tx_radiotap_header()
364 pos = (u8 *)rthdr + ALIGN(pos - (u8 *)rthdr, 2); in ieee80211_add_tx_radiotap_header()
Drx.c268 struct ieee80211_radiotap_header *rthdr; in ieee80211_add_rx_radiotap_header() local
288 rthdr = (struct ieee80211_radiotap_header *)skb_push(skb, rtap_len); in ieee80211_add_rx_radiotap_header()
289 memset(rthdr, 0, rtap_len - rtap.len - rtap.pad); in ieee80211_add_rx_radiotap_header()
290 it_present = &rthdr->it_present; in ieee80211_add_rx_radiotap_header()
293 rthdr->it_len = cpu_to_le16(rtap_len); in ieee80211_add_rx_radiotap_header()
328 while ((pos - (u8 *)rthdr) & 7) in ieee80211_add_rx_radiotap_header()
334 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_TSFT); in ieee80211_add_rx_radiotap_header()
358 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RATE); in ieee80211_add_rx_radiotap_header()
392 rthdr->it_present |= in ieee80211_add_rx_radiotap_header()
409 if ((pos - (u8 *)rthdr) & 1) in ieee80211_add_rx_radiotap_header()
[all …]
Dtx.c1925 struct ieee80211_radiotap_header *rthdr = in ieee80211_parse_tx_radiotap() local
1930 int ret = ieee80211_radiotap_iterator_init(&iterator, rthdr, skb->len, in ieee80211_parse_tx_radiotap()
/net/ipv6/
Ddatagram.c689 struct ipv6_rt_hdr *rthdr = (struct ipv6_rt_hdr *)(nh + opt->srcrt); in ip6_datagram_recv_specific_ctl() local
690 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in ip6_datagram_recv_specific_ctl()
733 struct ipv6_rt_hdr *rthdr; in ip6_datagram_send_ctl() local
904 rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
906 switch (rthdr->type) { in ip6_datagram_send_ctl()
909 if (rthdr->hdrlen != 2 || in ip6_datagram_send_ctl()
910 rthdr->segments_left != 1) { in ip6_datagram_send_ctl()
921 len = ((rthdr->hdrlen + 1) << 3); in ip6_datagram_send_ctl()
929 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl()
935 opt->srcrt = rthdr; in ip6_datagram_send_ctl()
Dah6.c225 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr() argument
231 segments_left = rthdr->segments_left; in ipv6_rearrange_rthdr()
234 rthdr->segments_left = 0; in ipv6_rearrange_rthdr()
243 segments = rthdr->hdrlen >> 1; in ipv6_rearrange_rthdr()
245 addrs = ((struct rt0_hdr *)rthdr)->addr; in ipv6_rearrange_rthdr()
Dexthdrs.c302 struct rt0_hdr *rthdr; in ipv6_rthdr_rcv() local
410 rthdr = (struct rt0_hdr *) hdr; in ipv6_rthdr_rcv()
411 addr = rthdr->addr; in ipv6_rthdr_rcv()
Dipv6_sockglue.c423 struct ipv6_rt_hdr *rthdr = opt->srcrt; in do_ipv6_setsockopt() local
424 switch (rthdr->type) { in do_ipv6_setsockopt()
427 if (rthdr->hdrlen != 2 || in do_ipv6_setsockopt()
428 rthdr->segments_left != 1) in do_ipv6_setsockopt()