/freebsd-11-stable/sys/netinet/ |
H A D | in_kdtrace.c | 37 SDT_PROVIDER_DEFINE(tcp); variable 56 SDT_PROBE_DEFINE5_XLATE(tcp, , , accept__established, 63 SDT_PROBE_DEFINE5_XLATE(tcp, , , accept__refused, 70 SDT_PROBE_DEFINE5_XLATE(tcp, , , connect__established, 77 SDT_PROBE_DEFINE5_XLATE(tcp, , , connect__refused, 84 SDT_PROBE_DEFINE5_XLATE(tcp, , , connect__request, 91 SDT_PROBE_DEFINE5_XLATE(tcp, , , receive, 98 SDT_PROBE_DEFINE5_XLATE(tcp, , , send, 105 SDT_PROBE_DEFINE1_XLATE(tcp, , , siftr, 108 SDT_PROBE_DEFINE3_XLATE(tcp, , , debug__inpu [all...] |
H A D | in_kdtrace.h | 36 SDT_PROBE1(tcp, , , probe, arg0) 38 SDT_PROBE2(tcp, , , probe, arg0, arg1) 40 SDT_PROBE3(tcp, , , probe, arg0, arg1, arg2) 42 SDT_PROBE4(tcp, , , probe, arg0, arg1, arg2, arg3) 44 SDT_PROBE5(tcp, , , probe, arg0, arg1, arg2, arg3, arg4) 46 SDT_PROBE6(tcp, , , probe, arg0, arg1, arg2, arg3, arg4, arg5) 49 SDT_PROVIDER_DECLARE(tcp); variable 55 SDT_PROBE_DECLARE(tcp, , , accept__established); 56 SDT_PROBE_DECLARE(tcp, , , accept__refused); 57 SDT_PROBE_DECLARE(tcp, , , connect__establishe [all...] |
/freebsd-11-stable/sys/pc98/cbus/ |
H A D | scterm-sck.c | 132 static void scterm_scan_esc(scr_stat *scp, term_stat *tcp, 134 static int mask2attr(term_stat *tcp); 307 term_stat *tcp; local 314 tcp = *softc; 318 bzero(tcp, sizeof(*tcp)); 319 tcp->flags = SCTERM_BUSY; 320 tcp->esc = 0; 321 tcp->saved_xpos = -1; 322 tcp 368 scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) argument 915 term_stat *tcp; local 1116 term_stat *tcp = scp->ts; local 1150 term_stat *tcp = scp->ts; local 1165 term_stat *tcp = scp->ts; local 1203 mask2attr(term_stat *tcp) argument [all...] |
/freebsd-11-stable/tools/regression/sockets/udp_pingpong/ |
H A D | udp_pingpong.c | 149 get_clock_type(struct test_ctx *tcp) argument 151 switch (tcp->ts_type) { 166 get_scm_type(struct test_ctx *tcp) argument 168 switch (tcp->ts_type) { 187 get_scm_size(struct test_ctx *tcp) argument 189 switch (tcp->ts_type) { 206 setup_ts_sockopt(struct test_ctx *tcp, int fd) argument 214 switch (tcp->ts_type) { 220 sval2 = tcp->ts_type; 238 err(1, "%s: setup_udp: setsockopt(%d, %d, 1)", tcp 253 setup_udp(struct test_ctx *tcp) argument 298 setup_udp6(struct test_ctx *tcp) argument 336 teardown_udp(struct test_ctx *tcp) argument 344 send_pkt(struct test_ctx *tcp, int pnum, int fdidx, const char *face) argument 365 hdr_extract_ts(struct test_ctx *tcp, struct msghdr *mhp, struct timespec *tp) argument 411 recv_pkt_recvmsg(struct test_ctx *tcp, int fdidx, const char *face, void *buf, size_t rlen, struct timespec *tp) argument 444 recv_pkt_recv(struct test_ctx *tcp, int fdidx, const char *face, void *buf, size_t rlen, struct timespec *tp) argument 461 recv_pkt(struct test_ctx *tcp, int fdidx, const char *face, int tout) argument 499 test_server(struct test_ctx *tcp) argument 515 test_client(struct test_ctx *tcp) argument [all...] |
/freebsd-11-stable/release/picobsd/floppy.tree/etc/ |
H A D | inetd.conf | 6 telnet stream tcp nowait root /usr/libexec/telnetd telnetd 12 #daytime stream tcp nowait root internal 14 #time stream tcp nowait root internal 16 #echo stream tcp nowait root internal 18 #discard stream tcp nowait root internal 20 #chargen stream tcp nowait root internal
|
/freebsd-11-stable/contrib/libpcap/rpcapd/ |
H A D | rpcapd.inetd.conf | 1 2002 stream tcp nowait root /usr/local/sbin/rpcapd rpcapd -i
|
H A D | rpcapd.xinetd.conf | 3 protocol = tcp
|
/freebsd-11-stable/tests/sys/mac/portacl/ |
H A D | nobody_test.sh | 18 bind_test fl fl uid nobody tcp 77 19 bind_test ok ok uid nobody tcp 7777 23 bind_test fl fl gid nobody tcp 77 24 bind_test ok ok gid nobody tcp 7777 30 bind_test fl fl uid nobody tcp 77 31 bind_test ok ok uid nobody tcp 7777 35 bind_test fl fl gid nobody tcp 77 36 bind_test ok ok gid nobody tcp 7777 44 bind_test fl fl uid nobody tcp 77 45 bind_test fl ok uid nobody tcp 777 [all...] |
H A D | root_test.sh | 15 bind_test ok ok uid root tcp 77 16 bind_test ok ok uid root tcp 7777 20 bind_test ok ok gid root tcp 77 21 bind_test ok ok gid root tcp 7777 29 bind_test fl ok uid root tcp 77 30 bind_test ok ok uid root tcp 7777 34 bind_test fl ok gid root tcp 77 35 bind_test ok ok gid root tcp 7777 43 bind_test fl ok uid root tcp 77 44 bind_test fl ok uid root tcp 777 [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | 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 [all...] |
H A D | ipft_tx.c | 170 tcphdr_t th, *tcp = &th; local 177 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip)); 178 bzero((char *)tcp, sizeof(*tcp)); 219 if (!strcasecmp(*cpp, "tcp") || !strcasecmp(*cpp, "udp") || 224 tx_proto = "tcp"; 248 fprintf(stderr, "tcp/udp with no source port\n"); 252 tcp->th_sport = htons(tx_portnum(last)); 254 tcp->th_win = htons(4096); 255 TCP_OFF_A(tcp, sizeo 348 tcphdr_t th, *tcp = &th; local [all...] |
H A D | 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));
|
/freebsd-11-stable/contrib/ipfilter/rules/ |
H A D | BASIC.NAT | 13 map ppp0 w.x.y.z/24 -> a.b.c.d/32 proxy port ftp ftp/tcp 17 map ppp0 w.x.y.z/24 -> a.b.c.d/32 portmap tcp/udp 40000:60000 22 #map ppp0 w.x.y.z/24 -> 0/32 portmap tcp/udp 40000:60000 28 #map ppp0 w.x.y.z/24 -> a.b.c.d/24 portmap tcp/udp 40000:60000 33 #map ppp0 w.x.y.v/32 -> a.b.c.E/32 portmap tcp/udp 40000:60000 35 #map ppp0 w.x.y.u/32 -> a.b.c.F/32 portmap tcp/udp 40000:60000 37 #map ppp0 w.x.y.t/32 -> a.b.c.G/32 portmap tcp/udp 40000:60000 39 #map ppp0 w.x.y.s/32 -> a.b.c.H/32 portmap tcp/udp 40000:60000 41 #map ppp0 w.x.y.r/32 -> a.b.c.I/32 portmap tcp/udp 40000:60000 43 #map ppp0 w.x.y.q/32 -> a.b.c.J/32 portmap tcp/ud [all...] |
H A D | BASIC_1.FW | 25 block in log proto tcp all flags S/SA head 101 group 100 28 block in log proto tcp all flags S/SA head 201 group 200 70 pass in quick proto tcp from any to any port = ftp keep state group 201 71 pass in quick proto tcp from any to any port = ftp-data keep state group 201 72 pass in quick proto tcp from any port = ftp-data to any port > 1023 keep state group 101 80 pass in quick proto tcp from any to any port = 22 keep state group 201 81 pass in quick proto tcp from any to any port = telnet keep state group 201 82 pass in quick proto tcp from any to any port = www keep state group 201 85 block in log proto tcp from any to a.b.c.d/32 flags S/SA head 110 group 100 89 pass in log quick proto tcp fro [all...] |
H A D | ipmon.conf | 14 match { protocol = tcp, result = block, dstport = 25; }
|
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/mib/ |
H A D | Makefile | 11 tst.tcp.ksh \
|
/freebsd-11-stable/cddl/usr.sbin/dwatch/libexec/ |
H A D | Makefile | 15 tcp \ 64 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-accept 65 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-accept-established 66 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-accept-refused 67 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-connect 68 LINKS+= ${LIBEXECDIR}/dwatch/tcp [all...] |
/freebsd-11-stable/sys/dev/nxge/xgehal/ |
H A D | xgehal-device-fp.c | 698 __hal_lro_check_for_session_match(lro_t *lro, tcplro_t *tcp, iplro_t *ip) argument 710 if ((lro->tcp_hdr->source != tcp->source)) 714 if ((lro->tcp_hdr->dest != tcp->dest)) 721 * __hal_tcp_seg_len: Find the tcp seg len. 723 * @tcp: tcp header. 727 __hal_tcp_seg_len(iplro_t *ip, tcplro_t *tcp) argument 733 ((tcp->doff_res)>>2)); 774 * __hal_tcp_lro_capable: Finds whether tcp is lro capable. 776 * @tcp 779 __hal_tcp_lro_capable(iplro_t *ip, tcplro_t *tcp, lro_t *lro, int *ts_off) argument 895 __hal_lro_capable( u8 *buffer, iplro_t **ip, tcplro_t **tcp, xge_hal_dtr_info_t *ext_info) argument 974 __hal_open_lro_session(u8 *buffer, iplro_t *ip, tcplro_t *tcp, lro_t **lro, xge_hal_device_t *hldev, xge_hal_lro_desc_t *ring_lro, int slot, u32 tcp_seg_len, int ts_off) argument 1029 __hal_get_lro_session(u8 *eth_hdr, iplro_t *ip, tcplro_t *tcp, lro_t **lro, xge_hal_dtr_info_t *ext_info, xge_hal_device_t *hldev, xge_hal_lro_desc_t *ring_lro, lro_t **lro_end3 ) argument 1180 __hal_lro_under_optimal_thresh(iplro_t *ip, tcplro_t *tcp, lro_t *lro, xge_hal_device_t *hldev) argument 1213 __hal_collapse_ip_hdr( iplro_t *ip, tcplro_t *tcp, lro_t *lro, xge_hal_device_t *hldev) argument 1235 __hal_collapse_tcp_hdr( iplro_t *ip, tcplro_t *tcp, lro_t *lro, xge_hal_device_t *hldev) argument 1254 __hal_append_lro(iplro_t *ip, tcplro_t **tcp, u32 *seg_len, lro_t *lro, xge_hal_device_t *hldev) argument 1294 xge_hal_lro_process_rx(int ring, u8 *eth_hdr, u8 *ip_hdr, tcplro_t **tcp, u32 *seglen, lro_t **p_lro, xge_hal_dtr_info_t *ext_info, xge_hal_device_t *hldev, lro_t **lro_end3) argument 1366 xge_hal_accumulate_large_rx(u8 *buffer, tcplro_t **tcp, u32 *seglen, lro_t **p_lro, xge_hal_dtr_info_t *ext_info, xge_hal_device_t *hldev, lro_t **lro_end3) argument [all...] |
/freebsd-11-stable/sys/netinet/cc/ |
H A D | cc_module.h | 53 (ccv)->type == IPPROTO_TCP ? &(ccv)->ccvc.tcp->what : \ 57 #define CCV(ccv, what) (ccv)->ccvc.tcp->what
|
/freebsd-11-stable/usr.sbin/bsdconfig/include/ |
H A D | Makefile | 5 options.hlp tcp.hlp usage.hlp
|
/freebsd-11-stable/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 50 #include <netinet/tcp.h> 63 tcpmod_setmss(struct mbuf **mp, struct tcphdr *tcp, int tlen, uint16_t mss) argument 82 for (tlen -= sizeof(struct tcphdr), cp = (u_char *)(tcp + 1); 107 bcopy(&tcp->th_sum, &csum, sizeof(csum)); 109 bcopy(&csum, &tcp->th_sum, sizeof(csum)); 124 struct tcphdr *tcp; local 142 tcp = mtodo(*mp, hlen); 144 hlen = tcp->th_off << 2; 148 return (tcpmod_setmss(mp, tcp, hlen, mss)); 156 struct tcphdr *tcp; local [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | netoptions | 44 ${SYSCTL} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null 48 ${SYSCTL} net.inet.tcp.log_in_vain=0 >/dev/null 54 ${SYSCTL} net.inet.tcp.rfc1323=1 >/dev/null 58 ${SYSCTL} net.inet.tcp.rfc1323=0 >/dev/null 62 ${SYSCTL} net.inet.tcp.always_keepalive=1 >/dev/null 66 ${SYSCTL} net.inet.tcp.always_keepalive=0 >/dev/null 72 ${SYSCTL} net.inet.tcp.drop_synfin=1 >/dev/null 74 ${SYSCTL} net.inet.tcp.drop_synfin=0 >/dev/null
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/ |
H A D | tst.localtcpstate.ksh | 28 # Test tcp:::state-change and tcp:::{send,receive} by connecting to 31 # A number of state transition events along with tcp fusion send and 47 # 4 x tcp:::send (2 during the TCP handshake, 1 message then a FIN) 49 # 3 x tcp:::receive (1 during the TCP handshake, 1 message then the FIN ACK) 52 # source and destination events. The actual tcp count tested is 7 56 # TCP close will enter the IP code path and not use tcp fusion. 75 Proto => "tcp", 99 tcp:::send 113 tcp [all...] |
/freebsd-11-stable/contrib/ipfilter/ipsend/ |
H A D | ipsend.c | 177 tcphdr_t *tcp; local 189 tcp = (tcphdr_t *)(ip + 1); 190 udp = (udphdr_t *)tcp; 297 tcp->th_dport = htons(atoi(optarg)); 305 tcp->th_win = atoi(optarg); 367 tcp = (tcphdr_t *)(p + hlen); 378 tcp->th_flags |= TH_SYN; 381 tcp->th_flags |= TH_ACK; 384 tcp->th_flags |= TH_FIN; 387 tcp [all...] |
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ncp.h | 43 struct port_range tcp, udp; /* The range of urgent ports */ member in struct:ncp::__anon8880::__anon8881 81 ncp_IsUrgentPort(&(ncp)->cfg.urgent.tcp, p1, p2) 85 ncp_AddUrgentPort(&(ncp)->cfg.urgent.tcp, p) 89 ncp_RemoveUrgentPort(&(ncp)->cfg.urgent.tcp, p) 93 ncp_ClearUrgentPorts(&(ncp)->cfg.urgent.tcp)
|