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()
290 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_init() local303 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_init()319 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_add() local323 switch (rth->ip6r_type) { in inet6_rth_add()325 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()
333 static struct ip6_rthdr *rth; variable446 if (rth == NULL) { in main()451 if ((rth = inet6_rth_init((void *)rtbuf, in main()459 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()
3206 struct ip6_rthdr *rth; in ip6_setpktopt() local3217 rth = (struct ip6_rthdr *)buf; in ip6_setpktopt()3218 rthlen = (rth->ip6r_len + 1) << 3; in ip6_setpktopt()3222 switch (rth->ip6r_type) { in ip6_setpktopt()3224 if (rth->ip6r_len == 0) /* must contain one addr */ in ip6_setpktopt()3226 if (rth->ip6r_len % 2) /* length must be even */ in ip6_setpktopt()3228 if (rth->ip6r_len / 2 != rth->ip6r_segleft) in ip6_setpktopt()3240 bcopy(rth, opt->ip6po_rthdr, rthlen); in ip6_setpktopt()
926 struct ip6_rthdr *rth; in icmp6_notify_error() local963 if (m->m_len < eoff + sizeof(*rth)) { in icmp6_notify_error()964 m = m_pullup(m, eoff + sizeof(*rth)); in icmp6_notify_error()971 rth = (struct ip6_rthdr *) in icmp6_notify_error()973 rthlen = (rth->ip6r_len + 1) << 3; in icmp6_notify_error()982 if (rth->ip6r_segleft && in icmp6_notify_error()983 rth->ip6r_type == IPV6_RTHDR_TYPE_0) { in icmp6_notify_error()1004 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()
2851 struct ip6_rthdr *rth; in sourceroute() local2894 if ((rth = inet6_rth_init((void *)*cpp, sizeof(buf), in sourceroute()2972 if (inet6_rth_add((void *)rth, &sin6->sin6_addr) == -1) in sourceroute()2994 rth->ip6r_len = rth->ip6r_segleft * 2; in sourceroute()2995 *lenp = (rth->ip6r_len + 1) << 3; in sourceroute()