Lines Matching +full:use +full:- +full:rtm
3 /*-
7 * Redistribution and use in source and binary forms, with or without
23 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
48 #include <atf-c.h>
82 s = -1; in netcfg_rump_if()
97 sin->sin_family = AF_INET; in netcfg_rump_if()
98 sin->sin_len = sizeof(struct sockaddr_in); in netcfg_rump_if()
99 sin->sin_addr.s_addr = inaddr; in netcfg_rump_if()
103 sin->sin_family = AF_INET; in netcfg_rump_if()
104 sin->sin_len = sizeof(struct sockaddr_in); in netcfg_rump_if()
105 sin->sin_addr.s_addr = inmask; in netcfg_rump_if()
109 sin->sin_family = AF_INET; in netcfg_rump_if()
110 sin->sin_len = sizeof(struct sockaddr_in); in netcfg_rump_if()
111 sin->sin_addr.s_addr = inaddr | ~inmask; in netcfg_rump_if()
114 if (rv == -1) { in netcfg_rump_if()
131 #define rtm m_rtmsg.m_rtm in netcfg_rump_route() macro
137 if (s == -1) { in netcfg_rump_route()
145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
146 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in netcfg_rump_route()
147 rtm.rtm_version = RTM_VERSION; in netcfg_rump_route()
148 rtm.rtm_seq = 2; in netcfg_rump_route()
149 rtm.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK; in netcfg_rump_route()
175 len = bp - (uint8_t *)&m_rtmsg; in netcfg_rump_route()
176 rtm.rtm_msglen = len; in netcfg_rump_route()
199 if (s == -1) in netcfg_rump_pingtest()
204 &tv, sizeof(tv)) == -1) in netcfg_rump_pingtest()
219 (struct sockaddr *)&sin, slen) == -1) { in netcfg_rump_pingtest()
224 (struct sockaddr *)&sin, &slen) == -1) in netcfg_rump_pingtest()