HomeSort by: relevance | last modified time | path
    Searched defs:tcp (Results 1 - 25 of 85) sorted by relevancy

1 2 3 4

  /src/external/bsd/ipf/dist/lib/
printpacket6.c 24 tcphdr_t *tcp; local
28 tcp = (tcphdr_t *)(buf + 40);
49 (void)PRINTF(",%d", ntohs(tcp->th_sport));
58 PRINTF(",%d", ntohs(tcp->th_dport));
printpacket.c 24 tcphdr_t *tcp; local
74 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
82 PRINTF(",%d", ntohs(tcp->th_sport));
87 PRINTF(",%d", ntohs(tcp->th_dport));
88 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) {
90 if (tcp->th_flags & TH_FIN)
92 if (tcp->th_flags & TH_SYN)
94 if (tcp->th_flags & TH_RST)
96 if (tcp->th_flags & TH_PUSH)
98 if (tcp->th_flags & TH_ACK
    [all...]
  /src/external/mpl/bind/dist/bin/tests/system/isctest/
query.py 91 def tcp(*args, **kwargs) -> Any: function
92 return generic_query(dns.query.tcp, *args, **kwargs)
  /src/external/mit/libuv/dist/test/
test-socket-buffer-size.c 30 static uv_tcp_t tcp; variable
61 ASSERT_OK(uv_tcp_init(uv_default_loop(), &tcp));
62 ASSERT_OK(uv_tcp_bind(&tcp, (struct sockaddr*) &addr, 0));
63 check_buffer_size((uv_handle_t*) &tcp);
64 uv_close((uv_handle_t*) &tcp, close_cb);
test-handle-fileno.c 51 uv_tcp_t tcp; local
67 r = uv_tcp_init(loop, &tcp);
69 r = uv_fileno((uv_handle_t*) &tcp, &fd);
71 r = uv_tcp_bind(&tcp, (const struct sockaddr*) &addr, 0);
73 r = uv_fileno((uv_handle_t*) &tcp, &fd);
75 uv_close((uv_handle_t*) &tcp, NULL);
76 r = uv_fileno((uv_handle_t*) &tcp, &fd);
test-tcp-rst.c 25 static uv_tcp_t tcp; variable
34 ASSERT_PTR_EQ(handle, (uv_handle_t*) &tcp);
47 ASSERT_PTR_EQ((uv_tcp_t*) t, &tcp);
65 ASSERT_OK(uv_read_start((uv_stream_t*) &tcp, alloc_cb, read_cb));
68 ASSERT_EQ(qbuf.len, uv_try_write((uv_stream_t*) &tcp, &qbuf, 1));
75 * This test has a client which connects to the echo_server and receives TCP
76 * RST. Test checks that uv_guess_handle still works on a reset TCP handle.
90 r = uv_tcp_init(uv_default_loop(), &tcp);
94 &tcp,
test-connection-fail.c 29 static uv_tcp_t tcp; variable
60 /* Close the tcp handle. */
61 uv_close((uv_handle_t*)&tcp, on_close);
69 ASSERT_PTR_EQ((uv_stream_t*) &tcp, req->handle);
98 r = uv_tcp_init(uv_default_loop(), &tcp);
103 ASSERT_OK(uv_tcp_bind(&tcp, (const struct sockaddr*) &client_addr, 0));
106 &tcp,
140 * callback of the tcp handle hasn't been made after the failed connection
test-shutdown-simultaneous.c 27 static uv_tcp_t tcp; variable
53 ASSERT_PTR_EQ((uv_tcp_t*)t, &tcp);
68 uv_shutdown(&shutdown_req, (uv_stream_t*) &tcp, shutdown_cb);
86 ASSERT_OK(uv_read_start((uv_stream_t*)&tcp, alloc_cb, read_cb));
89 ASSERT_EQ(UV_EALREADY, uv_read_start((uv_stream_t*)&tcp, alloc_cb, read_cb));
91 ASSERT_EQ(UV_EINVAL, uv_read_start((uv_stream_t*)&tcp, NULL, read_cb));
92 ASSERT_EQ(UV_EINVAL, uv_read_start((uv_stream_t*)&tcp, alloc_cb, NULL));
98 ASSERT_EQ(qbuf.len, uv_try_write((uv_stream_t*) &tcp, &qbuf, 1));
117 r = uv_tcp_init(uv_default_loop(), &tcp);
121 &tcp,
    [all...]
test-shutdown-eof.c 28 static uv_tcp_t tcp; variable
49 ASSERT_PTR_EQ((uv_tcp_t*)t, &tcp);
92 ASSERT_OK(uv_read_start((uv_stream_t*)&tcp, alloc_cb, read_cb));
95 ASSERT_EQ(UV_EALREADY, uv_read_start((uv_stream_t*)&tcp, alloc_cb, read_cb));
97 ASSERT_EQ(UV_EINVAL, uv_read_start((uv_stream_t*)&tcp, NULL, read_cb));
98 ASSERT_EQ(UV_EINVAL, uv_read_start((uv_stream_t*)&tcp, alloc_cb, NULL));
104 uv_write(&write_req, (uv_stream_t*) &tcp, &qbuf, 1, NULL);
107 uv_shutdown(&shutdown_req, (uv_stream_t*) &tcp, shutdown_cb);
115 ASSERT_PTR_EQ(handle, (uv_handle_t*) &tcp);
141 uv_close((uv_handle_t*) &tcp, tcp_close_cb)
    [all...]
test-tcp-bind-error.c 302 uv_tcp_t tcp; local
310 ASSERT_OK(uv_tcp_init(uv_default_loop(), &tcp));
311 uv_close((uv_handle_t*) &tcp, NULL);
312 ASSERT_EQ(uv_tcp_bind(&tcp, (struct sockaddr*) &addr, 0), UV_EINVAL);
313 ASSERT_EQ(uv_listen((uv_stream_t*) &tcp, 5, NULL), UV_EINVAL);
  /src/sys/arch/alpha/alpha/
dec_2100_a500.c 122 struct ttwoga_config *tcp; local
128 tcp = ttwoga_init(0);
130 isa_iot = &tcp->tc_iot;
131 isa_memt = &tcp->tc_memt;
142 tcp = ttwoga_init(CTB_TURBOSLOT_HOSE(ctbslot));
151 pci_consinit(&tcp->tc_pc, &tcp->tc_iot, &tcp->tc_memt,
  /src/sys/arch/alpha/pci/
ttwoga.c 168 struct ttwoga_config *tcp; local
173 tcp = &ttwoga_configuration[hose];
174 tcp->tc_hose = hose;
176 tcp->tc_sysmap = &ttwoga_sysmap[hose];
186 tcp->tc_io_bus_start = (T2GA(tcp, T2_HAE0_2) & HAE0_2_PUA2) << 23;
187 tcp->tc_d_mem_bus_start = (T2GA(tcp, T2_HAE0_4) & HAE0_4_PUA1) << 30;
188 tcp->tc_s_mem_bus_start = (T2GA(tcp, T2_HAE0_1) & HAE0_1_PUA1) << 27
221 struct ttwoga_config *tcp; local
    [all...]
ttwoga_dma.c 84 #define TTWOGA_TLB_INVALIDATE(tcp) \
89 temp = T2GA((tcp), T2_IOCSR); \
90 T2GA((tcp), T2_IOCSR) = temp | IOCSR_FTLB; \
93 T2GA((tcp), T2_IOCSR) = temp; \
99 ttwoga_dma_init(struct ttwoga_config *tcp)
106 t = &tcp->tc_dmat_direct;
107 t->_cookie = tcp;
132 t = &tcp->tc_dmat_sgmap;
133 t->_cookie = tcp;
138 t->_sgmap = &tcp->tc_sgmap
242 struct ttwoga_config *tcp = t->_cookie; local
276 struct ttwoga_config *tcp = t->_cookie; local
294 struct ttwoga_config *tcp = t->_cookie; local
311 struct ttwoga_config *tcp = t->_cookie; local
328 struct ttwoga_config *tcp = t->_cookie; local
345 struct ttwoga_config *tcp = t->_cookie; local
    [all...]
ttwoga_pci.c 110 struct ttwoga_config *tcp = cpv; local
119 pci_decompose_tag(&tcp->tc_pc, tag, &b, &d, &f);
126 old_hae3 = T2GA(tcp, T2_HAE0_3) & ~HAE0_3_PCA;
127 T2GA(tcp, T2_HAE0_3) =
133 (pcireg_t *)ALPHA_PHYS_TO_K0SEG(tcp->tc_sysmap->tsmap_conf_base |
142 T2GA(tcp, T2_HAE0_3) = old_hae3;
163 struct ttwoga_config *tcp = cpv; local
172 pci_decompose_tag(&tcp->tc_pc, tag, &b, &d, &f);
179 old_hae3 = T2GA(tcp, T2_HAE0_3) & ~HAE0_3_PCA;
180 T2GA(tcp, T2_HAE0_3)
    [all...]
  /src/usr.sbin/yppoll/
yppoll.c 94 int c, r, tcp = 0; local
101 tcp = 1;
130 &order, &master, tcp);
149 int tcp)
154 if (tcp)
162 int *outorder, char **outname, int tcp)
185 client = mkclient(&rsrv_sin, YPPROG, YPVERS, tcp);
188 tcp ? "tcp" : "udp", server);
  /src/external/bsd/ipf/dist/ipsd/
