Searched refs:rth (Results 1 – 9 of 9) sorted by relevance
188 struct ieee80211_radiotap_header* rth; in get_wifi() local203 rth = (struct ieee80211_radiotap_header*) in get_wifi()207 present = le32toh(rth->it_present); in get_wifi()210 rflags = ((const uint8_t *)rth)[8]; in get_wifi()212 rflags = ((const uint8_t *)rth)[0]; in get_wifi()215 *len -= rth->it_len; in get_wifi()221 ptr = (char*)rth + rth->it_len; in get_wifi()
289 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_init() local302 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_init()318 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_add() local322 switch (rth->ip6r_type) { in inet6_rth_add()324 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_add()
470 struct ieee80211_radiotap_header *rth; in do_verify() local482 rth = (struct ieee80211_radiotap_header*) in do_verify()484 glen -= rth->it_len; in do_verify()486 wh = (struct ieee80211_frame*) ((char*)rth + rth->it_len); in do_verify()489 present = le32toh(rth->it_present); in do_verify()492 rflags = ((const uint8_t *)rth)[8]; in do_verify()494 rflags = ((const uint8_t *)rth)[0]; in do_verify()
741 struct ieee80211_radiotap_header* rth; in radiotap() local754 rth = (struct ieee80211_radiotap_header*) data; in radiotap()758 ((char*)rth + rth->it_len); in radiotap()759 rd -= rth->it_len; in radiotap()771 body = (char*) rth + sizeof(*rth); in radiotap()775 if (!(rth->it_present & (1 << i))) in radiotap()
322 static struct ip6_rthdr *rth; variable438 if (rth == NULL) { in main()443 if ((rth = inet6_rth_init((void *)rtbuf, in main()451 if (inet6_rth_add((void *)rth, in main()776 if (rth) {/* XXX: there is no library to finalize the header... */ in main()777 rth->ip6r_len = rth->ip6r_segleft * 2; in main()779 (void *)rth, (rth->ip6r_len + 1) << 3)) { in main()
3201 struct ip6_rthdr *rth; in ip6_setpktopt() local3212 rth = (struct ip6_rthdr *)buf; in ip6_setpktopt()3213 rthlen = (rth->ip6r_len + 1) << 3; in ip6_setpktopt()3217 switch (rth->ip6r_type) { in ip6_setpktopt()3219 if (rth->ip6r_len == 0) /* must contain one addr */ in ip6_setpktopt()3221 if (rth->ip6r_len % 2) /* length must be even */ in ip6_setpktopt()3223 if (rth->ip6r_len / 2 != rth->ip6r_segleft) in ip6_setpktopt()3235 bcopy(rth, opt->ip6po_rthdr, rthlen); in ip6_setpktopt()
955 struct ip6_rthdr *rth; in icmp6_notify_error() local992 if (m->m_len < eoff + sizeof(*rth)) { in icmp6_notify_error()993 m = m_pullup(m, eoff + sizeof(*rth)); in icmp6_notify_error()1000 rth = (struct ip6_rthdr *) in icmp6_notify_error()1002 rthlen = (rth->ip6r_len + 1) << 3; in icmp6_notify_error()1011 if (rth->ip6r_segleft && in icmp6_notify_error()1012 rth->ip6r_type == IPV6_RTHDR_TYPE_0) { in icmp6_notify_error()1033 nxt = rth->ip6r_nxt; in icmp6_notify_error()
2298 struct ieee80211_radiotap_header *rth; in get_80211() local2326 rth = (struct ieee80211_radiotap_header*) in get_80211()2330 present = le32toh(rth->it_present); in get_80211()2333 rflags = ((const uint8_t *)rth)[8]; in get_80211()2335 rflags = ((const uint8_t *)rth)[0]; in get_80211()2338 *plen -= rth->it_len; in get_80211()2347 ptr = (char*)rth + rth->it_len; in get_80211()
2856 struct ip6_rthdr *rth; in sourceroute() local2899 if ((rth = inet6_rth_init((void *)*cpp, sizeof(buf), in sourceroute()2977 if (inet6_rth_add((void *)rth, &sin6->sin6_addr) == -1) in sourceroute()2999 rth->ip6r_len = rth->ip6r_segleft * 2; in sourceroute()3000 *lenp = (rth->ip6r_len + 1) << 3; in sourceroute()