Lines Matching defs:rt_hdr
109 struct rt_msghdr rt_hdr;
123 rt_msg.rt_hdr.rtm_msglen = sizeof (rt_msg);
124 rt_msg.rt_hdr.rtm_version = RTM_VERSION;
125 rt_msg.rt_hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK;
126 rt_msg.rt_hdr.rtm_pid = getpid();
127 rt_msg.rt_hdr.rtm_type = cmd;
128 rt_msg.rt_hdr.rtm_seq = ++rtmseq;
129 rt_msg.rt_hdr.rtm_flags = RTF_STATIC | RTF_GATEWAY;
147 rlen = write(rtsock, &rt_msg, rt_msg.rt_hdr.rtm_msglen);
148 if (rlen < rt_msg.rt_hdr.rtm_msglen) {