/freebsd-13-stable/sys/netinet/ |
H A D | in_kdtrace.c | 39 SDT_PROVIDER_DEFINE(tcp); variable 59 SDT_PROBE_DEFINE5_XLATE(tcp, , , accept__established, 66 SDT_PROBE_DEFINE5_XLATE(tcp, , , accept__refused, 73 SDT_PROBE_DEFINE5_XLATE(tcp, , , connect__established, 80 SDT_PROBE_DEFINE5_XLATE(tcp, , , connect__refused, 87 SDT_PROBE_DEFINE5_XLATE(tcp, , , connect__request, 94 SDT_PROBE_DEFINE5_XLATE(tcp, , , receive, 101 SDT_PROBE_DEFINE5_XLATE(tcp, , , send, 108 SDT_PROBE_DEFINE1_XLATE(tcp, , , siftr, 111 SDT_PROBE_DEFINE3_XLATE(tcp, , , debug__inpu [all...] |
H A D | in_kdtrace.h | 40 SDT_PROBE1(tcp, , , probe, arg0) 42 SDT_PROBE2(tcp, , , probe, arg0, arg1) 44 SDT_PROBE3(tcp, , , probe, arg0, arg1, arg2) 46 SDT_PROBE4(tcp, , , probe, arg0, arg1, arg2, arg3) 48 SDT_PROBE5(tcp, , , probe, arg0, arg1, arg2, arg3, arg4) 50 SDT_PROBE6(tcp, , , probe, arg0, arg1, arg2, arg3, arg4, arg5) 53 SDT_PROVIDER_DECLARE(tcp); variable 60 SDT_PROBE_DECLARE(tcp, , , accept__established); 61 SDT_PROBE_DECLARE(tcp, , , accept__refused); 62 SDT_PROBE_DECLARE(tcp, , , connect__establishe [all...] |
/freebsd-13-stable/sys/dev/syscons/ |
H A D | scterm-sc.c | 116 static void scterm_scan_esc(scr_stat *scp, term_stat *tcp, 118 static int mask2attr(term_stat *tcp); 123 term_stat *tcp; local 130 tcp = *softc; 134 bzero(tcp, sizeof(*tcp)); 135 tcp->flags = SCTERM_BUSY; 136 tcp->esc = 0; 137 tcp->saved_xpos = -1; 138 tcp 180 scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) argument 674 term_stat *tcp; local 709 term_stat *tcp = scp->ts; local 743 term_stat *tcp = scp->ts; local 758 term_stat *tcp = scp->ts; local 800 mask2attr(term_stat *tcp) argument [all...] |
/freebsd-13-stable/tools/regression/sockets/udp_pingpong/ |
H A D | udp_pingpong.c | 124 get_clock_type(struct test_ctx *tcp) argument 126 switch (tcp->ts_type) { 141 get_scm_type(struct test_ctx *tcp) argument 143 switch (tcp->ts_type) { 162 get_scm_size(struct test_ctx *tcp) argument 164 switch (tcp->ts_type) { 181 setup_ts_sockopt(struct test_ctx *tcp, int fd) argument 189 switch (tcp->ts_type) { 195 sval2 = tcp->ts_type; 213 err(1, "%s: setup_udp: setsockopt(%d, %d, 1)", tcp 228 setup_udp(struct test_ctx *tcp) argument 273 setup_udp6(struct test_ctx *tcp) argument 311 teardown_udp(struct test_ctx *tcp) argument 319 send_pkt(struct test_ctx *tcp, int pnum, int fdidx, const char *face) argument 340 hdr_extract_ts(struct test_ctx *tcp, struct msghdr *mhp, struct timespec *tp) argument 386 recv_pkt_recvmsg(struct test_ctx *tcp, int fdidx, const char *face, void *buf, size_t rlen, struct timespec *tp) argument 419 recv_pkt_recv(struct test_ctx *tcp, int fdidx, const char *face, void *buf, size_t rlen, struct timespec *tp) argument 436 recv_pkt(struct test_ctx *tcp, int fdidx, const char *face, int tout) argument 474 test_server(struct test_ctx *tcp) argument 490 test_client(struct test_ctx *tcp) argument [all...] |
/freebsd-13-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-13-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-13-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-13-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-13-stable/cddl/usr.sbin/dtrace/tests/common/mib/ |
H A D | Makefile | 11 tst.tcp.ksh \
|
/freebsd-13-stable/tests/sys/netpfil/pf/ |
H A D | echo_inetd.conf | 28 echo stream tcp nowait root internal
|
/freebsd-13-stable/cddl/usr.sbin/dwatch/libexec/ |
H A D | Makefile | 16 tcp \ 66 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-accept 67 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-accept-established 68 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-accept-refused 69 LINKS+= ${LIBEXECDIR}/dwatch/tcp ${LIBEXECDIR}/dwatch/tcp-connect 70 LINKS+= ${LIBEXECDIR}/dwatch/tcp [all...] |
/freebsd-13-stable/sys/netinet/cc/ |
H A D | cc_module.h | 55 (ccv)->type == IPPROTO_TCP ? &(ccv)->ccvc.tcp->what : \ 59 #define CCV(ccv, what) (ccv)->ccvc.tcp->what
|
/freebsd-13-stable/usr.sbin/bsdconfig/include/ |
H A D | Makefile | 5 options.hlp tcp.hlp usage.hlp
|
/freebsd-13-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-13-stable/libexec/rc/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-13-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 46 # 7 x tcp:::send (3 during the setup, 4 during the teardown) 48 # 7 x tcp:::receive (3 during the setup, 4 during the teardown) 83 Proto => "tcp", 106 tcp:::send 120 tcp:::receive 127 tcp:::state-change 132 tcp [all...] |
/freebsd-13-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-13-stable/usr.sbin/ppp/ |
H A D | ncp.h | 43 struct port_range tcp, udp; /* The range of urgent ports */ member in struct:ncp::__anon16670::__anon16671 84 ncp_IsUrgentPort(&(ncp)->cfg.urgent.tcp, p1, p2) 88 ncp_AddUrgentPort(&(ncp)->cfg.urgent.tcp, p) 92 ncp_RemoveUrgentPort(&(ncp)->cfg.urgent.tcp, p) 96 ncp_ClearUrgentPorts(&(ncp)->cfg.urgent.tcp)
|
/freebsd-13-stable/contrib/ipfilter/ |
H A D | ip_msnrpc_pxy.c | 126 tcphdr_t *tcp; local 133 tcp = (tcphdr_t *)fin->fin_dp; 134 dlen = fin->fin_dlen - (TCP_OFF(tcp) << 2); 138 mrh = (msnrpchdr_t *)((char *)tcp + (TCP_OFF(tcp) << 2)); 165 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local 176 tcp = (tcphdr_t *)fin->fin_dp; 177 dlen = fin->fin_dlen - (TCP_OFF(tcp) << 2); 181 mrh = (msnrpchdr_t *)((char *)tcp + (TCP_OFF(tcp) << [all...] |