slinux.c 26 #include <netinet/tcp.h>
49 tcphdr_t *tcp; local
53 tcp = (tcphdr_t *)(ip + 1);
56 bcopy(bp + (ip.ip_hl << 2), (char *)tcp, sizeof(*tcp));
57 if (0 == detect(ip, tcp))
89 * get rid of non-tcp or fragmented packets here.
sbpf.c 39 #include <netinet/tcp.h>
74 tcphdr_t *tcp; local
78 tcp = (tcphdr_t *)(ip + 1);
80 bcopy(ep + 14 + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
85 if (0 == detect(ip, tcp))
sdlpi.c 36 #include <netinet/tcp.h>
66 tcphdr_t *tcp; local
70 tcp = (tcphdr_t *)(ip + 1);
72 bcopy(ep + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp));
76 if (0 == detect(ip, tcp))
197 * Create some filter rules for our TCP watcher. We only want ethernet
198 * pacets which are IP protocol and only the TCP packets from IP.
  /src/sys/net/npf/
npf_socket.c 33 #include <netinet/tcp.h>
130 struct tcphdr *tcp = npc->npc_l4.tcp; local
136 sport = tcp->th_sport;
137 dport = tcp->th_dport;
193 struct tcphdr *tcp = npc->npc_l4.tcp; local
199 sport = tcp->th_sport;
200 dport = tcp->th_dport;
  /src/sys/external/bsd/ipf/netinet/
