Home
last modified time | relevance | path

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

/linux-3.4.99/net/ipv6/
Ddatagram.c573 struct ipv6_rt_hdr *rthdr = (struct ipv6_rt_hdr *)(nh + opt->srcrt); in datagram_recv_ctl() local
574 put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); in datagram_recv_ctl()
609 struct ipv6_rt_hdr *rthdr; in datagram_send_ctl() local
770 rthdr = (struct ipv6_rt_hdr *)CMSG_DATA(cmsg); in datagram_send_ctl()
772 switch (rthdr->type) { in datagram_send_ctl()
775 if (rthdr->hdrlen != 2 || in datagram_send_ctl()
776 rthdr->segments_left != 1) { in datagram_send_ctl()
787 len = ((rthdr->hdrlen + 1) << 3); in datagram_send_ctl()
795 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in datagram_send_ctl()
801 opt->srcrt = rthdr; in datagram_send_ctl()
Dah6.c223 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr() argument
229 segments_left = rthdr->segments_left; in ipv6_rearrange_rthdr()
232 rthdr->segments_left = 0; in ipv6_rearrange_rthdr()
241 segments = rthdr->hdrlen >> 1; in ipv6_rearrange_rthdr()
243 addrs = ((struct rt0_hdr *)rthdr)->addr; in ipv6_rearrange_rthdr()
Dexthdrs.c322 struct rt0_hdr *rthdr; in ipv6_rthdr_rcv() local
430 rthdr = (struct rt0_hdr *) hdr; in ipv6_rthdr_rcv()
431 addr = rthdr->addr; in ipv6_rthdr_rcv()
Dipv6_sockglue.c398 struct ipv6_rt_hdr *rthdr = opt->srcrt; in do_ipv6_setsockopt() local
399 switch (rthdr->type) { in do_ipv6_setsockopt()
402 if (rthdr->hdrlen != 2 || in do_ipv6_setsockopt()
403 rthdr->segments_left != 1) in do_ipv6_setsockopt()
/linux-3.4.99/net/mac80211/
Dstatus.c266 struct ieee80211_radiotap_header *rthdr; in ieee80211_add_tx_radiotap_header() local
270 rthdr = (struct ieee80211_radiotap_header *) skb_push(skb, rtap_len); in ieee80211_add_tx_radiotap_header()
272 memset(rthdr, 0, rtap_len); in ieee80211_add_tx_radiotap_header()
273 rthdr->it_len = cpu_to_le16(rtap_len); in ieee80211_add_tx_radiotap_header()
274 rthdr->it_present = in ieee80211_add_tx_radiotap_header()
277 pos = (unsigned char *)(rthdr + 1); in ieee80211_add_tx_radiotap_header()
288 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RATE); in ieee80211_add_tx_radiotap_header()
317 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_MCS); in ieee80211_add_tx_radiotap_header()
Drx.c109 struct ieee80211_radiotap_header *rthdr; in ieee80211_add_rx_radiotap_header() local
113 rthdr = (struct ieee80211_radiotap_header *)skb_push(skb, rtap_len); in ieee80211_add_rx_radiotap_header()
114 memset(rthdr, 0, rtap_len); in ieee80211_add_rx_radiotap_header()
117 rthdr->it_present = in ieee80211_add_rx_radiotap_header()
122 rthdr->it_len = cpu_to_le16(rtap_len); in ieee80211_add_rx_radiotap_header()
124 pos = (unsigned char *)(rthdr+1); in ieee80211_add_rx_radiotap_header()
131 rthdr->it_present |= in ieee80211_add_rx_radiotap_header()
155 rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_RATE); in ieee80211_add_rx_radiotap_header()
183 rthdr->it_present |= in ieee80211_add_rx_radiotap_header()
198 if ((pos - (u8 *)rthdr) & 1) in ieee80211_add_rx_radiotap_header()
[all …]
Dtx.c1502 struct ieee80211_radiotap_header *rthdr = in ieee80211_parse_tx_radiotap() local
1505 int ret = ieee80211_radiotap_iterator_init(&iterator, rthdr, skb->len, in ieee80211_parse_tx_radiotap()