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

/freebsd-current/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c188 struct ieee80211_radiotap_header* rth; local
203 rth = (struct ieee80211_radiotap_header*)
207 present = le32toh(rth->it_present);
210 rflags = ((const uint8_t *)rth)[8];
212 rflags = ((const uint8_t *)rth)[0];
215 *len -= rth->it_len;
221 ptr = (char*)rth + rth->it_len;
/freebsd-current/lib/libc/net/
H A Drthdr.c289 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; local
302 rth0 = (struct ip6_rthdr0 *)rth;
318 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; local
322 switch (rth->ip6r_type) {
324 rth0 = (struct ip6_rthdr0 *)rth;
/freebsd-current/tools/tools/net80211/wlaninject/
H A Dwlaninject.c470 struct ieee80211_radiotap_header *rth; local
482 rth = (struct ieee80211_radiotap_header*)
484 glen -= rth->it_len;
486 wh = (struct ieee80211_frame*) ((char*)rth + rth->it_len);
489 present = le32toh(rth->it_present);
492 rflags = ((const uint8_t *)rth)[8];
494 rflags = ((const uint8_t *)rth)[0];
/freebsd-current/tools/tools/net80211/stumbler/
H A Dstumbler.c741 struct ieee80211_radiotap_header* rth; local
754 rth = (struct ieee80211_radiotap_header*) data;
758 ((char*)rth + rth->it_len);
759 rd -= rth->it_len;
771 body = (char*) rth + sizeof(*rth);
775 if (!(rth->it_present & (1 << i)))
/freebsd-current/usr.sbin/traceroute6/
H A Dtraceroute6.c322 static struct ip6_rthdr *rth; variable in typeref:struct:ip6_rthdr
438 if (rth == NULL) {
443 if ((rth = inet6_rth_init((void *)rtbuf,
451 if (inet6_rth_add((void *)rth,
776 if (rth) {/* XXX: there is no library to finalize the header... */
777 rth->ip6r_len = rth->ip6r_segleft * 2;
779 (void *)rth, (rth->ip6r_len + 1) << 3)) {
/freebsd-current/sys/netinet6/
H A Dip6_output.c3184 struct ip6_rthdr *rth; local
3195 rth = (struct ip6_rthdr *)buf;
3196 rthlen = (rth->ip6r_len + 1) << 3;
3200 switch (rth->ip6r_type) {
3202 if (rth->ip6r_len == 0) /* must contain one addr */
3204 if (rth->ip6r_len % 2) /* length must be even */
3206 if (rth->ip6r_len / 2 != rth->ip6r_segleft)
3218 bcopy(rth, opt->ip6po_rthdr, rthlen);
H A Dicmp6.c952 struct ip6_rthdr *rth; local
989 if (m->m_len < eoff + sizeof(*rth)) {
990 m = m_pullup(m, eoff + sizeof(*rth));
997 rth = (struct ip6_rthdr *)
999 rthlen = (rth->ip6r_len + 1) << 3;
1008 if (rth->ip6r_segleft &&
1009 rth->ip6r_type == IPV6_RTHDR_TYPE_0) {
1030 nxt = rth->ip6r_nxt;
/freebsd-current/contrib/telnet/telnet/
H A Dcommands.c2865 struct ip6_rthdr *rth;
2908 if ((rth = inet6_rth_init((void *)*cpp, sizeof(buf),
2986 if (inet6_rth_add((void *)rth, &sin6->sin6_addr) == -1)
3008 rth->ip6r_len = rth->ip6r_segleft * 2;
3009 *lenp = (rth->ip6r_len + 1) << 3;
2856 struct ip6_rthdr *rth; local
/freebsd-current/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2298 struct ieee80211_radiotap_header *rth; local
2326 rth = (struct ieee80211_radiotap_header*)
2330 present = le32toh(rth->it_present);
2333 rflags = ((const uint8_t *)rth)[8];
2335 rflags = ((const uint8_t *)rth)[0];
2338 *plen -= rth->it_len;
2347 ptr = (char*)rth + rth->it_len;

Completed in 445 milliseconds