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

/freebsd-12-stable/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c190 struct ieee80211_radiotap_header* rth; local
205 rth = (struct ieee80211_radiotap_header*)
209 present = le32toh(rth->it_present);
212 rflags = ((const uint8_t *)rth)[8];
214 rflags = ((const uint8_t *)rth)[0];
217 *len -= rth->it_len;
223 ptr = (char*)rth + rth->it_len;
/freebsd-12-stable/lib/libc/net/
H A Drthdr.c292 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; local
305 rth0 = (struct ip6_rthdr0 *)rth;
321 struct ip6_rthdr *rth = (struct ip6_rthdr *)bp; local
325 switch (rth->ip6r_type) {
327 rth0 = (struct ip6_rthdr0 *)rth;
/freebsd-12-stable/tools/tools/net80211/wlaninject/
H A Dwlaninject.c472 struct ieee80211_radiotap_header *rth; local
484 rth = (struct ieee80211_radiotap_header*)
486 glen -= rth->it_len;
488 wh = (struct ieee80211_frame*) ((char*)rth + rth->it_len);
491 present = le32toh(rth->it_present);
494 rflags = ((const uint8_t *)rth)[8];
496 rflags = ((const uint8_t *)rth)[0];
/freebsd-12-stable/tools/tools/net80211/stumbler/
H A Dstumbler.c743 struct ieee80211_radiotap_header* rth; local
756 rth = (struct ieee80211_radiotap_header*) data;
760 ((char*)rth + rth->it_len);
761 rd -= rth->it_len;
773 body = (char*) rth + sizeof(*rth);
777 if (!(rth->it_present & (1 << i)))
/freebsd-12-stable/usr.sbin/traceroute6/
H A Dtraceroute6.c332 static struct ip6_rthdr *rth; variable in typeref:struct:ip6_rthdr
439 if (rth == NULL) {
444 if ((rth = inet6_rth_init((void *)rtbuf,
452 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-12-stable/sys/netinet6/
H A Dip6_output.c3052 struct ip6_rthdr *rth; local
3063 rth = (struct ip6_rthdr *)buf;
3064 rthlen = (rth->ip6r_len + 1) << 3;
3068 switch (rth->ip6r_type) {
3070 if (rth->ip6r_len == 0) /* must contain one addr */
3072 if (rth->ip6r_len % 2) /* length must be even */
3074 if (rth->ip6r_len / 2 != rth->ip6r_segleft)
3086 bcopy(rth, opt->ip6po_rthdr, rthlen);
H A Dicmp6.c926 struct ip6_rthdr *rth; local
963 if (m->m_len < eoff + sizeof(*rth)) {
964 m = m_pullup(m, eoff + sizeof(*rth));
971 rth = (struct ip6_rthdr *)
973 rthlen = (rth->ip6r_len + 1) << 3;
982 if (rth->ip6r_segleft &&
983 rth->ip6r_type == IPV6_RTHDR_TYPE_0) {
1004 nxt = rth->ip6r_nxt;
/freebsd-12-stable/contrib/telnet/telnet/
H A Dcommands.c2860 struct ip6_rthdr *rth;
2903 if ((rth = inet6_rth_init((void *)*cpp, sizeof(buf),
2981 if (inet6_rth_add((void *)rth, &sin6->sin6_addr) == -1)
3003 rth->ip6r_len = rth->ip6r_segleft * 2;
3004 *lenp = (rth->ip6r_len + 1) << 3;
2851 struct ip6_rthdr *rth; local
/freebsd-12-stable/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2299 struct ieee80211_radiotap_header *rth; local
2327 rth = (struct ieee80211_radiotap_header*)
2331 present = le32toh(rth->it_present);
2334 rflags = ((const uint8_t *)rth)[8];
2336 rflags = ((const uint8_t *)rth)[0];
2339 *plen -= rth->it_len;
2348 ptr = (char*)rth + rth->it_len;

Completed in 130 milliseconds