Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 93) sorted by relevance

1234

/xnu-11215/bsd/netinet/
H A Dtcp_ledbat.c108 tp->bg_ssthresh = tp->snd_cwnd; in update_cwnd()
111 tp->snd_cwnd = tcp_round_to(tp->snd_cwnd, tp->t_maxseg); in update_cwnd()
131 tp->snd_cwnd = tcp_round_to(tp->snd_cwnd, tp->t_maxseg); in update_cwnd()
136 tp->bg_ssthresh = tp->snd_cwnd; in update_cwnd()
150 tp->snd_cwnd = min(tp->snd_cwnd, TCP_MAXWIN << tp->snd_scale); in update_cwnd()
186 tp->bg_ssthresh = tp->snd_ssthresh; in tcp_ledbat_cwnd_init()
263 tp->bg_ssthresh = tp->snd_cwnd; in ledbat_pp_congestion_avd()
439 tp->t_lossflightsize = tp->snd_max - tp->snd_una; in tcp_ledbat_pre_fr()
466 ss = tp->snd_max - tp->snd_una; in tcp_ledbat_post_fr()
483 tp->snd_cwnd = max(ss, tp->t_maxseg) + tp->t_maxseg; in tcp_ledbat_post_fr()
[all …]
H A Dtcp_cubic.c151 win = min(tp->snd_cwnd, tp->snd_wnd); in tcp_cubic_update()
242 tp->t_ccstate->cub_tcp_win = min(tp->snd_cwnd, tp->snd_wnd); in tcp_cubic_tcpwin()
309 tp->t_bytes_acked -= tp->snd_cwnd; in tcp_cubic_congestion_avd()
351 tp->snd_cwnd = min(tp->snd_cwnd + tp->t_maxseg, TCP_MAXWIN << tp->snd_scale); in tcp_cubic_congestion_avd()
382 abc_lim = (tp->snd_nxt == tp->snd_max) ? 2 * tp->t_maxseg : tp->t_maxseg; in tcp_cubic_ack_rcvd()
387 tp->snd_cwnd = min(tp->snd_cwnd, TCP_MAXWIN << tp->snd_scale); in tcp_cubic_ack_rcvd()
402 tp->t_lossflightsize = tp->snd_max - tp->snd_una; in tcp_cubic_pre_fr()
433 tp->t_ccstate->cub_last_max = tp->snd_max - tp->snd_una; in tcp_cubic_pre_fr()
543 tp->snd_cwnd = max(flight_size, tp->t_maxseg) + tp->t_maxseg; in tcp_cubic_post_fr()
545 tp->snd_cwnd = tp->snd_ssthresh; in tcp_cubic_post_fr()
[all …]
H A Dtcp_prague.c241 tp->snd_cwnd = min(tp->snd_cwnd + tp->t_maxseg, TCP_MAXWIN << tp->snd_scale); in tcp_cubic_ack_ca()
276 tp->snd_cwnd = tcp_round_to(tp->snd_cwnd, tp->t_maxseg); in tcp_prague_ack_rcvd()
277 if (tp->snd_cwnd < 2 * tp->t_maxseg) { in tcp_prague_ack_rcvd()
278 tp->snd_cwnd = 2 * tp->t_maxseg; in tcp_prague_ack_rcvd()
333 tp->snd_cwnd = tp->snd_ssthresh; in tcp_prague_post_fr()
365 if (tp->snd_cwnd < tp->snd_ssthresh) { in prague_update_pacer_state()
422 tp->snd_cwnd += tp->t_maxseg; in prague_ca_after_ce()
502 tp->snd_cwnd = tcp_round_to(tp->snd_cwnd, tp->t_maxseg); in prague_cwr()
506 tp->snd_cwnd = 2 * tp->t_maxseg; in prague_cwr()
509 tp->snd_ssthresh = tp->snd_cwnd; in prague_cwr()
[all …]
H A Dtcp_rledbat.c77 tp->t_rlstate.win = tp->t_maxseg * bg_ss_fltsz; in tcp_rledbat_init()
94 tp->t_rlstate.win = tp->t_maxseg * bg_ss_fltsz; in tcp_rledbat_rwnd_init()
147 tp->t_rlstate.ssthresh = tp->t_rlstate.win; in rledbat_congestion_avd()
164 tp->t_rlstate.ssthresh = tp->t_rlstate.win; in rledbat_congestion_avd()
167 tp->t_rlstate.win = min(tcp_round_to(tp->t_rlstate.win, tp->t_maxseg), in rledbat_congestion_avd()
198 tp->t_rlstate.win = tcp_round_to(tp->t_rlstate.win, tp->t_maxseg); in rledbat_congestion_avd()
304 tp->t_rlstate.win = min(tp->t_rlstate.win, in tcp_rledbat_data_rcvd()
329 tp->t_rlstate.win = min(tcp_round_to(tp->t_rlstate.win, tp->t_maxseg), in tcp_rledbat_data_rcvd()
348 tp->t_rlstate.win_ws - tp->t_rlstate.win < tp->t_rlstate.drained_bytes) { in tcp_rledbat_get_rlwin()
349 tp->t_rlstate.win_ws = tp->t_rlstate.win; in tcp_rledbat_get_rlwin()
[all …]
H A Dtcp_input.c857 CC_ALGO(tp)->pre_fr(tp); in tcp_enter_fast_recovery()
4212 tp = tcp_close(tp); in tcp_input()
4217 tp = tcp_close(tp); in tcp_input()
4436 tp = tcp_close(tp); in tcp_input()
4462 tp = tcp_close(tp); in tcp_input()
5198 tp->snd_cwnd = tp->snd_ssthresh + tp->t_maxseg * tp->t_dupacks; in tcp_input()
5587 tp = tcp_close(tp); in tcp_input()
6537 tp->rcv_rtt_est_seq = tp->rcv_nxt + tp->rcv_wnd; in tcp_compute_rcv_rtt()
6633 tp->t_rttbest = tp->t_srtt + tp->t_rttvar; in tcp_xmit_timer()
6688 tp->t_rttbest = tp->t_srtt + tp->t_rttvar; in tcp_xmit_timer()
[all …]
H A Dtcp_cc.c120 tp->snd_cwnd = tcp_initial_cwnd(tp); in tcp_cc_cwnd_init_or_reset()
123 tp->snd_cwnd = min(4 * tp->t_maxseg, in tcp_cc_cwnd_init_or_reset()
200 (tp->rcv_nxt - tp->last_ack_sent <= tp->t_maxseg || in tcp_cc_delay_ack()
203 (tp->rcv_nxt - tp->last_ack_sent) < 256 * tp->t_maxseg) { in tcp_cc_delay_ack()
220 tp->t_ccstate = &tp->_t_ccstate; in tcp_cc_allocate_state()
222 bzero(tp->t_ccstate, sizeof(*tp->t_ccstate)); in tcp_cc_allocate_state()
274 if (tp->t_pipeack >= (tp->snd_cwnd >> 1) || in tcp_cc_is_cwnd_nonvalidated()
291 tp->t_pipeack = tcp_get_max_pipeack(tp); in tcp_cc_adjust_nonvalidated_cwnd()
293 tp->snd_cwnd = (max(tp->t_pipeack, tp->t_lossflightsize) >> 1); in tcp_cc_adjust_nonvalidated_cwnd()
295 tp->snd_cwnd = max(tp->snd_cwnd, tp->t_maxseg); in tcp_cc_adjust_nonvalidated_cwnd()
[all …]
H A Dtcp_newreno.c148 if (tp->snd_cwnd < tp->snd_wnd) { in tcp_newreno_congestion_avd()
151 tp->t_bytes_acked -= tp->snd_cwnd; in tcp_newreno_congestion_avd()
152 tp->snd_cwnd += tp->t_maxseg; in tcp_newreno_congestion_avd()
209 win = min(tp->snd_wnd, tp->snd_cwnd) / in tcp_newreno_pre_fr()
214 tp->snd_ssthresh = win * tp->t_maxseg; in tcp_newreno_pre_fr()
226 ss = tp->snd_max - tp->snd_una; in tcp_newreno_post_fr()
243 tp->snd_cwnd = max(ss, tp->t_maxseg) + tp->t_maxseg; in tcp_newreno_post_fr()
245 tp->snd_cwnd = tp->snd_ssthresh; in tcp_newreno_post_fr()
281 u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg; in tcp_newreno_after_timeout()
287 tp->snd_cwnd = tp->t_maxseg; in tcp_newreno_after_timeout()
[all …]
H A Dtcp_output.c560 ret = tp->snd_nxt - tp->snd_una - tp->sackhint.sack_bytes_acked; in tcp_flight_size()
574 ret, tp->snd_nxt, tp->snd_max, tp->snd_una, in tcp_flight_size()
766 CC_ALGO(tp)->after_idle(tp); in tcp_output()
955 if (SACK_ENABLED(tp) && SEQ_LT(tp->snd_nxt, tp->snd_max)) { in tcp_output()
1202 if (tp->t_state == TCPS_SYN_RECEIVED && TFO_ENABLED(tp) && tp->snd_nxt == tp->snd_una + 1) { in tcp_output()
1293 tp->snd_nxt = tp->snd_una; in tcp_output()
1805 tp->snd_una == tp->iss + 1 && (tp->snd_fack == tp->iss) in tcp_output()
1826 tp->snd_nxt = tp->iss; in tcp_output()
1827 tp->snd_fack = tp->iss; in tcp_output()
2873 tp->snd_max = tp->snd_nxt; in tcp_output()
[all …]
H A Dtcp_timer.c949 CC_ALGO(tp)->cwnd_init(tp); in tcp_pmtud_revert_segment_size()
1062 tp = tcp_drop(tp, 0); in tcp_timers()
1064 tp = tcp_close(tp); in tcp_timers()
1140 tp = tcp_drop(tp, tp->t_softerror ? in tcp_timers()
1377 tp->snd_nxt = tp->snd_una; in tcp_timers()
1647 tp = tcp_drop(tp, tp->t_softerror ? in tcp_timers()
1732 tp->snd_nxt = tp->snd_una; in tcp_timers()
1759 tp->snd_nxt = tp->snd_max; in tcp_timers()
1865 CC_ALGO(tp)->pre_fr(tp); in tcp_timers()
2064 tp = tcp_timers(tp, index); in tcp_run_conn_timer()
[all …]
H A Dtcp_rack.c81 tp->rack.advanced = 1; in tcp_rack_bad_rexmt_restore()
84 tp->rack.reo_wnd_persist = MIN(tp->rack.reo_wnd_persist + 1, in tcp_rack_bad_rexmt_restore()
106 if (IN_FASTRECOVERY(tp) || dup_acks >= tp->t_rexmtthresh || in_rto) { in tcp_rack_reordering_window()
194 if (tcp_rack_sent_after(xmit_ts, end_seq, tp->rack.xmit_ts, tp->rack.end_seq)) { in tcp_rack_update_segment_acked()
195 tp->rack.advanced = 1; in tcp_rack_update_segment_acked()
198 tp->rack.rtt = rtt; in tcp_rack_update_segment_acked()
236 tp->rack.dsack_round_end = tp->snd_nxt; in tcp_rack_update_reordering_window()
237 tp->rack.reo_wnd_multi = (uint8_t)(min(0xFF, tp->rack.reo_wnd_multi + 1)); in tcp_rack_update_reordering_window()
261 if (!tcp_rack_sent_after(tp->rack.xmit_ts, tp->rack.end_seq, in tcp_rack_detect_loss()
300 tp->t_timer[TCPT_REORDER] = OFFSET_FROM_START(tp, in tcp_rack_detect_loss_and_arm_timer()
[all …]
H A Dtcp_sack.c223 if (tp->acc_iaj > 0 && tp->rcv_numsacks > 0) { in tcp_update_sack_list()
408 tp->t_reorderwin = min(tp->t_reorderwin, in tcp_sack_detect_reordering()
721 tp->snd_cwnd = tcp_flight_size(tp) + num_segs * tp->t_maxseg; in tcp_sack_partialack()
722 if (tp->snd_cwnd > tp->snd_ssthresh) { in tcp_sack_partialack()
723 tp->snd_cwnd = tp->snd_ssthresh; in tcp_sack_partialack()
725 if (SEQ_LT(tp->snd_fack, tp->snd_recover) && in tcp_sack_partialack()
737 tp->snd_fack = tp->snd_recover; in tcp_sack_partialack()
747 if (!((tp->t_flags & TF_SENTFIN) && tp->snd_nxt == tp->snd_max - 1) && in tcp_sack_partialack()
838 if (SEQ_GEQ(tp->snd_nxt, tp->snd_fack)) { in tcp_sack_adjust()
860 tp->snd_nxt = tp->snd_fack; in tcp_sack_adjust()
[all …]
H A Dtcp_log.h115 if (tp == NULL || tp->t_inpcb == NULL) { in tcp_is_log_enabled()
118 inp = tp->t_inpcb; in tcp_is_log_enabled()
162 if (tp == NULL || tp->t_inpcb == NULL) { in tcp_log_summary_needed()
165 inp = tp->t_inpcb; in tcp_log_summary_needed()
170 #define TCP_LOG_RTT_INFO(tp) if (tcp_is_log_enabled(tp, TLEF_RTT)) \ argument
173 #define TCP_LOG_RTM_RTT(tp, rt) if (tcp_is_log_enabled(tp, TLEF_RTT)) \ argument
188 #define TCP_LOG_LISTEN(tp, error) if (tcp_is_log_enabled(tp, TLEF_CONNECTION)) \ argument
194 #define TCP_LOG_CONNECTION_SUMMARY(tp) if (tcp_log_summary_needed(tp)) \ argument
215 #define TCP_LOG(tp, format, ...) if (tcp_is_log_enabled(tp, TLEF_LOG)) \ argument
218 #define TCP_LOG_STATE(tp, new_state) if (tcp_is_log_enabled(tp, TLEF_STATE)) \ argument
[all …]
H A Dtcp_usrreq.c209 tp = tcp_disconnect(tp); in tcp_usr_detach()
453 tp->snd_wnd = tp->t_maxseg; in tcp_connect_complete()
878 tp = tcp_disconnect(tp); in tcp_usr_disconnect()
1013 tp = tcp_usrclosed(tp); in tcp_usr_shutdown()
1261 tp = tcp_usrclosed(tp); in tcp_usr_send()
1597 tp->iss = tcp_new_isn(tp); in tcp_connect()
2074 tci->tcpi_rcv_wnd = tp->rcv_adv > tp->rcv_nxt ? tp->rcv_adv - tp->rcv_nxt : 0; in tcp_connection_fill_info()
3159 tp = tcp_close(tp); in tcp_disconnect()
3161 tp = tcp_drop(tp, 0); in tcp_disconnect()
3165 tp = tcp_usrclosed(tp); in tcp_disconnect()
[all …]
H A Dtcp_subr.c1166 CC_ALGO(tp)->init(tp); in tcp_newtcpcb()
1175 tp->snd_cwnd = tcp_initial_cwnd(tp); in tcp_newtcpcb()
1189 tp->bytes_lost = tp->bytes_sacked = tp->bytes_retransmitted = 0; in tcp_newtcpcb()
1717 CC_ALGO(tp)->cleanup(tp); in tcp_close()
2907 tp->t_maxopd = tp->t_maxseg = in tcp_mtudisc()
2976 CC_ALGO(tp)->cwnd_init(tp); in tcp_mtudisc()
2985 tp->snd_nxt = tp->snd_una; in tcp_mtudisc()
3771 (tp->snd_nxt - tp->snd_una); in tcp_notsent_lowat_check()
3942 tp->t_dsack_lastuna = tp->snd_max; in tcp_rxtseg_clean()
4644 tp->bytes_lost = tp->bytes_sacked = tp->bytes_retransmitted = 0; in tcp_segs_sent_clean()
[all …]
H A Dtcp_cc.h183 int (*init) (struct tcpcb *tp);
189 int (*cleanup) (struct tcpcb *tp);
192 void (*cwnd_init) (struct tcpcb *tp);
204 void (*pre_fr) (struct tcpcb *tp);
225 void (*switch_to)(struct tcpcb *tp);
230 #define CC_ALGO(tp) (tcp_cc_algo_list[tp->tcp_cc_index]) argument
246 void (*init) (struct tcpcb *tp);
252 void (*cleanup) (struct tcpcb *tp);
255 void (*rwnd_init) (struct tcpcb *tp);
267 void (*switch_to) (struct tcpcb *tp);
[all …]
H A Dmptcp_opt.c130 tp = intotcpcb(inp); in mptcp_setup_join_subflow_syn_opts()
131 if (!tp) { in mptcp_setup_join_subflow_syn_opts()
135 mpts = tp->t_mpsub; in mptcp_setup_join_subflow_syn_opts()
154 mptcp_get_rands(tp->t_local_aid, tptomptp(tp), in mptcp_setup_join_subflow_syn_opts()
177 mptcp_get_mpjoin_hmac(tp->t_local_aid, tptomptp(tp), in mptcp_setup_join_ack_opts()
208 mp_tp = tptomptp(tp); in mptcp_send_mpfail()
278 infin_opt.mdss_subflow_seqn = tp->snd_una - tp->t_mpsub->mpts_iss; in mptcp_send_infinite_mapping()
430 if (!tp->t_mpuna) { in mptcp_setup_opts()
431 tp->t_mpuna = tp->snd_una; in mptcp_setup_opts()
445 tp->t_mpuna = tp->snd_una; in mptcp_setup_opts()
[all …]
H A Dtcp_cache.h46 extern void tcp_heuristic_tfo_loss(struct tcpcb *tp);
47 extern void tcp_heuristic_tfo_rst(struct tcpcb *tp);
48 extern void tcp_heuristic_mptcp_loss(struct tcpcb *tp);
49 extern void tcp_heuristic_ecn_loss(struct tcpcb *tp);
52 extern void tcp_heuristic_tfo_success(struct tcpcb *tp);
54 extern void tcp_heuristic_ecn_success(struct tcpcb *tp);
55 extern boolean_t tcp_heuristic_do_tfo(struct tcpcb *tp);
56 extern int tcp_heuristic_do_mptcp(struct tcpcb *tp);
57 extern boolean_t tcp_heuristic_do_ecn(struct tcpcb *tp);
58 extern void tcp_heuristic_ecn_droprst(struct tcpcb *tp);
[all …]
/xnu-11215/bsd/kern/
H A Dtty.c698 ttyrub(unputc(&tp->t_rawq), tp); in ttyinput()
819 catq(&tp->t_rawq, &tp->t_canq); in ttyinput()
822 tp->t_rocol = tp->t_column; in ttyinput()
1329 if (tp->t_param && (error = (*tp->t_param)(tp, t))) { in ttioctl_locked()
1374 tp->t_rawq = tp->t_canq; in ttioctl_locked()
1772 (*tp->t_oproc)(tp); in ttywait()
1974 (*tp->t_oproc)(tp); in ttstart()
2726 tp->t_column = tp->t_rocol; in ttyrub()
2759 ttyecho(tp->t_cc[VERASE], tp); in ttyrub()
2800 ttyecho(tp->t_cc[VREPRINT], tp); in ttyretype()
[all …]
H A Dtty_dev.c281 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; in ptsopen()
288 (void)(*linesw[tp->t_line].l_modem)(tp, 1); in ptsopen()
299 error = (*linesw[tp->t_line].l_open)(dev, tp); in ptsopen()
350 err = (*linesw[tp->t_line].l_close)(tp, flag); in ptsclose()
498 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen()
515 (void)(*linesw[tp->t_line].l_modem)(tp, 1); in ptcopen()
583 (void)(*linesw[tp->t_line].l_modem)(tp, 0); in ptcclose()
701 (*linesw[tp->t_line].l_start)(tp);
787 if ((tp->t_outq.c_cc <= tp->t_lowat) &&
789 retval = tp->t_hiwat - tp->t_outq.c_cc;
[all …]
H A Dtty_ptmx.c540 tty_lock(tp); in ptsd_kqops_detach()
566 ttyfree(tp); in ptsd_kqops_detach()
588 if ((tp->t_outq.c_cc <= tp->t_lowat) && in ptsd_kqops_common()
590 data = tp->t_outq.c_cn - tp->t_outq.c_cc; in ptsd_kqops_common()
637 tty_lock(tp); in ptsd_kqops_touch()
657 tty_lock(tp); in ptsd_kqops_process()
689 ttyhold(tp); in ptsd_kqfilter()
791 ttyhold(tp); in ptmx_kqfilter()
845 ttyfree(tp); in ptmx_kqops_detach()
860 if (tp->t_outq.c_cc && !(tp->t_state & TS_TTSTOP)) { in ptmx_kqops_common()
[all …]
/xnu-11215/bsd/dev/arm/
H A Dkm.c77 tty_lock(tp); in kmopen()
88 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; in kmopen()
98 ret = ((*linesw[tp->t_line].l_open)(dev, tp)); in kmopen()
145 tty_lock(tp); in kmclose()
146 ret = (*linesw[tp->t_line].l_close)(tp, flag); in kmclose()
160 ret = (*linesw[tp->t_line].l_read)(tp, uio, ioflag); in kmread()
173 ret = (*linesw[tp->t_line].l_write)(tp, uio, ioflag); in kmwrite()
285 if (tp->t_outq.c_cc > tp->t_lowat) { in kmstart()
304 (*linesw[tp->t_line].l_start)(tp); in kmstart()
376 (*linesw[tp->t_line].l_start)(tp); in kmoutput()
[all …]
/xnu-11215/bsd/dev/i386/
H A Dkm.c100 tty_lock(tp); in kmopen()
111 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; in kmopen()
121 ret = ((*linesw[tp->t_line].l_open)(dev, tp)); in kmopen()
164 tty_lock(tp); in kmclose()
165 ret = (*linesw[tp->t_line].l_close)(tp, flag); in kmclose()
166 ttyclose(tp); in kmclose()
179 ret = (*linesw[tp->t_line].l_read)(tp, uio, ioflag); in kmread()
192 ret = (*linesw[tp->t_line].l_write)(tp, uio, ioflag); in kmwrite()
307 (*linesw[tp->t_line].l_start)(tp); in kmstart()
381 (*linesw[tp->t_line].l_start)(tp); in kmoutput()
[all …]
H A Dfasttrap_isa.c386 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
495 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
504 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
510 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
516 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
524 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
530 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
614 tp->ftt_modrm = tp->ftt_instr[rmindex]; in fasttrap_tracepoint_init()
688 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_return_common()
998 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_pid_probe32()
[all …]
/xnu-11215/bsd/sys/
H A Dtty.h266 #define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq) argument
267 #define TSA_HUP_OR_INPUT(tp) ((void *)&(tp)->t_rawq.c_cf) argument
268 #define TSA_OCOMPLETE(tp) ((void *)&(tp)->t_outq.c_cl) argument
269 #define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq) argument
270 #define TSA_PTC_READ(tp) ((void *)&(tp)->t_outq.c_cf) argument
271 #define TSA_PTC_WRITE(tp) ((void *)&(tp)->t_rawq.c_cl) argument
272 #define TSA_PTS_READ(tp) ((void *)&(tp)->t_canq) argument
306 void tty_lock(struct tty *tp);
308 void tty_unlock(struct tty *tp);
344 #define TTY_LOCK_OWNED(tp) LCK_MTX_ASSERT(&tp->t_lock, LCK_MTX_ASSERT_OWNED) argument
[all …]
/xnu-11215/libkern/net/
H A Dinet_pton.c78 u_char tmp[NS_INADDRSZ], *tp; in inet_pton4() local
82 *(tp = tmp) = 0; in inet_pton4()
95 *tp = (u_char)new; in inet_pton4()
106 *++tp = 0; in inet_pton4()
145 endp = tp + NS_IN6ADDRSZ; in inet_pton6()
176 colonp = tp; in inet_pton6()
192 tp += NS_INADDRSZ; in inet_pton6()
210 const long n = tp - colonp; in inet_pton6()
213 if (tp == endp) { in inet_pton6()
220 tp = endp; in inet_pton6()
[all …]

1234