Lines Matching refs:rt_msg
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()
133 (void) memset(&rt_msg.rt_dst.sin6_addr.s6_addr, 0, in modifyroute()
137 rt_msg.rt_gate.sin6_family = AF_INET6; in modifyroute()
138 bcopy(in_gw->s6_addr, &rt_msg.rt_gate.sin6_addr.s6_addr, in modifyroute()
142 rt_msg.rt_mask.sin6_family = AF_INET6; in modifyroute()
143 (void) memset(&rt_msg.rt_mask.sin6_addr.s6_addr, 0, in modifyroute()
147 rlen = write(rtsock, &rt_msg, rt_msg.rt_hdr.rtm_msglen); in modifyroute()
148 if (rlen < rt_msg.rt_hdr.rtm_msglen) { in modifyroute()