/freebsd/tests/sys/net/routing/ |
H A D | test_rtsock_multipath.py | 110 msg.rtm_flags = RtConst.RTF_GATEWAY 147 msg.rtm_flags = RtConst.RTF_GATEWAY 171 msg.rtm_flags = RtConst.RTF_GATEWAY 174 msg.rtm_flags = RtConst.RTF_GATEWAY 196 msg.rtm_flags = RtConst.RTF_GATEWAY 199 msg.rtm_flags = RtConst.RTF_GATEWAY 212 msg.rtm_flags = RtConst.RTF_GATEWAY 238 msg.rtm_flags = RtConst.RTF_GATEWAY
|
H A D | test_rtsock_l3.c | 166 rtm->rtm_flags |= RTF_STATIC; in prepare_route_message() 210 verify_route_message_extra(struct rt_msghdr *rtm, int ifindex, int rtm_flags) in verify_route_message_extra() argument 215 if (rtm->rtm_flags != rtm_flags) { in verify_route_message_extra() 218 rtm->rtm_flags); in verify_route_message_extra() 220 rtm_flags); in verify_route_message_extra() 222 RTSOCK_ATF_REQUIRE_MSG(rtm, rtm->rtm_flags == rtm_flags, in verify_route_message_extra() 224 rtm_flags, expected_flags, in verify_route_message_extra() 225 rtm->rtm_flags, got_flags); in verify_route_message_extra() 669 rtm->rtm_flags |= test_flags; in ATF_TC_BODY() 676 rtm->rtm_flags &= ~test_flags; in ATF_TC_BODY() [all …]
|
H A D | rtsock_print.h | 137 rtsock_print_rtm_flags(char *buf, int buflen, int rtm_flags) in rtsock_print_rtm_flags() argument 140 _printb(buf, buflen, rtm_flags, routeflags); in rtsock_print_rtm_flags() 274 rtsock_print_rtm_flags(flags_buf, sizeof(flags_buf), rtm->rtm_flags); in rtsock_print_rtm()
|
/freebsd/libexec/bootpd/ |
H A D | rtmsg.c | 148 !(rtm->rtm_flags & RTF_GATEWAY)) switch (sdl->sdl_type) { in bsd_arp_set() 185 rtm->rtm_flags = flags; in rtmsg() 197 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg() 200 rtm->rtm_flags &= ~RTF_HOST; in rtmsg()
|
/freebsd/sbin/route/ |
H A D | route_netlink.c | 36 int rtmsg_nl(int cmd, int rtm_flags, int fib, int rtm_addrs, struct sockaddr_storage *so, 142 rtmsg_nl_int(struct nl_helper *h, int cmd, int rtm_flags, int fib, int rtm_addrs, in rtmsg_nl_int() argument 188 if ((rtm_flags & RTF_HOST) == 0 && mask4 != NULL) in rtmsg_nl_int() 198 if ((rtm_flags & RTF_HOST) == 0 && mask6 != NULL) in rtmsg_nl_int() 208 if (rtm_flags & RTF_REJECT) in rtmsg_nl_int() 210 else if (rtm_flags & RTF_BLACKHOLE) in rtmsg_nl_int() 221 rtm->rtm_flags = RTM_F_PREFIX; in rtmsg_nl_int() 229 if (rtm_flags & RTF_GATEWAY) { in rtmsg_nl_int() 257 if (rtm_flags != 0) in rtmsg_nl_int() 258 snl_add_msg_attr_u32(&nw, NL_RTA_RTFLAGS, rtm_flags); in rtmsg_nl_int() [all …]
|
H A D | route.c | 533 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in flushroutes_fib_rtsock() 563 printf("%-20.20s ", rtm->rtm_flags & RTF_HOST ? in flushroutes_fib_rtsock() 1589 rtm.rtm_flags = flags; in rtmsg_rtsock() 1777 printb(rtm->rtm_flags, routeflags); in print_rtmsg() 1830 if (sp[RTAX_GATEWAY] && (rtm->rtm_flags & RTF_GATEWAY)) in print_getmsg() 1839 printb(rtm->rtm_flags, routeflags); in print_getmsg()
|
/freebsd/usr.sbin/ndp/ |
H A D | ndp.c | 480 !(rtm->rtm_flags & RTF_GATEWAY)) { in set() 570 !(rtm->rtm_flags & RTF_GATEWAY)) { in delete_rtsock() 587 rtm->rtm_flags |= RTF_LLDATA; in delete_rtsock() 693 if (!(rtm->rtm_flags & RTF_HOST)) in dump_rtsock() 714 if (rtm->rtm_flags & RTF_WASCLONED) in dump_rtsock() 717 if (rtm->rtm_flags & RTF_CLONED) in dump_rtsock() 720 if (rtm->rtm_flags & RTF_PINNED) in dump_rtsock() 794 isrouter = rtm->rtm_flags & RTF_GATEWAY; in dump_rtsock() 803 (rtm->rtm_flags & RTF_ANNOUNCE) ? "p" : ""); in dump_rtsock() 812 (rtm->rtm_flags & RTF_ANNOUNCE) ? "p" : ""); in dump_rtsock() [all …]
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_route.c | 111 if (rtm->rtm_flags & RTF_HOST) in mib_sroute_process() 188 r->type = (rtm->rtm_flags & RTF_REJECT) ? 2 : 4; in mib_sroute_process() 191 r->proto = (rtm->rtm_flags & RTF_LOCAL) ? 2 : in mib_sroute_process() 192 (rtm->rtm_flags & RTF_STATIC) ? 3 : in mib_sroute_process() 193 (rtm->rtm_flags & RTF_DYNAMIC) ? 4 : 10; in mib_sroute_process() 256 !(rtm->rtm_flags & RTF_UP)) in mib_fetch_route()
|
H A D | mibII.c | 1174 if (rtm->rtm_flags & RTF_LLINFO) { in handle_rtmsg() 1184 if (rtm->rtm_errno == 0 && (rtm->rtm_flags & RTF_UP)) in handle_rtmsg() 1193 if (rtm->rtm_errno == 0 && (rtm->rtm_flags & RTF_UP)) in handle_rtmsg() 1220 msg->rtm_flags = 0; in mib_send_rtmsg()
|
/freebsd/usr.sbin/arp/ |
H A D | arp.c | 409 (rtm->rtm_flags & RTF_GATEWAY) || in set_rtsock() 493 !(rtm->rtm_flags & RTF_GATEWAY) && in delete_rtsock() 510 rtm->rtm_flags |= RTF_LLDATA; in delete_rtsock() 657 if (rtm->rtm_flags & RTF_ANNOUNCE) in print_entry() 711 if (rtm->rtm_flags & RTF_PINNED) in nuke_entry() 770 rtm->rtm_flags = opts.flags; in rtmsg() 785 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg()
|
/freebsd/tests/atf_python/sys/net/ |
H A D | rtsock.py | 345 self.rtm_flags = 0 392 RtConst.get_bitmask_str("RTF_", self.rtm_flags), 452 self.rtm_flags = hdr.rtm_flags 488 rtm_flags=self.rtm_flags,
|
/freebsd/sys/net/ |
H A D | rtsock.c | 694 info->rti_flags = rtm->rtm_flags; in fill_addrinfo() 821 if (rtm->rtm_flags & RTF_ANNOUNCE) { in handle_rtm_get() 1013 rtm->rtm_flags = rc->rc_rt->rte_flags | nhop_get_rtflags(nh); in update_rtm_from_rc() 1014 if (rtm->rtm_flags & RTF_GWFLAG_COMPAT) in update_rtm_from_rc() 1015 rtm->rtm_flags = RTF_GATEWAY | in update_rtm_from_rc() 1016 (rtm->rtm_flags & ~RTF_GWFLAG_COMPAT); in update_rtm_from_rc() 1135 if (rtm->rtm_flags & RTF_LLDATA) { in rts_send() 1141 int blackhole_flags = rtm->rtm_flags & (RTF_BLACKHOLE|RTF_REJECT); in rts_send() 1178 rtm->rtm_flags = rc.rc_rt->rte_flags | nhop_get_rtflags(nh); in rts_send() 1292 rtm->rtm_flags |= RTF_DONE; in send_rtm_reply() [all …]
|
H A D | route.h | 254 int rtm_flags; /* flags, incl. kern & message, e.g. DONE */ member
|
/freebsd/sbin/routed/ |
H A D | table.c | 692 w.w_rtm.rtm_flags = flags; in rtioctl() 708 w.w_rtm.rtm_flags |= RTF_HOST; in rtioctl() 882 if (rtm->rtm_flags & RTF_HOST) { in rtm_add() 914 if (rtm->rtm_flags & RTF_GATEWAY) in rtm_add() 916 if (rtm->rtm_flags & RTF_STATIC) in rtm_add() 919 if (0 != (rtm->rtm_flags & (RTF_DYNAMIC | RTF_MODIFIED))) { in rtm_add() 1099 if (rtm->rtm_flags & RTF_LLINFO) in flush_kern() 1105 if (rtm->rtm_flags & RTF_WASCLONED) in flush_kern() 1251 : (m.r.rtm.rtm_flags & RTF_HOST) in read_rt() 1264 if (m.r.rtm.rtm_flags & RTF_LLINFO) { in read_rt() [all …]
|
/freebsd/usr.sbin/route6d/ |
H A D | route6d.c | 1879 if ((rtm->rtm_flags & RTF_HOST) != 0) { in rtrecv() 2509 if (rtm->rtm_flags & (f)) \ in rtflags() 2660 if ((rtm->rtm_flags & RTF_UP) == 0 || rtm->rtm_flags & in rt_entry() 2666 if (rtm->rtm_flags & RTF_WASCLONED) in rt_entry() 2670 if (rtm->rtm_flags & RTF_CLONED) in rt_entry() 2674 if (!(rtm->rtm_flags & (RTF_GATEWAY|RTF_HOST|RTF_STATIC))) in rt_entry() 2680 if (rtm->rtm_flags & RTF_DYNAMIC) in rt_entry() 2723 if (aflag == 0 && (rtm->rtm_flags & RTF_STATIC)) in rt_entry() 2725 if (rtm->rtm_flags & Pflag) in rt_entry() 2727 if ((rtm->rtm_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST) in rt_entry() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | route.c | 366 p_flags(arg->prompt, rtm->rtm_flags, 6); in route_Show() 436 (all || (rtm->rtm_flags & RTF_GATEWAY))) { in route_IfDelete() 759 rtmes.m_rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in rt_Set() 805 rtmes.m_rtm.rtm_flags |= RTF_HOST; in rt_Set() 880 rtmes.m_rtm.rtm_flags = RTF_UP | RTF_STATIC; in rt_Update() 910 rtmes.m_rtm.rtm_flags |= RTF_HOST; in rt_Update()
|
H A D | arp.c | 122 arpmsg.hdr.rtm_flags = RTF_ANNOUNCE | RTF_HOST | RTF_STATIC | RTF_LLDATA; in arp_ProxySub()
|
/freebsd/contrib/netbsd-tests/net/if_loop/ |
H A D | t_pr.c | 94 rtm.rtm_flags = RTF_STATIC; in setup()
|
/freebsd/sys/netlink/route/ |
H A D | rt.c | 496 uint32_t rtm_flags; 525 { .off_in = _IN(rtm_flags), .off_out = _OUT(rtm_flags), .cb = nlf_get_u32 }, in post_p_rtmsg() 645 if (attrs->rtm_flags & RTM_F_PREFIX) in handle_rtm_getroute() 484 uint32_t rtm_flags; global() member
|
H A D | route.h | 45 unsigned rtm_flags; /* Route flags (RTM_F_) */ member
|
/freebsd/sys/netinet/ |
H A D | in.c | 1780 arpc.rtm.rtm_flags = RTF_UP; in in_lltable_dump_entry() 1785 arpc.rtm.rtm_flags |= RTF_ANNOUNCE; in in_lltable_dump_entry() 1802 arpc.rtm.rtm_flags |= (RTF_HOST | RTF_LLDATA); in in_lltable_dump_entry() 1804 arpc.rtm.rtm_flags |= RTF_STATIC; in in_lltable_dump_entry() 1806 arpc.rtm.rtm_flags |= RTF_PINNED; in in_lltable_dump_entry()
|
/freebsd/contrib/netbsd-tests/net/config/ |
H A D | netconfig.c | 146 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in netcfg_rump_route()
|
/freebsd/usr.bin/netstat/ |
H A D | route.c | 323 rtm->rtm_flags, wid.dst); in p_rtentry_sysctl() 328 p_flags(rtm->rtm_flags, buffer); in p_rtentry_sysctl()
|
/freebsd/sys/netinet6/ |
H A D | in6.c | 2507 ndpc.rtm.rtm_flags = RTF_UP; in in6_lltable_dump_entry() 2513 ndpc.rtm.rtm_flags |= RTF_ANNOUNCE; in in6_lltable_dump_entry() 2530 ndpc.rtm.rtm_flags |= (RTF_HOST | RTF_LLDATA); in in6_lltable_dump_entry() 2532 ndpc.rtm.rtm_flags |= RTF_STATIC; in in6_lltable_dump_entry() 2534 ndpc.rtm.rtm_flags |= RTF_PINNED; in in6_lltable_dump_entry() 2536 ndpc.rtm.rtm_flags |= RTF_GATEWAY; in in6_lltable_dump_entry()
|
/freebsd/tests/atf_python/sys/netlink/ |
H A D | netlink_route.py | 724 self.helper.get_bitmask_str(RtMsgFlags, hdr.rtm_flags), 725 hdr.rtm_flags,
|