Searched defs:rtsock (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libipadm/common/
H A Dipadm_ngz.c67 i_ipadm_rtioctl4(int rtsock, int action, in_addr_t dst, in_addr_t gate, argument
123 cc = write(rtsock, &w, w.w_rtm.rtm_msglen);
144 i_ipadm_rtioctl6(int rtsock, int action, in6_addr_t dst, in6_addr_t gate, argument
198 cc = write(rtsock, &w, w.w_rtm.rtm_msglen);
356 int rtsock; local
363 * Open and close rtsock here instead of under ipadm_open()
370 if ((rtsock = socket(PF_ROUTE, SOCK_RAW, 0)) == -1)
376 rstatus = i_ipadm_rtioctl6(rtsock, RTM_ADD,
380 rstatus = i_ipadm_rtioctl4(rtsock, RTM_ADD,
388 (void) close(rtsock);
[all...]
H A Dlibipadm.c445 int rtsock)
457 fds[0].fd = rtsock;
473 if (read(rtsock, &msg, sizeof (msg)) <= 0)
506 int rtsock = -1; local
521 rtsock = socket(PF_ROUTE, SOCK_RAW, af);
529 if (rtsock != -1)
530 (void) close(rtsock);
533 if (rtsock == -1) {
555 (void) close(rtsock);
560 status = i_ipadm_dad_wait(iph, lifname, af, rtsock);
444 i_ipadm_dad_wait(ipadm_handle_t handle, const char *lifname, sa_family_t af, int rtsock) argument
[all...]

Completed in 23 milliseconds