Home
last modified time | relevance | path

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

/minix3/lib/libc/time/
H A Dgetdate.c65 static struct tm rtm, tmnow; in getdate() local
66 struct tm *tmp, *rtmp = &rtm; in getdate()
95 rtm.tm_sec = rtm.tm_min = rtm.tm_hour = TMSENTINEL; in getdate()
96 rtm.tm_mday = rtm.tm_mon = rtm.tm_year = TMSENTINEL; in getdate()
97 rtm.tm_wday = rtm.tm_yday = rtm.tm_isdst = TMSENTINEL; in getdate()
98 rtm.tm_gmtoff = 0; in getdate()
99 rtm.tm_zone = NULL; in getdate()
141 if (rtm.tm_wday != TMSENTINEL && rtm.tm_year == TMSENTINEL && in getdate()
142 rtm.tm_mon == TMSENTINEL && rtm.tm_mday == TMSENTINEL) { in getdate()
143 rtm.tm_year = tmnow.tm_year; in getdate()
[all …]
H A Dlocaltime.c1747 struct tm mytm, *rtm; in ctime_rz() local
1749 rtm = localtime_rz(sp, timep, &mytm); in ctime_rz()
1750 if (rtm == NULL) in ctime_rz()
1752 return asctime_r(rtm, buf); in ctime_rz()
/minix3/usr.sbin/rtadvd/
H A Dif.c195 struct rt_msghdr *rtm; in get_next_msg() local
200 for (rtm = (struct rt_msghdr *)buf; in get_next_msg()
201 rtm < (struct rt_msghdr *)lim; in get_next_msg()
202 rtm = (struct rt_msghdr *)(((char *)rtm) + rtm->rtm_msglen)) { in get_next_msg()
204 if (!rtm->rtm_msglen) { in get_next_msg()
207 buf, lim, rtm); in get_next_msg()
210 if (FILTER_MATCH(rtm->rtm_type, filter) == 0) { in get_next_msg()
214 switch (rtm->rtm_type) { in get_next_msg()
219 sa = (struct sockaddr *)(rtm + 1); in get_next_msg()
220 get_rtaddrs(rtm->rtm_addrs, sa, rti_info); in get_next_msg()
[all …]
/minix3/external/bsd/dhcpcd/dist/
H A Dif-bsd.c450 if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, struct rt_msghdr *rtm) in if_copyrt() argument
455 cp = (char *)(void *)(rtm + 1); in if_copyrt()
459 if (~rtm->rtm_addrs & (RTA_DST | RTA_GATEWAY)) in if_copyrt()
462 if (rtm->rtm_flags & RTF_CLONED) in if_copyrt()
466 if (rtm->rtm_flags & RTF_LOCAL) in if_copyrt()
470 if (rtm->rtm_flags & RTF_BROADCAST) in if_copyrt()
474 get_addrs(rtm->rtm_addrs, cp, rti_info); in if_copyrt()
476 rt->flags = (unsigned int)rtm->rtm_flags; in if_copyrt()
478 if (rtm->rtm_addrs & RTA_NETMASK) in if_copyrt()
485 if (rtm->rtm_inits & RTV_MTU) in if_copyrt()
[all …]
/minix3/minix/net/lwip/
H A Drtsock.c521 rtsock_process(struct rtsock *rt, struct rt_msghdr * rtm, char * buf, in rtsock_process() argument
532 if (rtm->rtm_msglen != len) in rtsock_process()
535 if (rtm->rtm_version != RTM_VERSION) { in rtsock_process()
537 rtm->rtm_pid, rtm->rtm_version); in rtsock_process()
547 switch (rtm->rtm_type) { in rtsock_process()
569 off = sizeof(*rtm); in rtsock_process()
573 if (!(rtm->rtm_addrs & (1 << i))) in rtsock_process()
616 rtr.rtr_pid = rtm->rtm_pid; in rtsock_process()
617 rtr.rtr_seq = rtm->rtm_seq; in rtsock_process()
618 rtr.rtr_getif = (rtm->rtm_type == RTM_GET && in rtsock_process()
[all …]
/minix3/usr.sbin/arp/
H A Darp.c267 struct rt_msghdr *rtm; in set() local
315 rtm = rtmsg(s, RTM_GET, &sin_m, &sdl_m); in set()
316 if (rtm == NULL) { in set()
320 sina = (struct sockaddr_inarp *)(void *)(rtm + 1); in set()
324 if (is_llinfo(sdl, rtm->rtm_flags)) in set()
350 rtm = rtmsg(s, RTM_ADD, &sin_m, &sdl_m); in set()
353 return (rtm == NULL) ? 1 : 0; in set()
400 struct rt_msghdr *rtm; in delete() local
411 rtm = rtmsg(s, RTM_GET, &sin_m, &sdl_m); in delete()
412 if (rtm == NULL) { in delete()
[all …]
/minix3/sbin/route/
H A Droute.c298 struct rt_msghdr *rtm; in flushroutes() local
329 for (next = buf; next < lim; next += rtm->rtm_msglen) { in flushroutes()
330 rtm = (struct rt_msghdr *)next; in flushroutes()
331 sa = (struct sockaddr *)(rtm + 1); in flushroutes()
333 print_rtmsg(rtm, rtm->rtm_msglen); in flushroutes()
334 if ((rtm->rtm_flags & flags) != flags) in flushroutes()
336 if (!(rtm->rtm_flags & (RTF_GATEWAY | RTF_STATIC | in flushroutes()
344 if (rtm->rtm_flags & RTF_LOCAL) in flushroutes()
351 rtm->rtm_type = RTM_DELETE; in flushroutes()
352 rtm->rtm_seq = seqno; in flushroutes()
[all …]
H A Drtutil.c111 struct rt_msghdr *rtm; in p_rttables() local
136 for (next = buf; next < lim; next += rtm->rtm_msglen) { in p_rttables()
137 rtm = (struct rt_msghdr *)next; in p_rttables()
138 sa = (struct sockaddr *)(rtm + 1); in p_rttables()
139 if ((rtm->rtm_flags & pflags) != pflags) in p_rttables()
143 p_rtentry(rtm, flags, interesting); in p_rttables()
257 p_rtentry(struct rt_msghdr *rtm, int flags, int interesting) in p_rtentry() argument
260 struct sockaddr *sa = (struct sockaddr *)(rtm + 1); in p_rtentry()
266 if ((flags & RT_LFLAG) && (rtm->rtm_flags & RTF_LLINFO)) in p_rtentry()
274 get_rtaddrs(rtm->rtm_addrs, sa, rti_info); in p_rtentry()
[all …]
/minix3/tests/net/if_loop/
H A Dt_pr.c66 #define rtm m_rtmsg.m_rtm in setup() macro
93 rtm.rtm_type = RTM_CHANGE; in setup()
94 rtm.rtm_flags = RTF_STATIC; in setup()
95 rtm.rtm_version = RTM_VERSION; in setup()
96 rtm.rtm_seq = 3; in setup()
97 rtm.rtm_inits = RTV_MTU; in setup()
98 rtm.rtm_addrs = RTA_DST; in setup()
99 rtm.rtm_rmx.rmx_mtu = 100; in setup()
100 rtm.rtm_msglen = sizeof(m_rtmsg); in setup()
/minix3/lib/libc/net/
H A Dgetifaddrs.c82 struct rt_msghdr *rtm; in __weak_alias() local
104 for (next = buf; next < buf + needed; next += rtm->rtm_msglen) { in __weak_alias()
105 rtm = (struct rt_msghdr *)(void *)next; in __weak_alias()
106 if (rtm->rtm_version != RTM_VERSION) in __weak_alias()
108 switch (rtm->rtm_type) { in __weak_alias()
110 ifm = (struct if_msghdr *)(void *)rtm; in __weak_alias()
126 ifam = (struct ifa_msghdr *)(void *)rtm; in __weak_alias()
184 for (next = buf; next < buf + needed; next += rtm->rtm_msglen) { in __weak_alias()
185 rtm = (struct rt_msghdr *)(void *)next; in __weak_alias()
186 if (rtm->rtm_version != RTM_VERSION) in __weak_alias()
[all …]
/minix3/minix/tests/
H A Dtest93.c372 struct rt_msghdr rtm; in test93_route_cmd() local
378 memset(&rtm, 0, sizeof(rtm)); in test93_route_cmd()
379 rtm.rtm_version = RTM_VERSION; in test93_route_cmd()
380 rtm.rtm_type = cmd; in test93_route_cmd()
381 rtm.rtm_flags = flags; in test93_route_cmd()
382 rtm.rtm_addrs = RTA_DST | RTA_NETMASK; in test93_route_cmd()
383 rtm.rtm_seq = ++seq; in test93_route_cmd()
386 iov[iovlen].iov_base = &rtm; in test93_route_cmd()
387 iov[iovlen++].iov_len = sizeof(rtm); in test93_route_cmd()
402 rtm.rtm_addrs |= RTA_GATEWAY; in test93_route_cmd()
[all …]
/minix3/usr.sbin/ndp/
H A Dndp.c346 register struct rt_msghdr *rtm = &(m_rtmsg.m_rtm); in set() local
385 mysin = (struct sockaddr_in6 *)(void *)(rtm + 1); in set()
389 (rtm->rtm_flags & RTF_LLINFO) && in set()
390 !(rtm->rtm_flags & RTF_GATEWAY)) { in set()
451 register struct rt_msghdr *rtm = &m_rtmsg.m_rtm; in delete() local
470 mysin = (struct sockaddr_in6 *)(void *)(rtm + 1); in delete()
475 (rtm->rtm_flags & RTF_LLINFO) && in delete()
476 !(rtm->rtm_flags & RTF_GATEWAY)) { in delete()
519 struct rt_msghdr *rtm; in dump() local
554 for (next = buf; next && next < lim; next += rtm->rtm_msglen) { in dump()
[all …]
/minix3/tests/net/config/
H A Dnetconfig.c131 #define rtm m_rtmsg.m_rtm in netcfg_rump_route() macro
145 rtm.rtm_type = RTM_ADD; in netcfg_rump_route()
146 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in netcfg_rump_route()
147 rtm.rtm_version = RTM_VERSION; in netcfg_rump_route()
148 rtm.rtm_seq = 2; in netcfg_rump_route()
149 rtm.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK; in netcfg_rump_route()
176 rtm.rtm_msglen = len; in netcfg_rump_route()
/minix3/usr.bin/netstat/
H A Dif.c173 struct rt_msghdr *rtm; in intpr_sysctl() local
192 for (next = buf; next < lim; next += rtm->rtm_msglen) { in intpr_sysctl()
193 rtm = (struct rt_msghdr *)next; in intpr_sysctl()
194 if (rtm->rtm_version != RTM_VERSION) in intpr_sysctl()
196 switch (rtm->rtm_type) { in intpr_sysctl()
975 struct rt_msghdr *rtm; in fetchifs() local
991 for (next = buf; next < lim; next += rtm->rtm_msglen) { in fetchifs()
992 rtm = (struct rt_msghdr *)next; in fetchifs()
993 if (rtm->rtm_version != RTM_VERSION) in fetchifs()
995 switch (rtm->rtm_type) { in fetchifs()
/minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/
H A Dxtest.ll1 ; RUN: llc < %s -march=x86-64 -mattr=+rtm | FileCheck %s
H A Drtm.ll1 ; RUN: llc < %s -mattr=+rtm -mtriple=x86_64-unknown-unknown | FileCheck %s
/minix3/tests/net/route/
H A Dt_flags.sh338 local rtm=$2
354 atf_check -s exit:0 grep -q $rtm ./mon.log
/minix3/external/bsd/bind/dist/bin/named/
H A Dinterfacemgr.c108 struct MSGHDR *rtm; in route_event() local
128 rtm = (struct MSGHDR *)mgr->buf; in route_event()
130 if (rtm->rtm_version != RTM_VERSION) { in route_event()
134 "recompile required", rtm->rtm_version, in route_event()
142 switch (rtm->MSGTYPE) { in route_event()
/minix3/sbin/ifconfig/
H A Dieee80211.c751 struct rt_msghdr *rtm; in scan_and_wait() local
758 rtm = (struct rt_msghdr *) buf; in scan_and_wait()
759 if (rtm->rtm_version != RTM_VERSION) in scan_and_wait()
761 ifan = (struct if_announcemsghdr *) rtm; in scan_and_wait()
762 } while (rtm->rtm_type != RTM_IEEE80211 || in scan_and_wait()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/
H A DX86.td158 def FeatureRTM : SubtargetFeature<"rtm", "HasRTM", "true",
/minix3/external/bsd/file/dist/magic/magdir/
H A Dmsdos109 >>>(8.s*16) string 32STUB \b, 32rtm DOS extender
/minix3/external/bsd/llvm/dist/clang/include/clang/Driver/
H A DOptions.td1174 def mno_rtm : Flag<["-"], "mno-rtm">, Group<m_x86_Features_Group>;
/minix3/etc/
H A Dservices15411 checkpoint-rtm 18241/tcp # Check Point RTM [Dudi_Hazan] …
15412 checkpoint-rtm 18241/udp # Check Point RTM [Dudi_Hazan] …
16136 profinet-rtm 34963/tcp # PROFInet RT Multicast [Peter_Wenzel] …
16137 profinet-rtm 34963/udp # PROFInet RT Multicast [Peter_Wenzel] …
21935 … R. Thirumurthy mailto:rtm&banyannetworks.com