Lines Matching refs:rtmsg
1985 } rtmsg; variable
2024 char *cp = rtmsg.space; in who_is_using()
2053 (void) memset(&rtmsg, 0, sizeof (rtmsg)); in who_is_using()
2054 rtmsg.hdr.rtm_type = RTM_GET; in who_is_using()
2055 rtmsg.hdr.rtm_flags = RTF_UP | RTF_HOST; in who_is_using()
2056 rtmsg.hdr.rtm_version = RTM_VERSION; in who_is_using()
2057 rtmsg.hdr.rtm_seq = ++rts_seqno; in who_is_using()
2058 rtmsg.hdr.rtm_addrs = RTA_IFP | RTA_DST; in who_is_using()
2067 rtmsg.hdr.rtm_msglen = l = cp - (char *)&rtmsg; in who_is_using()
2069 if ((rlen = write(s, &rtmsg, l)) < 0) { in who_is_using()
2072 } else if (rlen < (int)rtmsg.hdr.rtm_msglen) { in who_is_using()
2078 l = read(s, &rtmsg, sizeof (rtmsg)); in who_is_using()
2079 } while (l > 0 && (rtmsg.hdr.rtm_seq != rts_seqno || in who_is_using()
2080 rtmsg.hdr.rtm_pid != pid)); in who_is_using()
2086 if (rtmsg.hdr.rtm_version != RTM_VERSION) { in who_is_using()
2089 rtmsg.hdr.rtm_version); in who_is_using()
2092 if (rtmsg.hdr.rtm_msglen != (ushort_t)l) { in who_is_using()
2095 rtmsg.hdr.rtm_msglen, l); in who_is_using()
2098 if (rtmsg.hdr.rtm_errno != 0) { in who_is_using()
2099 errno = rtmsg.hdr.rtm_errno; in who_is_using()
2103 if ((rtmsg.hdr.rtm_addrs & RTA_IFP) == 0) { in who_is_using()
2107 cp = ((char *)(&rtmsg.hdr + 1)); in who_is_using()
2112 if ((i & rtmsg.hdr.rtm_addrs) != 0) in who_is_using()