Searched refs:rtm (Results 1 – 6 of 6) sorted by relevance
304 struct rt_msghdr *rtm = NULL; in route_output() local333 if (len < sizeof(*rtm) || in route_output()338 rtm = kalloc_data(len, Z_WAITOK); in route_output()339 if (rtm == NULL) { in route_output()344 m_copydata(m, 0, len, (caddr_t)rtm); in route_output()345 if (rtm->rtm_version != RTM_VERSION) { in route_output()354 if (rtm->rtm_type == RTM_GET_SILENT) { in route_output()359 rtm->rtm_type = RTM_GET; in route_output()366 if (rtm->rtm_type != RTM_GET && !(so->so_state & SS_PRIV)) { in route_output()371 rtm->rtm_pid = proc_selfpid(); in route_output()[all …]
765 lla_rt_output(struct rt_msghdr *rtm, struct rt_addrinfo *info) in lla_rt_output() argument799 switch (rtm->rtm_type) { in lla_rt_output()803 if (rtm->rtm_rmx.rmx_expire == 0) { in lla_rt_output()819 if (rtm->rtm_flags & RTF_ANNOUNCE) { in lla_rt_output()822 lle->la_expire = rtm->rtm_rmx.rmx_expire; in lla_rt_output()
24 struct rt_msghdr *rtm = (struct rt_msghdr *)buf; variable29 rtm->rtm_type = RTM_GET;30 rtm->rtm_version = RTM_VERSION;31 rtm->rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK;35 sa = (struct sockaddr *)(rtm + 1);60 rtm->rtm_msglen = len;68 sa = (struct sockaddr *)(rtm + 1);85 rtm->rtm_msglen = len;
2633 struct rt_msghdr rtm; in in_lltable_dump_entry() member2653 arpc.rtm.rtm_msglen = sizeof(arpc); in in_lltable_dump_entry()2654 arpc.rtm.rtm_version = RTM_VERSION; in in_lltable_dump_entry()2655 arpc.rtm.rtm_type = RTM_GET; in in_lltable_dump_entry()2656 arpc.rtm.rtm_flags = RTF_UP; in in_lltable_dump_entry()2657 arpc.rtm.rtm_addrs = RTA_DST | RTA_GATEWAY; in in_lltable_dump_entry()2661 arpc.rtm.rtm_flags |= RTF_ANNOUNCE; in in_lltable_dump_entry()2677 arpc.rtm.rtm_rmx.rmx_expire = in in_lltable_dump_entry()2679 arpc.rtm.rtm_flags |= (RTF_HOST | RTF_LLDATA); in in_lltable_dump_entry()2681 arpc.rtm.rtm_flags |= RTF_STATIC; in in_lltable_dump_entry()[all …]
4836 struct rt_msghdr rtm; in in6_lltable_dump_entry() member4863 ndpc.rtm.rtm_msglen = sizeof(ndpc); in in6_lltable_dump_entry()4864 ndpc.rtm.rtm_version = RTM_VERSION; in in6_lltable_dump_entry()4865 ndpc.rtm.rtm_type = RTM_GET; in in6_lltable_dump_entry()4866 ndpc.rtm.rtm_flags = RTF_UP; in in6_lltable_dump_entry()4867 ndpc.rtm.rtm_addrs = RTA_DST | RTA_GATEWAY; in in6_lltable_dump_entry()4871 ndpc.rtm.rtm_flags |= RTF_ANNOUNCE; in in6_lltable_dump_entry()4890 ndpc.rtm.rtm_rmx.rmx_expire = (int32_t)(lle->la_expire + in in6_lltable_dump_entry()4894 ndpc.rtm.rtm_flags |= (RTF_HOST | RTF_LLDATA); in in6_lltable_dump_entry()4896 ndpc.rtm.rtm_flags |= RTF_STATIC; in in6_lltable_dump_entry()[all …]
969 SYSCTL_PROC(_hw_optional, OID_AUTO, rtm, CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_KERN | CTLFLAG_LOCKED, …