Home
last modified time | relevance | path

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

/freebsd/tools/tools/net80211/w00t/libw00t/
H A Dw00t.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/lib/libc/net/
H A Drthdr.c289 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_init() local
302 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_init()
318 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; in inet6_rth_add() local
322 switch (rth->ip6r_type) { in inet6_rth_add()
324 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_add()
/freebsd/tools/tools/net80211/wlaninject/
H A Dwlaninject.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/tools/tools/net80211/stumbler/
H A Dstumbler.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/usr.sbin/traceroute6/
H A Dtraceroute6.c322 static struct ip6_rthdr *rth; variable
438 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()
/freebsd/sys/netinet6/
H A Dip6_output.c3201 struct ip6_rthdr *rth; in ip6_setpktopt() local
3212 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()
H A Dicmp6.c955 struct ip6_rthdr *rth; in icmp6_notify_error() local
992 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()
/freebsd/tools/tools/net80211/wesside/wesside/
H A Dwesside.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/contrib/telnet/telnet/
H A Dcommands.c2856 struct ip6_rthdr *rth; in sourceroute() local
2899 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()