Home
last modified time | relevance | path

Searched refs:rtm_addrs (Results 1 – 15 of 15) sorted by relevance

/titanic_44/usr/src/uts/common/inet/ip/
H A Dip6_rts.c80 rts_fill_msg_v6(int type, int rtm_addrs, const in6_addr_t *dst, in rts_fill_msg_v6() argument
102 data_size = rts_data_msg_size(rtm_addrs, AF_INET6, gc != NULL ? 1 : 0); in rts_fill_msg_v6()
110 switch (rtm_addrs & (1 << i)) { in rts_fill_msg_v6()
199 int flags, int error, int rtm_addrs, ip_stack_t *ipst) in ip_rts_change_v6() argument
204 if (rtm_addrs == 0) in ip_rts_change_v6()
206 mp = rts_alloc_msg(type, rtm_addrs, AF_INET6, 0); in ip_rts_change_v6()
209 rts_fill_msg_v6(type, rtm_addrs, dst_addr, net_mask, gw_addr, source, in ip_rts_change_v6()
215 rtm->rtm_addrs = rtm_addrs; in ip_rts_change_v6()
H A Dip_rts.c77 #define RTS_MSG_SIZE(type, rtm_addrs, af, sacnt) \ argument
78 (rts_data_msg_size(rtm_addrs, af, sacnt) + rts_header_msg_size(type))
81 static void rts_fill_msg(int type, int rtm_addrs, ipaddr_t dst,
192 int rtm_addrs = (RTA_DST | RTA_NETMASK | RTA_GATEWAY); in ip_rts_rtmsg() local
204 rtm_addrs |= RTA_SRC; in ip_rts_rtmsg()
209 mp = rts_alloc_msg(type, rtm_addrs, af, 0); in ip_rts_rtmsg()
212 rts_fill_msg(type, rtm_addrs, ire->ire_addr, ire->ire_mask, in ip_rts_rtmsg()
218 mp = rts_alloc_msg(type, rtm_addrs, af, 0); in ip_rts_rtmsg()
224 rts_fill_msg_v6(type, rtm_addrs, &ire->ire_addr_v6, in ip_rts_rtmsg()
232 rtm->rtm_addrs = rtm_addrs; in ip_rts_rtmsg()
[all …]
H A Dip6_if.c945 const in6_addr_t *gw_addr, uint_t rtm_addrs, int flags, ill_t *ill, in ip_rt_delete_v6() argument
961 } else if (rtm_addrs & RTA_NETMASK) { in ip_rt_delete_v6()
H A Dip_if.c5971 uint_t rtm_addrs, int flags, ill_t *ill, boolean_t ioctl_msg, in ip_rt_delete() argument
5988 } else if (rtm_addrs & RTA_NETMASK) { in ip_rt_delete()
/titanic_44/usr/src/lib/libipadm/common/
H A Dipadm_ngz.c99 w.w_rtm.rtm_addrs = RTA_DST|RTA_GATEWAY; in i_ipadm_rtioctl4()
113 w.w_rtm.rtm_addrs |= RTA_NETMASK; in i_ipadm_rtioctl4()
124 w.w_rtm.rtm_addrs |= RTA_IFP; in i_ipadm_rtioctl4()
177 w.w_rtm.rtm_addrs = RTA_DST|RTA_GATEWAY; in i_ipadm_rtioctl6()
187 w.w_rtm.rtm_addrs |= RTA_NETMASK; in i_ipadm_rtioctl6()
200 w.w_rtm.rtm_addrs |= RTA_IFP; in i_ipadm_rtioctl6()
/titanic_44/usr/src/cmd/cmd-inet/lib/nwamd/
H A Drouting_events.c413 setaddr(RTA_DST, &rtm->rtm_addrs, &addrs, dest); in nwamd_add_route()
414 setaddr(RTA_GATEWAY, &rtm->rtm_addrs, &addrs, gateway); in nwamd_add_route()
415 setaddr(RTA_NETMASK, &rtm->rtm_addrs, &addrs, mask); in nwamd_add_route()
416 setaddr(RTA_IFP, &rtm->rtm_addrs, &addrs, (struct sockaddr *)&sdl); in nwamd_add_route()
/titanic_44/usr/src/uts/common/net/
H A Droute.h158 int rtm_addrs; /* bitmask identifying sockaddrs in msg */ member
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A D6to4relay.c125 rt_msg.rt_hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK; in modifyroute()
H A Droute.c740 rtm->rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK; in delRouteEntry()
2457 rtm.rtm_addrs = newrt->ri_addrs; in rtmsg()
2667 if (rtm->rtm_addrs != 0) { in print_getmsg()
2669 if (i & rtm->rtm_addrs) { in print_getmsg()
2759 if (rtm->rtm_addrs &~ RTA_IGN) { in print_getmsg()
2761 bprintf(stdout, rtm->rtm_addrs, addrnames); in print_getmsg()
2765 addrs = rtm->rtm_addrs; in print_getmsg()
2787 rtm->rtm_addrs); in pmsg_common()
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c332 rtmsg.rm_mh.rtm_addrs = RTA_GATEWAY | RTA_DST | RTA_NETMASK | RTA_IFP; in update_default_route()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtable.c773 rtm->rtm_flags, rtm->rtm_addrs, rtm->rtm_pid, rtm->rtm_seq); in dump_rt_msg()
827 w.w_rtm.rtm_addrs = RTA_DST|RTA_GATEWAY; in rtioctl()
839 w.w_rtm.rtm_addrs |= RTA_NETMASK; in rtioctl()
857 w.w_rtm.rtm_addrs |= RTA_IFP; in rtioctl()
1673 1), (char *)&m + cc, m.r.rtm.rtm_addrs); in read_rt()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/
H A Dncaconfd.c1195 if ((rtm->rtm_addrs & RTA_DST) && in daemon_work()
1197 if (!(rtm->rtm_addrs & RTA_GATEWAY)) { in daemon_work()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c663 rt_msg->rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK | RTA_IFP; in setup_rtsock()
/titanic_44/usr/src/cmd/zoneadmd/
H A Dvplat.c2038 rtmsg.hdr.rtm_addrs = RTA_IFP | RTA_DST; in who_is_using()
2083 if ((rtmsg.hdr.rtm_addrs & RTA_IFP) == 0) { in who_is_using()
2092 if ((i & rtmsg.hdr.rtm_addrs) != 0) in who_is_using()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c1492 rt_msg->rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK | RTA_IFP; in setup_rtsock()