Home
last modified time | relevance | path

Searched refs:rth (Results 1 – 9 of 9) sorted by relevance

/freebsd-13-stable/tools/tools/net80211/w00t/libw00t/
HDw00t.c188 struct ieee80211_radiotap_header* rth; in get_wifi() local
203 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()
/freebsd-13-stable/lib/libc/net/
HDrthdr.c290 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_init() local
303 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_init()
319 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_add() local
323 switch (rth->ip6r_type) { in inet6_rth_add()
325 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_add()
/freebsd-13-stable/tools/tools/net80211/wlaninject/
HDwlaninject.c470 struct ieee80211_radiotap_header *rth; in do_verify() local
482 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()
/freebsd-13-stable/tools/tools/net80211/stumbler/
HDstumbler.c741 struct ieee80211_radiotap_header* rth; in radiotap() local
754 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()
/freebsd-13-stable/usr.sbin/traceroute6/
HDtraceroute6.c333 static struct ip6_rthdr *rth; variable
446 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()
/freebsd-13-stable/sys/netinet6/
HDip6_output.c3206 struct ip6_rthdr *rth; in ip6_setpktopt() local
3217 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()
HDicmp6.c926 struct ip6_rthdr *rth; in icmp6_notify_error() local
963 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()
/freebsd-13-stable/tools/tools/net80211/wesside/wesside/
HDwesside.c2298 struct ieee80211_radiotap_header *rth; in get_80211() local
2326 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()
/freebsd-13-stable/contrib/telnet/telnet/
HDcommands.c2851 struct ip6_rthdr *rth; in sourceroute() local
2894 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()