Searched refs:rt_msg (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | 6to4relay.c | 113 } rt_msg; in modifyroute() local 122 (void) memset(&rt_msg, 0, sizeof (rt_msg)); in modifyroute() 123 rt_msg.rt_hdr.rtm_msglen = sizeof (rt_msg); in modifyroute() 124 rt_msg.rt_hdr.rtm_version = RTM_VERSION; in modifyroute() 125 rt_msg.rt_hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK; in modifyroute() 126 rt_msg.rt_hdr.rtm_pid = getpid(); in modifyroute() 127 rt_msg.rt_hdr.rtm_type = cmd; in modifyroute() 128 rt_msg.rt_hdr.rtm_seq = ++rtmseq; in modifyroute() 129 rt_msg.rt_hdr.rtm_flags = RTF_STATIC | RTF_GATEWAY; in modifyroute() 132 rt_msg.rt_dst.sin6_family = AF_INET6; in modifyroute() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | tables.c | 56 static struct rt_msghdr *rt_msg; /* Routing socket message */ variable 219 rt_msg->rtm_type = type; in rtcmd() 220 rt_msg->rtm_flags = flags; in rtcmd() 221 rt_msg->rtm_seq = ++rtmseq; in rtcmd() 222 rlen = write(rtsock, rt_msg, RIPNG_RTM_MSGLEN); in rtcmd() 647 rt_msg = (struct rt_msghdr *)malloc(RIPNG_RTM_MSGLEN); in setup_rtsock() 648 if (rt_msg == NULL) { in setup_rtsock() 658 bzero(rt_msg, RIPNG_RTM_MSGLEN); in setup_rtsock() 659 rt_msg->rtm_msglen = RIPNG_RTM_MSGLEN; in setup_rtsock() 660 rt_msg->rtm_version = RTM_VERSION; in setup_rtsock() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 91 struct rt_msghdr *rt_msg; /* Routing socket message */ variable 1483 rt_msg = (struct rt_msghdr *)malloc(NDP_RTM_MSGLEN); in setup_rtsock() 1484 if (rt_msg == NULL) { in setup_rtsock() 1494 bzero(rt_msg, NDP_RTM_MSGLEN); in setup_rtsock() 1495 rt_msg->rtm_msglen = NDP_RTM_MSGLEN; in setup_rtsock() 1496 rt_msg->rtm_version = RTM_VERSION; in setup_rtsock() 1497 rt_msg->rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK | RTA_IFP; in setup_rtsock() 1498 rt_msg->rtm_pid = getpid(); in setup_rtsock() 1499 if (rt_msg->rtm_pid < 0) { in setup_rtsock() 1508 cp = (char *)rt_msg + sizeof (struct rt_msghdr); in setup_rtsock()
|
H A D | defs.h | 81 extern struct rt_msghdr *rt_msg;
|
H A D | tables.c | 2246 rt_msg->rtm_flags = RTF_GATEWAY; in router_add_k() 2247 rt_msg->rtm_type = RTM_ADD; in router_add_k() 2248 rt_msg->rtm_seq = ++rtmseq; in router_add_k() 2249 rlen = write(rtsock, rt_msg, rt_msg->rtm_msglen); in router_add_k() 2255 } else if (rlen < rt_msg->rtm_msglen) { in router_add_k() 2290 rt_msg->rtm_flags = RTF_GATEWAY; in router_delete_k() 2291 rt_msg->rtm_type = RTM_DELETE; in router_delete_k() 2292 rt_msg->rtm_seq = ++rtmseq; in router_delete_k() 2293 rlen = write(rtsock, rt_msg, rt_msg->rtm_msglen); in router_delete_k() 2298 } else if (rlen < rt_msg->rtm_msglen) { in router_delete_k()
|