Home
last modified time | relevance | path

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

/xnu-11215/tests/
H A Dnet_test_lib.c673 route_msg rtmsg; in IPv4RouteApply() local
695 memset(&rtmsg, 0, sizeof(rtmsg)); in IPv4RouteApply()
696 rtmsg.hdr.rtm_type = cmd; in IPv4RouteApply()
697 rtmsg.hdr.rtm_version = RTM_VERSION; in IPv4RouteApply()
698 rtmsg.hdr.rtm_seq = rtm_seq++; in IPv4RouteApply()
701 rtmsg.hdr.rtm_addrs |= RTA_IFA; in IPv4RouteApply()
705 rtmsg.hdr.rtm_flags |= RTF_HOST; in IPv4RouteApply()
707 rtmsg.hdr.rtm_addrs |= RTA_NETMASK; in IPv4RouteApply()
720 rtaddr.ptr = rtmsg.addrs; in IPv4RouteApply()
767 len = (sizeof(rtmsg.hdr) in IPv4RouteApply()
[all …]
/xnu-11215/tests/skywalk/
H A Dskywalk_test_common.c2083 route_msg rtmsg; in IPv4RouteApply() local
2107 memset(&rtmsg, 0, sizeof(rtmsg)); in IPv4RouteApply()
2108 rtmsg.hdr.rtm_type = cmd; in IPv4RouteApply()
2109 rtmsg.hdr.rtm_version = RTM_VERSION; in IPv4RouteApply()
2110 rtmsg.hdr.rtm_seq = rtm_seq++; in IPv4RouteApply()
2113 rtmsg.hdr.rtm_addrs |= RTA_IFA; in IPv4RouteApply()
2117 rtmsg.hdr.rtm_flags |= RTF_HOST; in IPv4RouteApply()
2132 rtaddr.ptr = rtmsg.addrs; in IPv4RouteApply()
2179 len = (int)(sizeof(rtmsg.hdr) + (rtaddr.ptr - (void *)rtmsg.addrs)); in IPv4RouteApply()
2180 rtmsg.hdr.rtm_msglen = len; in IPv4RouteApply()
[all …]