Home
last modified time | relevance | path

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

/netbsd/src/external/bsd/ntp/dist/include/
Dntpd.h545 extern u_char sys_ttl[MAX_TTL]; /* ttl mapping vector */
/netbsd/src/external/bsd/ntp/dist/ntpd/
Dntp_proto.c178 u_char sys_ttl[MAX_TTL]; /* ttl mapping vector */ variable
4221 sys_ttl[(peer->ttl >= sys_ttlmax) ? sys_ttlmax : peer->ttl], in peer_xmit()
4532 sys_ttl[(peer->ttl >= sys_ttlmax) ? sys_ttlmax : peer->ttl], in peer_xmit()
4964 sys_ttl[(pool->ttl >= sys_ttlmax) ? sys_ttlmax : pool->ttl], in pool_xmit()
5348 sys_ttl[i] = (u_char)((i * 256) / MAX_TTL); in init_proto()
Dntp_config.c3738 if (i < COUNTOF(sys_ttl)) in config_ttl()
3739 sys_ttl[i++] = (u_char)curr_ttl->i; in config_ttl()
3743 COUNTOF(sys_ttl), curr_ttl->i); in config_ttl()
Dntp_control.c2741 if (p->ttl > 0 && p->ttl < COUNTOF(sys_ttl)) in ctl_putpeer()
2743 sys_ttl[p->ttl]); in ctl_putpeer()
/netbsd/src/external/bsd/ntp/dist/
DCommitLog19666 clamp access to 'sys_ttl' to avoid OOB conditions / undefined behaviour
178553 make sizeof(sys_ttl) work