Home
last modified time | relevance | path

Searched refs:RTM_ADD (Results 1 – 25 of 37) sorted by relevance

12

/netbsd-src/usr.sbin/rarpd/
H A Dmkarp.c136 unsigned char msgfilter[] = { RTM_GET, RTM_ADD }; in mkarp()
202 result = rtmsg(RTM_ADD, s, rtm, &sin_m, &sdl_m); in mkarp()
231 case RTM_ADD: in rtmsg()
/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Dif.h229 #ifndef RTM_ADD
230 #define RTM_ADD 0x1 /* Add Route */ macro
H A Dif-bsd.c153 RTM_ADD, RTM_CHANGE, RTM_DELETE, RTM_MISS, in if_opensockets_os()
729 if (cmd != RTM_ADD) in if_route()
735 if (cmd == RTM_ADD || cmd == RTM_CHANGE) { in if_route()
1297 !(rtm->rtm_type == RTM_ADD && !(rt.rt_dflags & RTDF_GATELINK))) in if_rtm()
1301 reachable = (rtm->rtm_type == RTM_ADD || in if_rtm()
1536 case RTM_ADD: /* FALLTHROUGH */ in if_dispatch()
H A Droute.c584 if (if_route(RTM_ADD, nrt) != -1) { in rt_add()
624 if (if_route(RTM_ADD, nrt) != -1 || errno == EEXIST) { in rt_add()
/netbsd-src/usr.sbin/ldpd/
H A Dmpls_routes.c321 rm.m_rtm.rtm_type = (optype == RTM_READD) ? RTM_ADD : optype; in add_route()
540 if (rg->m_rtm.rtm_type != RTM_ADD &&
609 (rg->m_rtm.rtm_type != RTM_ADD && in check_route()
667 case RTM_ADD: in check_route()
734 case RTM_ADD: in check_route()
H A Dmpls_interface.c129 oldbinding == MPLS_LABEL_IMPLNULL ? RTM_ADD : RTM_CHANGE) in mpls_add_label()
/netbsd-src/sys/netatalk/
H A Dat_control.c621 ntohs(aa->aa_firstnet), ntohs(aa->aa_lastnet), RTM_ADD); in at_ifinit()
741 if (cmd == RTM_ADD) { in aa_dorangeroute()
766 error = aa_dosingleroute(ifa, addr, mask, RTM_ADD, RTF_UP); in aa_addsingleroute()
/netbsd-src/sys/net/
H A Droute.c895 error = rtrequest1(RTM_ADD, &info, &rt); in rtredirect()
899 rt_newmsg_dynamic(RTM_ADD, rt); in rtredirect()
1212 case RTM_ADD: in rtrequest1()
1509 rt->rt_ifa->ifa_rtrequest(RTM_ADD, rt, info); in rt_update()
1674 case RTM_ADD: in rtinit()
1713 e = rtrequest1(RTM_ADD, &info, &nrt); in rt_ifa_addlocal()
1714 rt_addrmsg_rt(RTM_ADD, ifa, e, nrt); in rt_ifa_addlocal()
H A Drtsock_shared.c750 case RTM_ADD: in COMPATNAME()
1477 if (cmd == RTM_ADD && vec_sctp_add_ip_address != NULL) { in COMPATNAME()
1489 case cmdpass(RTM_ADD, 1): in COMPATNAME()
1496 case RTM_ADD: in COMPATNAME()
1539 case cmdpass(RTM_ADD, 2): in COMPATNAME()
H A Droute.h240 #define RTM_ADD 0x1 /* Add Route */ macro
H A Drtsock.c164 if (type == RTM_ADD || type == RTM_CHANGE) in rt_clonedmsg()
H A Dlink_proto.c240 rt_addrmsg(RTM_ADD, ifa); in link_control()
/netbsd-src/share/examples/rump/virtual_ip_router/
H A Drumprouter.c135 rtm.rtm_type = RTM_ADD; in configure_routing()
/netbsd-src/tests/net/config/
H A Dnetconfig.c148 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
/netbsd-src/sbin/routed/
H A Dtable.c742 action = RTM_ADD; in rtioctl()
870 case RTM_ADD: in kern_ioctl()
875 action = RTM_ADD; in kern_ioctl()
1303 case RTM_ADD: in read_rt()
1547 kern_ioctl(k, RTM_ADD, in fix_kern()
/netbsd-src/usr.sbin/rtadvd/
H A Drtadvd.c512 RTADV_TYPE2BITMASK(RTM_ADD) | in rtmsg_input()
524 case RTM_ADD: in rtmsg_input()
583 case RTM_ADD: in rtmsg_input()
1604 RTM_ADD, RTM_DELETE, in rtsock_open()
H A Dif.c221 case RTM_ADD: in get_next_msg()
/netbsd-src/usr.bin/rump_dhcpclient/
H A Dif-bsd.c213 rtm.hdr.rtm_type = RTM_ADD; in if_route()
/netbsd-src/sys/netinet/
H A Dip_carp.c407 if ((cmd == RTM_ADD && count != 1) || in carp_setroute()
435 case RTM_ADD: in carp_setroute()
440 rtrequest(RTM_ADD, ifa->ifa_addr, in carp_setroute()
455 if (rtrequest(RTM_ADD, ifa->ifa_addr, in carp_setroute()
475 if (cmd == RTM_ADD) in carp_setroute()
1532 carp_setroute(sc, RTM_ADD); in carp_master_down()
H A Dip_icmp.c1163 error = rtrequest(RTM_ADD, dst, rt->rt_gateway, NULL, in icmp_mtudisc()
1170 rt_newmsg_dynamic(RTM_ADD, nrt); in icmp_mtudisc()
H A Dif_arp.c359 if (req != RTM_ADD) in arp_rtrequest()
388 case RTM_ADD: in arp_rtrequest()
1051 rt_cmd = la->la_flags & LLE_VALID ? 0 : RTM_ADD; in in_arpinput()
/netbsd-src/usr.sbin/arp/
H A Darp.c363 rtm = rtmsg(s, RTM_ADD, NULL, &sin_m, &sdl_m); in set()
712 case RTM_ADD: in rtmsg()
/netbsd-src/sys/netinet6/
H A Dnd6.c874 if (req != RTM_ADD) in nd6_rtrequest()
903 case RTM_ADD: { in nd6_rtrequest()
1516 rt_clonedmsg(is_newentry ? RTM_ADD : RTM_CHANGE, in nd6_cache_lladdr()
/netbsd-src/usr.sbin/ndp/
H A Dndp.c359 return (rtmsg(RTM_ADD, NULL)); in set()
753 case RTM_ADD: in rtmsg()
/netbsd-src/sbin/route/
H A Droute.c1186 cmd = RTM_ADD; in rtmsg()
1291 [RTM_ADD] = "RTM_ADD: Add Route",
1485 case RTM_ADD: /* FALLTHROUGH */ in print_rtmsg()

12