Home
last modified time | relevance | path

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

/xnu-10002.81.5/tests/
H A Dnet_bridge.c491 route_msg rtmsg; in IPv4RouteApply() local
513 memset(&rtmsg, 0, sizeof(rtmsg)); in IPv4RouteApply()
514 rtmsg.hdr.rtm_type = cmd; in IPv4RouteApply()
515 rtmsg.hdr.rtm_version = RTM_VERSION; in IPv4RouteApply()
516 rtmsg.hdr.rtm_seq = rtm_seq++; in IPv4RouteApply()
517 rtmsg.hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_IFP; in IPv4RouteApply()
519 rtmsg.hdr.rtm_addrs |= RTA_IFA; in IPv4RouteApply()
521 rtmsg.hdr.rtm_flags = RTF_UP | RTF_STATIC; in IPv4RouteApply()
523 rtmsg.hdr.rtm_flags |= RTF_HOST; in IPv4RouteApply()
525 rtmsg.hdr.rtm_addrs |= RTA_NETMASK; in IPv4RouteApply()
[all …]