Searched defs:tcp (Results 1 - 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintpacket.c19 struct tcphdr *tcp; local
52 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
59 printf(",%d", ntohs(tcp->th_sport));
64 printf(",%d", ntohs(tcp->th_dport));
65 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) {
67 if (tcp->th_flags & TH_FIN)
69 if (tcp->th_flags & TH_SYN)
71 if (tcp->th_flags & TH_RST)
73 if (tcp->th_flags & TH_PUSH)
75 if (tcp
[all...]
H A Dprintpacket6.c12 tcphdr_t *tcp; local
16 tcp = (tcphdr_t *)(buf + 40);
30 (void)printf(",%d", ntohs(tcp->th_sport));
39 (void)printf(",%d", ntohs(tcp->th_dport));
H A Dipft_tx.c86 tx_proto = "tcp/udp";
87 if (strcasecmp(tx_proto, "tcp/udp")) {
94 sp = getservbyname(name, "tcp");
99 (void) fprintf(stderr, "unknown tcp/udp service \"%s\".\n",
104 (void) fprintf(stderr, "%s %d/tcp is a different port to ",
186 tcphdr_t th, *tcp = &th; local
193 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip));
194 bzero((char *)tcp, sizeof(*tcp));
227 if (!strcasecmp(*cpp, "tcp") || !strcasecm
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/
H A Dlm_l4if.h43 lm_tcp_state_t *tcp,
58 lm_tcp_state_t *tcp,
67 lm_tcp_state_t *tcp,
71 * Init sp_data phys and virt memory for a given tcp state to
76 lm_tcp_state_t *tcp
88 lm_tcp_state_t *tcp);
92 * - tcp_state: A specific tcp state that the size is requested for. If NULL, then
115 * delete tcp state from lm _except_ from actual freeing of memory.
122 lm_tcp_state_t *tcp);
144 lm_tcp_state_t *tcp);
357 lm_tcp_ok_to_update(lm_tcp_state_t * tcp) argument
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/
H A Dlm_l4fp.c17 lm_tcp_state_t *tcp,
40 tcp->cid, s_list_entry_cnt(&completed_bufs), con->dpc_info.dpc_actual_bytes_completed, s_list_entry_cnt(&con->active_tb_list));
54 mm_tcp_complete_bufs(pdev, tcp, con, &completed_bufs, LM_STATUS_SUCCESS);
71 lm_tcp_state_t *tcp,
81 UNREFERENCED_PARAMETER_(tcp);
143 * large split buffers, in this case we'll hit the tcp buffer with the "reserved" flag, we then
191 lm_tcp_state_t * tcp,
203 "#lm_tcp_abort_bufs: tcp=%p, con type=%d, stat=%d\n",
204 tcp, con->type, stat);
250 mm_tcp_complete_bufs(pdev, tcp, co
15 lm_tcp_complete_bufs( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, lm_tcp_con_t *con) argument
69 lm_tcp_complete_nbytes( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, lm_tcp_con_t *con, u32_t completed_bytes, u8_t push ) argument
189 lm_tcp_abort_bufs( struct _lm_device_t * pdev, lm_tcp_state_t * tcp, lm_tcp_con_t * con, lm_status_t stat ) argument
[all...]
H A Dlm_l4tx.c54 lm_tcp_state_t *tcp,
57 lm_tcp_con_t *tx_con = tcp->tx_con;
66 _lm_tcp_tx_write_db(pdev, tx_con, tcp->cid, tx_con->db_more_bytes, tx_con->db_more_bds, 0);
76 "skipped doorbell ringing for cid=%d\n", tcp->cid);
81 * Post a single tcp buffer to the Tx bd chain
85 * - SUCCESS - tcp buf was successfully attached to the bd chain
86 * - RESOURCE - not enough available BDs on bd chain for given tcp buf
90 lm_tcp_state_t *tcp,
103 DbgBreakIf(!(pdev && tcp && tcp_buf && frag_list));
104 DbgBreakIf(tcp
52 lm_tcp_tx_write_db( lm_device_t *pdev, lm_tcp_state_t *tcp, u8_t post_end) argument
88 lm_tcp_tx_post_buf( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, lm_tcp_buffer_t *tcp_buf, lm_frag_list_t *frag_list) argument
227 lm_tcp_tx_graceful_disconnect_complete(lm_device_t * pdev, lm_tcp_state_t * tcp) argument
242 lm_tcp_tx_cmp_process( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, u32_t completed_bytes ) argument
305 lm_tcp_tx_inc_trm_aborted_bytes( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, u32_t aborted_bytes ) argument
334 lm_tcp_tx_complete_tcp_fp(lm_device_t * pdev, lm_tcp_state_t * tcp, lm_tcp_con_t * con) argument
456 lm_tcp_state_t *tcp; local
553 lm_tcp_state_t * tcp; local
[all...]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_cluster.c29 #include <inet/tcp.h>
59 * Exported routine for extracting active tcp connection status.
102 tcp_t *tcp; local
118 tcp = connp->conn_tcp;
121 cl_tcpi.cl_tcpi_state = tcp->tcp_state;
132 CONN_DEC_REF(tcp->tcp_connp);
H A Dtcp_opt_data.c40 #include <netinet/tcp.h>
364 tcp_t *tcp = connp->conn_tcp; local
378 *i1 = tcp->tcp_snd_zcopy_on ?
382 *i1 = (tcp->tcp_state == TCPS_LISTEN);
389 *i1 = (tcp->tcp_naglim == 1) ? TCP_NODELAY : 0;
392 *i1 = tcp->tcp_mss;
395 *i1 = (int)tcp->tcp_first_timer_threshold;
398 *i1 = tcp->tcp_second_timer_threshold;
401 *i1 = tcp->tcp_first_ctimer_threshold;
404 *i1 = tcp
496 tcp_t *tcp = connp->conn_tcp; local
[all...]
H A Dtcp_bind.c46 #include <inet/tcp.h>
68 tcp_bind_hash_insert(tf_t *tbf, tcp_t *tcp, int caller_holds_lock) argument
73 conn_t *connp = tcp->tcp_connp;
76 if (tcp->tcp_ptpbhn != NULL) {
78 tcp_bind_hash_remove(tcp);
102 * If the new tcp bound to the INADDR_ANY address
124 tcpnext->tcp_ptpbhn = &tcp->tcp_bind_hash_port;
128 &(tcp->tcp_bind_hash);
133 tcpnext->tcp_ptpbhn = &tcp->tcp_bind_hash_port;
137 &(tcp
155 tcp_bind_hash_remove(tcp_t *tcp) argument
213 tcp_update_next_port(in_port_t port, const tcp_t *tcp, boolean_t random) argument
286 tcp_get_next_priv_port(const tcp_t *tcp) argument
310 tcp_bind_select_lport(tcp_t *tcp, in_port_t *requested_port_ptr, boolean_t bind_to_req_port_only, cred_t *cr) argument
522 tcp_t *tcp = connp->conn_tcp; local
655 tcp_bindi(tcp_t *tcp, in_port_t port, const in6_addr_t *laddr, int reuseaddr, boolean_t quick_connect, boolean_t bind_to_req_port_only, boolean_t user_specified) argument
[all...]
H A Dtcp_fusion.c39 #include <inet/tcp.h>
71 * This routine gets called by the eager tcp upon changing state from
73 * and the active connect tcp such that the regular tcp processings
78 * This is different from the eager tcp case where we assign it the
79 * same squeue as the one given to the active connect tcp during open.
82 tcp_fuse(tcp_t *tcp, uchar_t *iphdr, tcpha_t *tcpha) argument
84 conn_t *peer_connp, *connp = tcp->tcp_connp;
86 tcp_stack_t *tcps = tcp->tcp_tcps;
90 ASSERT(!tcp
273 tcp_unfuse(tcp_t *tcp) argument
347 tcp_fuse_output_urg(tcp_t *tcp, mblk_t *mp) argument
438 tcp_fuse_output(tcp_t *tcp, mblk_t *mp, uint32_t send_size) argument
699 tcp_fuse_rcv_drain(queue_t *q, tcp_t *tcp, mblk_t **sigurg_mpp) argument
801 tcp_fuse_set_rcv_hiwat(tcp_t *tcp, size_t rwnd) argument
836 tcp_fuse_maxpsz(tcp_t *tcp) argument
865 tcp_fuse_backenable(tcp_t *tcp) argument
[all...]
H A Dtcp_timers.c41 #include <inet/tcp.h>
50 * There are two basic functions dealing with tcp timers:
54 * TCP_TIMER_RESTART(tcp, intvl)
56 * tcp_timeout() starts a timer for the 'tcp' instance arranging to call 'func'
66 * argument. It is always executed in the squeue corresponding to the tcp
67 * structure. The tcp structure is guaranteed to be present at the time the
70 * NOTE: The call-back function 'func' is never called if tcp is in
81 * within squeue context corresponding to the tcp instance. Since the
89 * and stores the return value of tcp_timeout() in the tcp->tcp_timer_tid
97 * tcp_timer_handler() function via squeue corresponding to the tcp
140 tcp_t *tcp = connp->conn_tcp; local
194 tcp_t *tcp = connp->conn_tcp; local
331 tcp_timermp_free(tcp_t *tcp) argument
348 tcp_timer_free(tcp_t *tcp, mblk_t *mp) argument
376 tcp_timers_stop(tcp_t *tcp) argument
422 tcp_t *tcp = connp->conn_tcp; local
519 tcp_t *tcp = connp->conn_tcp; local
539 tcp_t *tcp = connp->conn_tcp; local
561 tcp_t *tcp = connp->conn_tcp; local
609 tcp_ip_notify(tcp_t *tcp) argument
650 tcp_t *tcp = connp->conn_tcp; local
1106 tcp_t *tcp = connp->conn_tcp; local
[all...]
H A Dtcp_time_wait.c40 #include <inet/tcp.h>
59 tcp_time_wait_remove(tcp_t *tcp, tcp_squeue_priv_t *tsp) argument
65 squeue_getprivate(tcp->tcp_connp->conn_sqp, SQPRIVATE_TCP));
73 if (tcp->tcp_time_wait_expire == 0) {
74 ASSERT(tcp->tcp_time_wait_next == NULL);
75 ASSERT(tcp->tcp_time_wait_prev == NULL);
80 ASSERT(TCP_IS_DETACHED(tcp));
81 ASSERT(tcp->tcp_state == TCPS_TIME_WAIT);
84 if (tcp->tcp_time_wait_next != NULL) {
85 tcp
129 tcp_time_wait_append(tcp_t *tcp) argument
271 tcp_t *tcp = connp->conn_tcp; local
296 tcp_time_wait_purge(tcp_t *tcp, tcp_squeue_priv_t *tsp) argument
402 tcp_t *tcp; local
597 tcp_time_wait_processing(tcp_t *tcp, mblk_t *mp, uint32_t seg_seq, uint32_t seg_ack, int seg_len, tcpha_t *tcpha, ip_recv_attr_t *ira) argument
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dsvc_generic.c39 #include <netinet/tcp.h>
327 bool_t tcp, exclbind; local
346 * (see {tcp,udp}.c for details)
351 tcp = nconf ? (strcmp(nconf->nc_proto, NC_TCP) == 0) : 0;
353 (tcp || (strcmp(nconf->nc_proto, NC_UDP) == 0)) &&
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tcp.c43 #include <netinet/tcp.h>
78 interpret_tcp(int flags, struct tcphdr *tcp, int iplen, int fraglen) argument
88 hdrlen = tcp->th_off * 4;
89 data = (char *)tcp + hdrlen;
101 ntohs(tcp->th_dport), ntohs(tcp->th_sport));
105 if (tcp->th_flags & tcp_flags[i].tf_flag) {
112 if (tcp->th_flags & TH_URG) {
114 ntohs(tcp->th_urp));
117 if (tcp
[all...]
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_h323_pxy.c189 tcphdr_t *tcp; local
194 tcp = (tcphdr_t *)fin->fin_dp;
197 data = (caddr_t)tcp + (TCP_OFF(tcp) << 2);
198 datlen = fin->fin_dlen - (TCP_OFF(tcp) << 2);
203 /* setup a nat rule to set a h245 proxy on tcp-port "port"
205 * map <if> <inter_ip>/<mask> -> <gate_ip>/<mask> proxy port <port> <port>/tcp
272 tcphdr_t *tcp; local
281 tcp = (tcphdr_t *)fin->fin_dp;
283 data = (caddr_t)tcp
[all...]
H A Dip_raudio_pxy.c105 tcphdr_t *tcp; local
120 tcp = (tcphdr_t *)fin->fin_dp;
121 off = (char *)tcp - (char *)fin->fin_ip;
122 off += (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
210 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local
233 tcp = (tcphdr_t *)fin->fin_dp;
234 off = (char *)tcp - (char *)fin->fin_ip;
235 off += (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
251 seq = ntohl(tcp->th_seq);
311 ip->ip_len = fin->fin_hlen + sizeof(*tcp);
[all...]
H A Dip_rcmd_pxy.c83 tcphdr_t *tcp = (tcphdr_t *)fin->fin_dp; local
97 aps->aps_sport = tcp->th_sport;
98 aps->aps_dport = tcp->th_dport;
126 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local
136 tcp = (tcphdr_t *)fin->fin_dp;
138 if (tcp->th_flags & TH_SYN) {
139 *(u_32_t *)aps->aps_data = htonl(ntohl(tcp->th_seq) + 1);
144 (tcp->th_seq != *(u_32_t *)aps->aps_data))
149 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) <<
[all...]
H A Dip_irc_pxy.c277 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local
294 tcp = (tcphdr_t *)fin->fin_dp;
296 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
H A Dip_pptp_pxy.c265 tcphdr_t *tcp; local
270 tcp = fin->fin_dp;
271 dlen = fin->fin_dlen - (TCP_OFF(tcp) << 2);
272 start = ntohl(tcp->th_seq);
274 off = (char *)tcp - (char *)fin->fin_ip + (TCP_OFF(tcp) << 2) +
297 msg = (char *)fin->fin_dp + (TCP_OFF(tcp) << 2);
500 tcphdr_t *tcp; local
510 tcp = (tcphdr_t *)fin->fin_dp;
511 if ((tcp
[all...]
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_gen.c222 bool_t tcp)
293 if (tcp)
218 bindresvport( TIUSER *tiptr, struct netbuf *addr, struct netbuf *bound_addr, bool_t tcp) argument
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_misc.c106 char *cp, *ncp, *tcp; local
124 tcp = reverse(cp);
125 if (!strcasecmp(pwstr, tcp))
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c79 struct tcphdr *tcp; local
93 /* incorporate the latest ack into the tcp header */
94 tcp = (struct tcphdr *)(ip + 1);
95 tcp->th_ack = lro->ack_seq;
96 tcp->th_win = lro->window;
97 tcp->th_flags = lro->flags;
98 /* incorporate latest timestamp into the tcp header */
100 ts_ptr = (uint32_t *)(tcp + 1);
105 * update checksum in tcp header by re-calculating the
106 * tcp pseudoheade
141 struct tcphdr *tcp; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass3b.c302 struct type_counts_s *tcp, *tcp_all, *tcp_def, *tcp_norm; local
357 tcp = &type_counts[fsdp->fsd_type];
364 tcp->nuser_objs++;
367 tcp->ngroup_objs++;
370 tcp->nother_objs++;
373 tcp->nclass_objs++;
376 tcp->ndef_user_objs++;
379 tcp->ndef_group_objs++;
382 tcp->ndef_other_objs++;
385 tcp
[all...]
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_proxy.c84 #include <netinet/tcp.h>
284 int appr_ok(fin, tcp, nat)
286 tcphdr_t *tcp;
295 if ((tcp == NULL) && dport)
478 tcphdr_t *tcp = NULL; local
536 tcp = (tcphdr_t *)fin->fin_dp;
610 if (tcp != NULL) {
611 tcpudp = tcp;
612 csump = &tcp->th_sum;
730 tcphdr_t *tcp; local
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_mm_l4.c111 lm_tcp_state_t *tcp,
120 lm_tcp_state_t *tcp,
140 IN lm_tcp_state_t * tcp, /* L4 state handle */
151 IN lm_tcp_state_t * tcp
160 IN lm_tcp_state_t * tcp /* L4 state handle */
169 IN lm_tcp_state_t * tcp, /* L4 state handle */
179 lm_tcp_state_t * tcp,
191 lm_tcp_state_t * tcp
284 lm_tcp_state_t * tcp,
294 lm_tcp_state_t * tcp)
109 mm_tcp_comp_slow_path_request( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, lm_tcp_slow_path_request_t *sp_request) argument
118 mm_tcp_complete_bufs( struct _lm_device_t *pdev, lm_tcp_state_t *tcp, lm_tcp_con_t *tcp_con, s_list_t *buf_list, lm_status_t lm_status ) argument
138 mm_tcp_abort_bufs( IN struct _lm_device_t * pdev, IN lm_tcp_state_t * tcp, IN lm_tcp_con_t * con, IN lm_status_t status ) argument
167 mm_tcp_graceful_disconnect_done( IN struct _lm_device_t * pdev, IN lm_tcp_state_t * tcp, IN lm_status_t status ) argument
177 mm_tcp_rx_indicate_gen_buf( struct _lm_device_t * pdev, lm_tcp_state_t * tcp, lm_frag_list_t * frag_list, void * return_buffer_ctx ) argument
282 mm_tcp_post_empty_slow_path_request( struct _lm_device_t * pdev, lm_tcp_state_t * tcp, u32_t request_type) argument
292 mm_tcp_del_tcp_state( struct _lm_device_t * pdev, lm_tcp_state_t * tcp) argument
300 mm_tcp_rx_peninsula_to_rq_copy_dmae( struct _lm_device_t * pdev, lm_tcp_state_t * tcp, lm_address_t gen_buf_phys, u32_t gen_buf_offset, lm_tcp_buffer_t * tcp_buf, u32_t tcp_buf_offset, u32_t nbytes ) argument
[all...]

Completed in 88 milliseconds

123