/freebsd-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_state.c | 79 #include <netinet/tcp.h> 928 tcphdr_t *tcp; local 966 tcp = NULL; 1074 tcp = fin->fin_dp; 1076 if (tcp->th_flags & TH_RST) 1095 is->is_maxswin = ntohs(tcp->th_win); 1100 is->is_send = ntohl(tcp->th_seq) + fin->fin_dlen - 1101 (TCP_OFF(tcp) << 2) + 1102 ((tcp->th_flags & TH_SYN) ? 1 : 0) + 1103 ((tcp 1548 tcphdr_t *tcp; local 2086 tcphdr_t *tcp; local 2703 tcphdr_t *tcp; local 2820 tcphdr_t *tcp; local 2858 tcphdr_t *tcp; local 3339 tcphdr_t *tcp; local 3763 tcphdr_t *tcp; local [all...] |
H A D | ip_proxy.c | 80 #include <netinet/tcp.h> 275 int appr_ok(fin, tcp, nat) 277 tcphdr_t *tcp; 286 if ((tcp == NULL) && dport) 468 tcphdr_t *tcp = NULL; local 515 tcp = (tcphdr_t *)fin->fin_dp; 585 if (tcp != NULL) { 589 tcp->th_sum = fr_cksum(fin->fin_qfm, ip, 590 IPPROTO_TCP, tcp, 593 tcp 691 tcphdr_t *tcp; local [all...] |
H A D | ip_ftp_pxy.c | 162 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local 174 tcp = (tcphdr_t *)fin->fin_dp; 175 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff; 605 tcphdr_t *tcp, tcph, *tcp2; local 614 tcp = (tcphdr_t *)fin->fin_dp; 615 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff; 690 fi.fin_plen = fi.fin_hlen + sizeof(*tcp); 985 tcphdr_t *tcp; local [all...] |
H A D | ip_nat.c | 97 #include <netinet/tcp.h> 2369 tcphdr_t *tcp = NULL; local 2416 tcp = fin->fin_dp; 2543 if (nat_finalise(fin, nat, &ni, tcp, natsave, direction) == -1) { 2578 static int nat_finalise(fin, nat, ni, tcp, natsave, direction) 2582 tcphdr_t *tcp; 2610 nat->nat_seqnext[0] = ntohl(tcp->th_seq); 2750 tcphdr_t *tcp = NULL; local 2842 tcp = (tcphdr_t *)((char *)oip + (IP_HL(oip) << 2)); 2843 fin->fin_data[0] = ntohs(tcp 2887 tcphdr_t *tcp; local 3702 tcphdr_t *tcp; local 3758 tcphdr_t *tcp = NULL; local 3924 tcphdr_t *tcp; local 4055 tcphdr_t *tcp; local 4219 tcphdr_t *tcp; local 4338 tcphdr_t *tcp; local [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/ |
H A D | tst.ipv4remotetcp.ksh | 28 # Test {tcp,ip}:::{send,receive} of IPv4 TCP to a remote host. 43 # 3 x tcp:::send (2 during the TCP handshake, then a FIN) 45 # 2 x tcp:::receive (1 during the TCP handshake, then the FIN ACK) 73 Proto => "tcp", 94 tcp:::send 107 tcp:::receive 118 printf("tcp:::send - %s\n", tcpsend >= 3 ? "yes" : "no"); 119 printf("tcp:::receive - %s\n", tcpreceive >= 2 ? "yes" : "no");
|
/freebsd-9.3-release/contrib/sendmail/contrib/ |
H A D | socketmapClient.pl | 16 if ($connection =~ /tcp:(.+):([0-9]*)/) { 20 Proto => 'tcp',
|
H A D | socketmapServer.pl | 13 if ($connection =~ /tcp:(.+):([0-9]*)/) { 17 Proto => 'tcp',
|
/freebsd-9.3-release/usr.bin/systat/ |
H A D | Makefile | 9 mode.c ip.c tcp.c \
|
/freebsd-9.3-release/crypto/heimdal/appl/push/ |
H A D | push_locl.h | 77 #include <netinet/tcp.h>
|
/freebsd-9.3-release/etc/ |
H A D | rc.firewall | 228 ${fwcmd} add pass tcp from any to any established 234 ${fwcmd} add pass tcp from any to me 25 setup 237 ${fwcmd} add pass tcp from me to any setup 240 ${fwcmd} add deny tcp from any to any setup 386 ${fwcmd} add pass tcp from any to any established 392 ${fwcmd} add pass tcp from any to me 25 setup 395 ${fwcmd} add pass tcp from any to me 53 setup 400 ${fwcmd} add pass tcp from any to me 80 setup 403 ${fwcmd} add deny log ip4 from any to any in via ${oif} setup proto tcp 406 setup proto tcp [all...] |
/freebsd-9.3-release/sys/netinet/ |
H A D | cc.h | 54 /* XXX: TCP_CA_NAME_MAX define lives in tcp.h for compat reasons. */ 55 #include <netinet/tcp.h> 66 /* Define the new net.inet.tcp.cc sysctl tree. */ 85 struct tcpcb *tcp; member in union:cc_var::ccv_container
|
/freebsd-9.3-release/contrib/ipfilter/ipsd/ |
H A D | 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))
|
H A D | snit.c | 38 #include <netinet/tcp.h> 61 struct tcphdr *tcp; local 65 tcp = (struct tcphdr *)(ip + 1); 67 bcopy(ep + 14 + (ip->ip_hl << 2), (char *)tcp, sizeof(*tcp)); 70 if (0 == detect(ip, tcp))
|
H A D | ipsd.c | 21 #include <netinet/tcp.h> 112 int detect(ip, tcp) 114 tcphdr_t *tcp; 121 k = tcp->th_dport - defports[i]; 124 if (findhit(ihp, ip->ip_src, tcp->th_dport))
|
/freebsd-9.3-release/contrib/tcsh/ |
H A D | sh.c | 247 char *tcp, *ttyn; local 591 if ((tcp = getenv("HOME")) != NULL) 592 cp = quote(SAVE(tcp)); 599 if ((tcp = getenv("EXTERNAL_STORAGE")) != NULL) 600 cp = quote(SAVE(tcp)); 690 if ((tcp = getenv("SYSTYPE")) == NULL) 691 tcp = "bsd4.3"; 692 tsetenv(STRSYSTYPE, quote(str2short(tcp))); 715 if ((tcp = getenv("TERM")) != NULL) { 716 setv(STRterm, quote(SAVE(tcp)), VAR_READWRIT [all...] |
/freebsd-9.3-release/sys/netgraph/ |
H A D | ng_tcpmss.c | 59 #include <netinet/tcp.h> 271 struct tcphdr *tcp; local 320 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); 323 tcphlen = tcp->th_off << 2; 328 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr)) 336 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); 341 if (correct_mss(tcp, tcphlen, priv->stats.maxMSS,
|
/freebsd-9.3-release/sys/contrib/pf/net/ |
H A D | pf_osfp.c | 38 #include <netinet/tcp.h> 121 const struct tcphdr *tcp) 128 pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp)) 138 if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL, 146 pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp) argument 157 if ((tcp->th_flags & (TH_SYN|TH_ACK)) != TH_SYN) 214 fp.fp_wsize = ntohs(tcp->th_win); 217 cnt = (tcp->th_off << 2) - sizeof(*tcp); 120 pf_osfp_fingerprint(struct pf_pdesc *pd, struct mbuf *m, int off, const struct tcphdr *tcp) argument [all...] |
/freebsd-9.3-release/sys/dev/nxge/include/ |
H A D | xgehal-device.h | 259 /* Next tcp sequence number */ 261 /* Current tcp seq & ack */ 942 __hal_tcp_seg_len(iplro_t *ip, tcplro_t *tcp); 948 __hal_tcp_lro_capable(iplro_t *ip, tcplro_t *tcp, lro_t *lro, int *ts_off); 951 __hal_lro_capable(u8 *buffer, iplro_t **ip, tcplro_t **tcp, 955 __hal_get_lro_session(u8 *eth_hdr, iplro_t *ip, tcplro_t *tcp, lro_t **lro, 960 __hal_lro_under_optimal_thresh(iplro_t *ip, tcplro_t *tcp, lro_t *lro, 964 __hal_collapse_ip_hdr(iplro_t *ip, tcplro_t *tcp, lro_t *lro, 968 __hal_collapse_tcp_hdr(iplro_t *ip, tcplro_t *tcp, lro_t *lro, 972 __hal_append_lro(iplro_t *ip, tcplro_t **tcp, u3 [all...] |
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/ |
H A D | proto_tls.c | 40 #include <netinet/tcp.h> 341 struct proto_conn *tcp; local 354 proto_set("tcp:port", defport); 358 /* Change tls:// to tcp://. */ 365 bcopy("tcp://", saddr, 6); 370 bcopy("tcp://", daddr, 6); 373 if (proto_connect(saddr, daddr, timeout, &tcp) == -1) 402 tcpfd = proto_descriptor(tcp); 486 proto_get("tls:fingerprint"), proto_get("tcp:port"), timeoutstr, 611 struct proto_conn *tcp; local 710 tls_call_exec_server(struct proto_conn *sock, struct proto_conn *tcp) argument 776 struct proto_conn *sock, *tcp; local [all...] |
/freebsd-9.3-release/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 84 tcphdr_t *tcp = NULL; 288 | tcp tcpline 320 tcp: IL_TCP { new_tcpheader(); } label 1010 tcp = (tcphdr_t *)new_header(IPPROTO_TCP); 1011 tcp->th_win = htons(4096); 1012 tcp->th_off = sizeof(*tcp) >> 2; 1026 port = &tcp->th_sport; 1046 port = &tcp->th_dport; 1059 tcp [all...] |
/freebsd-9.3-release/contrib/ipfilter/ipsend/ |
H A D | slinux.c | 28 #include <netinet/tcp.h>
|
H A D | sockraw.c | 24 #include <netinet/tcp.h>
|
/freebsd-9.3-release/contrib/ipfilter/rules/ |
H A D | BASIC_2.FW | 59 pass in log quick proto tcp all flags S/SA keep state group 200 70 block return-rst in log proto tcp from any to any flags S/SA group 100
|
/freebsd-9.3-release/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 71 u_int tcp, u_int iphlen) 96 if (tcp) { 101 ND("tcp seq %u", be32toh(tcph->seq)); 219 u_int tcp = ((vh->gso_type & ~VIRTIO_NET_HDR_GSO_ECN) local 245 if (tcp) { 294 tcp, iphlen); 69 gso_fix_segment(uint8_t *buf, size_t len, u_int idx, u_int segmented_bytes, u_int last_segment, u_int tcp, u_int iphlen) argument
|
/freebsd-9.3-release/contrib/traceroute/ |
H A D | traceroute.c | 223 #include <netinet/tcp.h> 427 "tcp", 1405 struct tcphdr *const tcp = (struct tcphdr *) outp; local 1407 tcp->th_sport = htons(ident); 1408 tcp->th_dport = htons(port + (fixedPort ? 0 : outdata->seq)); 1409 tcp->th_seq = (tcp->th_sport << 16) | tcp->th_dport; 1410 tcp->th_ack = 0; 1411 tcp 1424 struct tcphdr *const tcp = (struct tcphdr *) data; local [all...] |