ip_raudio_pxy.c 72 rap->rap_mode = RAP_M_TCP; /* default is for TCP */
84 tcphdr_t *tcp; local
99 tcp = (tcphdr_t *)fin->fin_dp;
100 off = (char *)tcp - (char *)fin->fin_ip;
101 off += (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
186 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local
205 * only proceed further if we're using UDP. If they want to use TCP
212 tcp = (tcphdr_t *)fin->fin_dp;
213 off = (char *)tcp - (char *)fin->fin_ip;
214 off += (TCP_OFF(tcp) << 2) + fin->fin_ipoff
    [all...]
ip_rcmd_pxy.c 72 tcphdr_t *tcp = (tcphdr_t *)fin->fin_dp; local
83 aps->aps_sport = tcp->th_sport;
84 aps->aps_dport = tcp->th_dport;
135 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local
152 tcp = (tcphdr_t *)fin->fin_dp;
156 tcpsz = TCP_OFF(tcp) << 2;
162 off = (char *)tcp - (char *)ip + tcpsz + fin->fin_ipoff;
170 (tcp->th_seq != rc->rcmd_portseq))
196 rc->rcmd_portseq = tcp->th_seq;
250 ip6->ip6_plen = htons(sizeof(*tcp));
    [all...]
  /src/sys/fs/nfs/client/
nfs_clcomsubs.c 262 char *cp, *tcp; local
311 tcp = (char *)uiop->uio_iov->iov_base;
312 tcp += uiosiz;
313 uiop->uio_iov->iov_base = (void *)tcp;
  /src/tests/usr.sbin/inetd/
t_inetd.c 51 #define TCP 6
67 "uses UDP/TCP ports 5432-5439 with localhost.");
197 /* Run localhost tcp echo, return true if successful, false if timeout/disconnect */
203 int tcp; local
206 tcp = create_socket("127.0.0.1", port, SOCK_STREAM, TCP, 1, &remote);
207 CHECK_ERROR(connect(tcp, (const struct sockaddr *)&remote,
209 CHECK_ERROR(send(tcp, buffer, sizeof(buffer), 0));
210 count = recv(tcp, buffer, sizeof(buffer), 0);
  /src/usr.bin/ftp/
complete.c 210 char *tcp; local
212 tcp = ftp_strdup(dp->d_name);
213 ftp_sl_add(words, tcp);
311 char *tcp; local
319 tcp = strrchr(cp, '/');
320 if (tcp)
321 tcp++;
323 tcp = cp;
324 tcp = ftp_strdup(tcp);
    [all...]
  /src/usr.bin/ypwhich/
ypwhich.c 75 * -T: use TCP instead of UDP
99 int inhibit = 0, force = 0, tcp = 0; local
134 tcp = 1;
155 "force=%d, tcp=%d\n",
156 targhost, ourdomain, inhibit, saw_m, targmap, force, tcp);
171 tcp, ypaliases);
173 inaddr = find_server(targhost, ourdomain, tcp);
199 int tcp)
204 if (tcp)
214 find_server(const char *host, const char *domain, int tcp)
    [all...]

Completed in 41 milliseconds

1 2 3 4