/freebsd/sys/netinet/ |
H A D | tcp_timer.c | 292 tcp_output_locked(struct tcpcb *tp) in tcp_output_locked() argument 296 INP_WLOCK_ASSERT(tptoinpcb(tp)); in tcp_output_locked() 298 if ((rv = tp->t_fb->tfb_tcp_output(tp)) < 0) { in tcp_output_locked() 299 KASSERT(tp->t_fb->tfb_flags & TCP_FUNC_OUTPUT_CANDROP, in tcp_output_locked() 301 tp->t_fb->tfb_tcp_block_name, tp)); in tcp_output_locked() 302 tp = tcp_drop(tp, -rv); in tcp_output_locked() 305 return (tp != NULL); in tcp_output_locked() 309 tcp_timer_delack(struct tcpcb *tp) in tcp_timer_delack() argument 313 struct inpcb *inp = tptoinpcb(tp); in tcp_timer_delack() 320 tp->t_flags |= TF_ACKNOW; in tcp_timer_delack() [all …]
|
H A D | tcp_input.c | 257 tcp_is_sack_recovery(struct tcpcb *tp, struct tcpopt *to) in tcp_is_sack_recovery() argument 259 return ((tp->t_flags & TF_SACK_PERMIT) && in tcp_is_sack_recovery() 261 (!TAILQ_EMPTY(&tp->snd_holes)))); in tcp_is_sack_recovery() 269 hhook_run_tcp_est_in(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in hhook_run_tcp_est_in() argument 274 hhook_data.tp = tp; in hhook_run_tcp_est_in() 279 &tp->t_osd); in hhook_run_tcp_est_in() 288 cc_ack_received(struct tcpcb *tp, struct tcphdr *th, uint16_t nsegs, in cc_ack_received() argument 295 INP_WLOCK_ASSERT(tptoinpcb(tp)); in cc_ack_received() 297 tp->t_ccv.nsegs = nsegs; in cc_ack_received() 298 tp->t_ccv.bytes_this_ack = BYTES_THIS_ACK(tp, th); in cc_ack_received() [all …]
|
H A D | tcp_output.c | 144 #define TCP_XMIT_TIMER_ASSERT(tp, len, th_flags) \ argument 146 tcp_timer_active((tp), TT_REXMT) || \ 147 tcp_timer_active((tp), TT_PERSIST), \ 155 hhook_run_tcp_est_out(struct tcpcb *tp, struct tcphdr *th, in hhook_run_tcp_est_out() argument 161 hhook_data.tp = tp; in hhook_run_tcp_est_out() 168 &tp->t_osd); in hhook_run_tcp_est_out() 177 cc_after_idle(struct tcpcb *tp) in cc_after_idle() argument 179 INP_WLOCK_ASSERT(tptoinpcb(tp)); in cc_after_idle() 181 if (CC_ALGO(tp)->after_idle != NULL) in cc_after_idle() 182 CC_ALGO(tp)->after_idle(&tp->t_ccv); in cc_after_idle() [all …]
|
H A D | tcp_sack.c | 161 tcp_dsack_block_exists(struct tcpcb *tp) in tcp_dsack_block_exists() argument 164 if (tp->rcv_numsacks == 0) in tcp_dsack_block_exists() 166 if (SEQ_LEQ(tp->sackblks[0].end, tp->rcv_nxt)) in tcp_dsack_block_exists() 176 tcp_update_dsack_list(struct tcpcb *tp, tcp_seq rcv_start, tcp_seq rcv_end) in tcp_update_dsack_list() argument 182 INP_WLOCK_ASSERT(tptoinpcb(tp)); in tcp_update_dsack_list() 186 if (SEQ_LT(rcv_end, tp->rcv_nxt) || in tcp_update_dsack_list() 187 ((rcv_end == tp->rcv_nxt) && in tcp_update_dsack_list() 188 (tp->rcv_numsacks > 0 ) && in tcp_update_dsack_list() 189 (tp->sackblks[0].end == tp->rcv_nxt))) { in tcp_update_dsack_list() 201 for (i = 0; i < tp->rcv_numsacks; i++) { in tcp_update_dsack_list() [all …]
|
H A D | tcp_ecn.c | 120 tcp_ecn_input_syn_sent(struct tcpcb *tp, uint16_t thflags, int iptos) in tcp_ecn_input_syn_sent() argument 130 tp->t_flags2 |= TF2_ECN_PERMIT; in tcp_ecn_input_syn_sent() 131 tp->t_flags2 &= ~TF2_ACE_PERMIT; in tcp_ecn_input_syn_sent() 151 tp->t_flags2 |= TF2_ECN_PERMIT; in tcp_ecn_input_syn_sent() 152 tp->t_flags2 &= ~TF2_ACE_PERMIT; in tcp_ecn_input_syn_sent() 157 tp->t_flags2 |= TF2_ACE_PERMIT; in tcp_ecn_input_syn_sent() 158 tp->t_flags2 &= ~TF2_ECN_PERMIT; in tcp_ecn_input_syn_sent() 159 tp->t_scep = 5; in tcp_ecn_input_syn_sent() 165 tp->t_flags2 |= TF2_ACE_PERMIT; in tcp_ecn_input_syn_sent() 166 tp->t_flags2 &= ~TF2_ECN_PERMIT; in tcp_ecn_input_syn_sent() [all …]
|
H A D | tcp_usrreq.c | 128 static int tcp_pru_options_support(struct tcpcb *tp, int flags); 131 tcp_bblog_pru(struct tcpcb *tp, uint32_t pru, int error) in tcp_bblog_pru() argument 135 KASSERT(tp != NULL, ("tcp_bblog_pru: tp == NULL")); in tcp_bblog_pru() 136 INP_WLOCK_ASSERT(tptoinpcb(tp)); in tcp_bblog_pru() 137 if (tcp_bblogging_on(tp)) { in tcp_bblog_pru() 138 lgb = tcp_log_event(tp, NULL, NULL, NULL, TCP_LOG_PRU, error, in tcp_bblog_pru() 159 struct tcpcb *tp = NULL; in tcp_usr_attach() local 175 tp = tcp_newtcpcb(inp, NULL); in tcp_usr_attach() 176 if (tp == NULL) { in tcp_usr_attach() 181 tp->t_state = TCPS_CLOSED; in tcp_usr_attach() [all …]
|
H A D | tcp_offload.c | 113 tcp_offload_listen_start(struct tcpcb *tp) in tcp_offload_listen_start() argument 116 INP_WLOCK_ASSERT(tptoinpcb(tp)); in tcp_offload_listen_start() 118 EVENTHANDLER_INVOKE(tcp_offload_listen_start, tp); in tcp_offload_listen_start() 122 tcp_offload_listen_stop(struct tcpcb *tp) in tcp_offload_listen_stop() argument 125 INP_WLOCK_ASSERT(tptoinpcb(tp)); in tcp_offload_listen_stop() 127 EVENTHANDLER_INVOKE(tcp_offload_listen_stop, tp); in tcp_offload_listen_stop() 131 tcp_offload_input(struct tcpcb *tp, struct mbuf *m) in tcp_offload_input() argument 133 struct toedev *tod = tp->tod; in tcp_offload_input() 135 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_input() 136 INP_WLOCK_ASSERT(tptoinpcb(tp)); in tcp_offload_input() [all …]
|
H A D | tcp_subr.c | 337 static int tcp_default_fb_init(struct tcpcb *tp, void **ptr); 338 static void tcp_default_fb_fini(struct tcpcb *tp, int tcb_is_purged); 339 static int tcp_default_handoff_ok(struct tcpcb *tp); 346 static void tcp_default_switch_failed(struct tcpcb *tp); 368 tcp_record_dsack(struct tcpcb *tp, tcp_seq start, tcp_seq end, int tlp) in tcp_record_dsack() argument 371 tp->t_dsack_pack++; in tcp_record_dsack() 374 tp->t_dsack_bytes += (end - start); in tcp_record_dsack() 377 tp->t_dsack_tlp_bytes += (start - end); in tcp_record_dsack() 382 tp->t_dsack_bytes += (end - start); in tcp_record_dsack() 385 tp->t_dsack_tlp_bytes += (start - end); in tcp_record_dsack() [all …]
|
/freebsd/sys/kern/ |
H A D | tty.c | 75 static void tty_rel_free(struct tty *tp); 99 #define TTY_CALLOUT(tp,d) (dev2unit(d) & TTYUNIT_CALLOUT) argument 124 tty_watermarks(struct tty *tp) in tty_watermarks() argument 130 if (tp->t_termios.c_cflag & CREAD) in tty_watermarks() 131 bs = MIN(tp->t_termios.c_ispeed / 5, TTYBUF_MAX); in tty_watermarks() 132 error = ttyinq_setsize(&tp->t_inq, tp, bs); in tty_watermarks() 137 tp->t_inlow = (ttyinq_getallocatedsize(&tp->t_inq) * 9) / 10; in tty_watermarks() 140 bs = MIN(tp->t_termios.c_ospeed / 5, TTYBUF_MAX); in tty_watermarks() 141 error = ttyoutq_setsize(&tp->t_outq, tp, bs); in tty_watermarks() 146 tp->t_outlow = (ttyoutq_getallocatedsize(&tp->t_outq) * 9) / 10; in tty_watermarks() [all …]
|
H A D | tty_ttydisc.c | 61 #define CMP_CC(v,c) (tp->t_termios.c_cc[v] != _POSIX_VDISABLE && \ 62 tp->t_termios.c_cc[v] == (c)) 63 #define CMP_FLAG(field,opt) (tp->t_termios.c_ ## field ## flag & (opt)) 92 ttydisc_open(struct tty *tp) in ttydisc_open() argument 94 ttydisc_optimize(tp); in ttydisc_open() 98 ttydisc_close(struct tty *tp) in ttydisc_close() argument 102 tp->t_flags &= ~(TF_STOPPED|TF_HIWAT|TF_ZOMBIE); in ttydisc_close() 103 tp->t_termios.c_lflag &= ~FLUSHO; in ttydisc_close() 109 tty_flush(tp, FREAD | FWRITE); in ttydisc_close() 111 if (ttyhook_hashook(tp, close)) in ttydisc_close() [all …]
|
H A D | tty_pts.c | 114 struct tty *tp = fp->f_data; in ptsdev_read() local 115 struct pts_softc *psc = tty_softc(tp); in ptsdev_read() 122 tty_lock(tp); in ptsdev_read() 133 tty_unlock(tp); in ptsdev_read() 147 if (ttydisc_getc_poll(tp)) { in ptsdev_read() 154 tty_unlock(tp); in ptsdev_read() 158 tty_lock(tp); in ptsdev_read() 161 error = ttydisc_getc_uio(tp, uio); in ptsdev_read() 174 error = cv_wait_sig(&psc->pts_outwait, tp->t_mtx); in ptsdev_read() 179 tty_unlock(tp); in ptsdev_read() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_txt.c | 224 #define UPDATE_POSITION(sp, tp) do { \ argument 225 (sp)->lno = (tp)->lno; \ 226 (sp)->cno = (tp)->cno; \ 251 TEXT *ntp, *tp; /* Input text structures. */ in v_txt() local 293 tp = TAILQ_FIRST(tiqh); in v_txt() 294 if (TAILQ_NEXT(tp, q) != NULL || in v_txt() 295 tp->lb_len < (len + 32) * sizeof(CHAR_T)) { in v_txt() 299 tp->ai = tp->insert = tp->offset = tp->owrite = 0; in v_txt() 301 tp->len = len; in v_txt() 302 BINC_RETW(sp, tp->lb, tp->lb_len, len); in v_txt() [all …]
|
/freebsd/sys/sys/ |
H A D | ttydevsw.h | 43 typedef int tsw_open_t(struct tty *tp); 44 typedef void tsw_close_t(struct tty *tp); 45 typedef void tsw_outwakeup_t(struct tty *tp); 46 typedef void tsw_inwakeup_t(struct tty *tp); 47 typedef int tsw_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, 49 typedef int tsw_cioctl_t(struct tty *tp, int unit, u_long cmd, caddr_t data, 51 typedef int tsw_param_t(struct tty *tp, struct termios *t); 52 typedef int tsw_modem_t(struct tty *tp, int sigon, int sigoff); 53 typedef int tsw_mmap_t(struct tty *tp, vm_ooffset_t offset, 55 typedef void tsw_pktnotify_t(struct tty *tp, char event); [all …]
|
H A D | ttyhook.h | 43 typedef int th_rint_t(struct tty *tp, char c, int flags); 44 typedef size_t th_rint_bypass_t(struct tty *tp, const void *buf, size_t len); 45 typedef void th_rint_done_t(struct tty *tp); 46 typedef size_t th_rint_poll_t(struct tty *tp); 48 typedef size_t th_getc_inject_t(struct tty *tp, void *buf, size_t len); 49 typedef void th_getc_capture_t(struct tty *tp, const void *buf, size_t len); 50 typedef size_t th_getc_poll_t(struct tty *tp); 52 typedef void th_close_t(struct tty *tp); 72 #define ttyhook_softc(tp) ((tp)->t_hooksoftc) argument 73 #define ttyhook_hashook(tp,hook) ((tp)->t_hook != NULL && \ argument [all …]
|
H A D | tty.h | 167 void tty_rel_pgrp(struct tty *tp, struct pgrp *pgrp); 168 void tty_rel_sess(struct tty *tp, struct session *sess); 169 void tty_rel_gone(struct tty *tp); 171 #define tty_lock(tp) mtx_lock((tp)->t_mtx) argument 172 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx) argument 173 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx) argument 174 #define tty_assert_locked(tp) mtx_assert((tp)->t_mtx, MA_OWNED) argument 175 #define tty_getlock(tp) ((tp)->t_mtx) argument 178 #define tty_lock_assert(tp, ma) mtx_assert((tp)->t_mtx, (ma)) argument 181 int tty_makedevf(struct tty *tp, struct ucred *cred, int flags, [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_txt.c | 57 TEXT ait, *ntp, *tp; in ex_txt() local 71 tp = TAILQ_FIRST(tiqh); in ex_txt() 72 if (TAILQ_NEXT(tp, q) != NULL || tp->lb_len < 32) { in ex_txt() 76 tp->len = 0; in ex_txt() 78 newtp: if ((tp = text_init(sp, NULL, 0, 32)) == NULL) in ex_txt() 80 TAILQ_INSERT_HEAD(tiqh, tp, q); in ex_txt() 84 tp->lno = sp->lno + 1; in ex_txt() 104 if (v_txt_auto(sp, sp->lno, NULL, 0, tp)) in ex_txt() 107 txt_prompt(sp, tp, prompt, flags); in ex_txt() 144 BINC_GOTOW(sp, tp->lb, tp->lb_len, tp->len + 1); in ex_txt() [all …]
|
/freebsd/sys/net/ |
H A D | if_tuntap.c | 155 #define TUN_LOCK(tp) mtx_lock(&(tp)->tun_mtx) argument 156 #define TUN_UNLOCK(tp) mtx_unlock(&(tp)->tun_mtx) argument 157 #define TUN_LOCK_ASSERT(tp) mtx_assert(&(tp)->tun_mtx, MA_OWNED); argument 217 static int tun_busy_locked(struct tuntap_softc *tp); 218 static void tun_unbusy_locked(struct tuntap_softc *tp); 219 static int tun_busy(struct tuntap_softc *tp); 220 static void tun_unbusy(struct tuntap_softc *tp); 343 tun_busy_locked(struct tuntap_softc * tp) tun_busy_locked() argument 362 tun_unbusy_locked(struct tuntap_softc * tp) tun_unbusy_locked() argument 375 tun_busy(struct tuntap_softc * tp) tun_busy() argument 386 tun_unbusy(struct tuntap_softc * tp) tun_unbusy() argument 537 struct tuntap_softc *tp = dev->si_drv1; tun_clone_create() local 608 tun_destroy(struct tuntap_softc * tp) tun_destroy() argument 645 struct tuntap_softc *tp = ifp->if_softc; tun_clone_destroy() local 686 struct tuntap_softc *tp; tun_uninit() local 780 struct tuntap_softc *tp; tun_create_device() local 818 struct tuntap_softc *tp = ifp->if_softc; tunstart() local 854 struct tuntap_softc *tp = ifp->if_softc; tunstart_l2() local 922 struct tuntap_softc *tp; tuncreate() local 984 struct tuntap_softc *tp; tunrename() local 1036 struct tuntap_softc *tp; tunopen() local 1105 struct tuntap_softc *tp; tundtor() local 1186 struct tuntap_softc *tp = ifp->if_softc; tuninit() local 1221 struct tuntap_softc *tp; tunifinit() local 1256 struct tuntap_softc *tp = ifp->if_softc; tun_vnethdr_set() local 1293 struct tuntap_softc *tp; tunifioctl() local 1379 struct tuntap_softc *tp = ifp->if_softc; tunoutput() local 1468 struct tuntap_softc *tp = dev->si_drv1; tunioctl() local 1681 struct tuntap_softc *tp = dev->si_drv1; tunread() local 1747 tunwrite_l2(struct tuntap_softc * tp,struct mbuf * m,struct virtio_net_hdr_mrg_rxbuf * vhdr) tunwrite_l2() argument 1823 tunwrite_l3(struct tuntap_softc * tp,struct mbuf * m) tunwrite_l3() argument 1880 struct tuntap_softc *tp; tunwrite() local 1946 struct tuntap_softc *tp = dev->si_drv1; tunpoll() local 1974 struct tuntap_softc *tp = dev->si_drv1; tunkqfilter() local 2009 struct tuntap_softc *tp = kn->kn_hook; tunkqread() local 2034 struct tuntap_softc *tp = kn->kn_hook; tunkqwrite() local 2045 struct tuntap_softc *tp = kn->kn_hook; tunkqdetach() local [all...] |
/freebsd/contrib/tcpdump/ |
H A D | print-dhcp6.c | 285 const u_char *tp; in dhcp6opt_print() local 323 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print() 324 switch (GET_BE_U_2(tp)) { in dhcp6opt_print() 328 GET_BE_U_2(tp + 2), in dhcp6opt_print() 329 GET_BE_U_4(tp + 4)); in dhcp6opt_print() 332 GET_U_1(tp + i)); in dhcp6opt_print() 342 ND_PRINT(" enterprise %u ", GET_BE_U_4(tp + 2)); in dhcp6opt_print() 345 GET_U_1(tp + i)); in dhcp6opt_print() 356 GET_BE_U_2(tp + 2)); in dhcp6opt_print() 359 GET_U_1(tp + i)); in dhcp6opt_print() [all …]
|
H A D | addrtoname.c | 435 struct enamemem *tp; in lookup_emem() local 441 tp = &enametable[(i ^ j) & (HASHNAMESIZE-1)]; in lookup_emem() 442 while (tp->e_nxt) in lookup_emem() 443 if (tp->e_addr0 == i && in lookup_emem() 444 tp->e_addr1 == j && in lookup_emem() 445 tp->e_addr2 == k) in lookup_emem() 446 return tp; in lookup_emem() 448 tp = tp->e_nxt; in lookup_emem() 449 tp->e_addr0 = (u_short)i; in lookup_emem() 450 tp->e_addr1 = (u_short)j; in lookup_emem() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | tbl_term.c | 162 term_tbl(struct termp *tp, const struct tbl_span *sp) in term_tbl() argument 174 tp->flags |= TERMP_NOSPACE | TERMP_NONOSPACE; in term_tbl() 175 save_offset = tp->tcol->offset; in term_tbl() 182 if (tp->tbl.cols == NULL) { in term_tbl() 183 borders_locale = tp->enc == TERMENC_UTF8 ? in term_tbl() 186 tp->tbl.len = term_tbl_len; in term_tbl() 187 tp->tbl.slen = term_tbl_strlen; in term_tbl() 188 tp->tbl.sulen = term_tbl_sulen; in term_tbl() 189 tp->tbl.arg = tp; in term_tbl() 191 tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin); in term_tbl() [all …]
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | rack_bbr_common.c | 325 ctf_process_inbound_raw(struct tcpcb *tp, struct mbuf *m, int has_pkt) in ctf_process_inbound_raw() argument 366 inp = tptoinpcb(tp); in ctf_process_inbound_raw() 396 ("tp:%p m:%p etype:0x%x -- not IP or IPv6", tp, m, etype)); in ctf_process_inbound_raw() 442 KASSERT((tp->t_flags2 & TF2_MBUF_ACKCMP), in ctf_process_inbound_raw() 443 ("tp:%p no TF2_MBUF_ACKCMP flags?", tp)); in ctf_process_inbound_raw() 458 retval = (*tp->t_fb->tfb_do_segment_nounlock)(tp, m, th, in ctf_process_inbound_raw() 485 ctf_do_queued_segments(struct tcpcb *tp, int have_pkt) in ctf_do_queued_segments() argument 490 if ((m = STAILQ_FIRST(&tp->t_inqueue)) != NULL) { in ctf_do_queued_segments() 491 STAILQ_INIT(&tp->t_inqueue); in ctf_do_queued_segments() 492 if (ctf_process_inbound_raw(tp, m, have_pkt)) { in ctf_do_queued_segments() [all …]
|
/freebsd/contrib/lib9p/ |
H A D | threadpool.c | 38 static void l9p_threadpool_rflush(struct l9p_threadpool *tp, 44 struct l9p_threadpool *tp; in l9p_responder() local 48 tp = worker->ltw_tp; in l9p_responder() 51 pthread_mutex_lock(&tp->ltp_mtx); in l9p_responder() 52 while (STAILQ_EMPTY(&tp->ltp_replyq) && !worker->ltw_exiting) in l9p_responder() 53 pthread_cond_wait(&tp->ltp_reply_cv, &tp->ltp_mtx); in l9p_responder() 55 pthread_mutex_unlock(&tp->ltp_mtx); in l9p_responder() 60 req = STAILQ_FIRST(&tp->ltp_replyq); in l9p_responder() 61 STAILQ_REMOVE_HEAD(&tp->ltp_replyq, lr_worklink); in l9p_responder() 68 l9p_threadpool_rflush(tp, req); in l9p_responder() [all …]
|
/freebsd/contrib/ncurses/ncurses/trace/ |
H A D | trace_xnames.c | 42 _nc_trace_xnames(TERMTYPE *tp GCC_UNUSED) in NCURSES_EXPORT() 46 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; in NCURSES_EXPORT() 50 int begin_num = tp->ext_Booleans; in NCURSES_EXPORT() 51 int begin_str = tp->ext_Booleans + tp->ext_Numbers; in NCURSES_EXPORT() 54 tp->term_names, in NCURSES_EXPORT() 56 tp->ext_Booleans, tp->ext_Numbers, tp->ext_Strings, in NCURSES_EXPORT() 57 tp->num_Booleans, tp->num_Numbers, tp->num_Strings); in NCURSES_EXPORT() 64 tp->ext_Names[n], in NCURSES_EXPORT() 65 _nc_visbuf(tp->Strings[tp->num_Strings + m - tp->ext_Strings])); in NCURSES_EXPORT() 68 tp->ext_Names[n], in NCURSES_EXPORT() [all …]
|
/freebsd/contrib/ncurses/include/ |
H A D | term_entry.h | 57 #define NUM_BOOLEANS(tp) (tp)->num_Booleans argument 58 #define NUM_NUMBERS(tp) (tp)->num_Numbers argument 59 #define NUM_STRINGS(tp) (tp)->num_Strings argument 60 #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i] argument 62 #define NUM_BOOLEANS(tp) BOOLCOUNT 63 #define NUM_NUMBERS(tp) NUMCOUNT 64 #define NUM_STRINGS(tp) STRCOUNT 65 #define EXT_NAMES(tp,i,limit,index,table) table[i] 68 #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings) argument 70 #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++) argument [all …]
|
/freebsd/contrib/unbound/validator/ |
H A D | autotrust.c | 335 struct trust_anchor* tp = (struct trust_anchor*)calloc(1, sizeof(*tp)); in autr_tp_create() local 336 if(!tp) return NULL; in autr_tp_create() 337 tp->name = memdup(own, own_len); in autr_tp_create() 338 if(!tp->name) { in autr_tp_create() 339 free(tp); in autr_tp_create() 342 tp->namelen = own_len; in autr_tp_create() 343 tp->namelabs = dname_count_labels(tp->name); in autr_tp_create() 344 tp->node.key = tp; in autr_tp_create() 345 tp->dclass = dc; in autr_tp_create() 346 tp->autr = (struct autr_point_data*)calloc(1, sizeof(*tp->autr)); in autr_tp_create() [all …]
|