Lines Matching refs:rtmsg
1966 } rtmsg; variable
2005 char *cp = rtmsg.space; in who_is_using()
2034 (void) memset(&rtmsg, 0, sizeof (rtmsg)); in who_is_using()
2035 rtmsg.hdr.rtm_type = RTM_GET; in who_is_using()
2036 rtmsg.hdr.rtm_flags = RTF_UP | RTF_HOST; in who_is_using()
2037 rtmsg.hdr.rtm_version = RTM_VERSION; in who_is_using()
2038 rtmsg.hdr.rtm_seq = ++rts_seqno; in who_is_using()
2039 rtmsg.hdr.rtm_addrs = RTA_IFP | RTA_DST; in who_is_using()
2048 rtmsg.hdr.rtm_msglen = l = cp - (char *)&rtmsg; in who_is_using()
2050 if ((rlen = write(s, &rtmsg, l)) < 0) { in who_is_using()
2053 } else if (rlen < (int)rtmsg.hdr.rtm_msglen) { in who_is_using()
2059 l = read(s, &rtmsg, sizeof (rtmsg)); in who_is_using()
2060 } while (l > 0 && (rtmsg.hdr.rtm_seq != rts_seqno || in who_is_using()
2061 rtmsg.hdr.rtm_pid != pid)); in who_is_using()
2067 if (rtmsg.hdr.rtm_version != RTM_VERSION) { in who_is_using()
2070 rtmsg.hdr.rtm_version); in who_is_using()
2073 if (rtmsg.hdr.rtm_msglen != (ushort_t)l) { in who_is_using()
2076 rtmsg.hdr.rtm_msglen, l); in who_is_using()
2079 if (rtmsg.hdr.rtm_errno != 0) { in who_is_using()
2080 errno = rtmsg.hdr.rtm_errno; in who_is_using()
2084 if ((rtmsg.hdr.rtm_addrs & RTA_IFP) == 0) { in who_is_using()
2088 cp = ((char *)(&rtmsg.hdr + 1)); in who_is_using()
2093 if ((i & rtmsg.hdr.rtm_addrs) != 0) in who_is_using()