Home
last modified time | relevance | path

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

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_expire.c79 char *ts; in mod_expire_get_offset() local
99 ts = expire->ptr; in mod_expire_get_offset()
103 ts += 7; in mod_expire_get_offset()
106 ts += 4; in mod_expire_get_offset()
109 ts += 13; in mod_expire_get_offset()
113 "invalid <base>:", ts); in mod_expire_get_offset()
119 ts += 5; in mod_expire_get_offset()
140 ts = space + 1; in mod_expire_get_offset()
146 slen = space - ts; in mod_expire_get_offset()
177 ts = space + 1; in mod_expire_get_offset()
[all …]
H A Dfdevent_freebsd_kqueue.c27 struct timespec ts; in fdevent_freebsd_kqueue_event_del() local
45 ts.tv_sec = 0; in fdevent_freebsd_kqueue_event_del()
46 ts.tv_nsec = 0; in fdevent_freebsd_kqueue_event_del()
51 &ts); in fdevent_freebsd_kqueue_event_del()
66 struct timespec ts; in fdevent_freebsd_kqueue_event_set() local
92 ts.tv_sec = 0; in fdevent_freebsd_kqueue_event_set()
93 ts.tv_nsec = 0; in fdevent_freebsd_kqueue_event_set()
98 &ts); in fdevent_freebsd_kqueue_event_set()
112 struct timespec ts; in fdevent_freebsd_kqueue_poll() local
114 ts.tv_sec = timeout_ms / 1000; in fdevent_freebsd_kqueue_poll()
[all …]
H A Dmod_secure_download.c196 time_t ts = 0; in URIHANDLER_FUNC() local
236 ts = (ts << 4) + hex2int(*(ts_str + i)); in URIHANDLER_FUNC()
240 if ( (srv->cur_ts > ts && (unsigned int) (srv->cur_ts - ts) > p->conf.timeout) || in URIHANDLER_FUNC()
241 (srv->cur_ts < ts && (unsigned int) (ts - srv->cur_ts) > p->conf.timeout) ) { in URIHANDLER_FUNC()
H A Dmod_status.c207 time_t ts; in mod_status_handle_server_status_html() local
314 days = ts / (60 * 60 * 24); in mod_status_handle_server_status_html()
315 ts %= (60 * 60 * 24); in mod_status_handle_server_status_html()
317 hours = ts / (60 * 60); in mod_status_handle_server_status_html()
318 ts %= (60 * 60); in mod_status_handle_server_status_html()
320 mins = ts / (60); in mod_status_handle_server_status_html()
321 ts %= (60); in mod_status_handle_server_status_html()
323 seconds = ts; in mod_status_handle_server_status_html()
346 ts = srv->startup_ts; in mod_status_handle_server_status_html()
568 time_t ts; in mod_status_handle_server_status_text() local
[all …]
H A Dinet_ntop_cache.c13 if (srv->inet_ntop_cache[i].ts != 0 && srv->inet_ntop_cache[i].family == addr->plain.sa_family) { in inet_ntop_cache_get_ip()
37 srv->inet_ntop_cache[i].ts = srv->cur_ts; in inet_ntop_cache_get_ip()
H A Dbase.h472 time_t ts; member
/mOS-networking-stack/core/src/
H A Dtcp_util.c63 struct tcp_timestamp *ts, uint8_t *tcpopt, int len) in ParseTCPTimestamp() argument
82 ts->ts_val = ntohl(*(uint32_t *)(tcpopt + i)); in ParseTCPTimestamp()
83 ts->ts_ref = ntohl(*(uint32_t *)(tcpopt + i + 4)); in ParseTCPTimestamp()
H A Dcore.c859 uint32_t ts, ts_prev; in RunMainLoop() local
882 ts = ts_prev = 0; in RunMainLoop()
894 ts = TIMEVAL_TO_TS(&cur_ts); in RunMainLoop()
895 mtcp->cur_ts = ts; in RunMainLoop()
980 FlushEpollEvents(mtcp, ts); in RunMainLoop()
990 HandleApplicationCalls(mtcp, ts); in RunMainLoop()
999 WritePacketsToChunks(mtcp, ts); in RunMainLoop()
1015 if (ts != ts_prev) { in RunMainLoop()
1016 ts_prev = ts; in RunMainLoop()
1020 ARPTimer(mtcp, ts); in RunMainLoop()
[all …]
H A Dicmp.c71 uint32_t ts; in ICMPOutput() local
97 ts = TIMEVAL_TO_TS(&cur_ts); in ICMPOutput()
100 iph = (struct iphdr *)EthernetOutput(mtcp, pctx, ETH_P_IP, nif, haddr, pktlen, ts); in ICMPOutput()
H A Dtcp_out.c71 uint32_t *ts = (uint32_t *)(tcpopt + 2); in GenerateTCPTimestamp() local
75 ts[0] = htonl(cur_ts); in GenerateTCPTimestamp()
76 ts[1] = htonl(cur_stream->rcvvar->ts_recent); in GenerateTCPTimestamp()
150 uint32_t *ts; in SendTCPPacketStandalone() local
192 ts = (uint32_t *)(tcpopt + 4); in SendTCPPacketStandalone()
198 ts[0] = htonl(cur_ts); in SendTCPPacketStandalone()
199 ts[1] = htonl(echo_ts); in SendTCPPacketStandalone()
H A Dtcp_in.c95 struct tcp_timestamp ts; in ValidateSequence() local
97 if (!ParseTCPTimestamp(cur_stream, &ts, in ValidateSequence()
107 if (TCP_SEQ_LT(ts.ts_val, cur_stream->rcvvar->ts_recent)) { in ValidateSequence()
112 pctx->p.seq, ts.ts_val, cur_stream->rcvvar->ts_recent); in ValidateSequence()
117 if (TCP_SEQ_GT(ts.ts_val, cur_stream->rcvvar->ts_recent)) { in ValidateSequence()
120 ts.ts_val, cur_stream->rcvvar->ts_recent, in ValidateSequence()
125 cur_stream->rcvvar->ts_recent = ts.ts_val; in ValidateSequence()
126 cur_stream->rcvvar->ts_lastack_rcvd = ts.ts_ref; in ValidateSequence()
/mOS-networking-stack/core/src/include/
H A Dnetmap_user.h199 struct timeval ts; member
978 d->hdr.ts = ring->ts; in nm_dispatch()
1001 hdr->ts = ring->ts; in nm_nextpkt()
H A Dtcp_util.h18 struct tcp_timestamp *ts, uint8_t *tcpopt, int len);
H A Dnetmap.h277 struct timeval ts; /* (k) time of last *sync() */ member