Searched refs:tcphdr (Results 1 - 25 of 110) sorted by relevance

12345

/freebsd-10.0-release/sys/netinet/
H A Dtoecore.h37 struct tcphdr;
124 void toe_syncache_add(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
126 int toe_syncache_expand(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
129 int toe_4tuple_check(struct in_conninfo *, struct tcphdr *, struct ifnet *);
H A Dtcp_syncache.h41 void syncache_unreach(struct in_conninfo *, struct tcphdr *);
43 struct tcphdr *, struct socket **, struct mbuf *);
45 struct tcphdr *, struct inpcb *, struct socket **, struct mbuf *,
47 void syncache_chkrst(struct in_conninfo *, struct tcphdr *);
H A Dtcp_debug.h54 struct tcphdr th;
H A Dtcpip.h41 struct tcphdr ti_t; /* tcp header */
H A Dtcp.h44 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
50 struct tcphdr { struct
116 * For IPv6 the MSS is IPV6_MMTU - sizeof(struct ip6_hdr) - sizeof(struct tcphdr)
147 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
H A Dtcp_var.h53 struct tcphdr *tqe_th; /* a pointer to tcp header */
81 struct tcphdr tt_t;
546 struct tcphdr *th;
664 char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *,
666 char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, void *,
668 int tcp_reass(struct tcpcb *, struct tcphdr *, int *, struct mbuf *);
690 struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int);
696 int tcp_twcheck(struct inpcb *, struct tcpopt *, struct tcphdr *,
703 struct tcphdr *, u_int);
711 void tcp_trace(short, short, struct tcpcb *, void *, struct tcphdr *, in
[all...]
H A Dtcp_timewait.c352 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
509 struct tcphdr *th = NULL;
537 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
539 th = (struct tcphdr *)(ip6 + 1);
550 th = (struct tcphdr *)(ip + 1);
574 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
578 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
583 sizeof(struct tcphdr) + optlen, IPPROTO_TCP, 0);
596 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP));
H A Dtcp_lro.c113 tcp_lro_csum_th(struct tcphdr *th)
135 tcp_lro_rx_csum_fixup(struct lro_entry *le, void *l3hdr, struct tcphdr *th,
220 struct tcphdr *th;
232 th = (struct tcphdr *)(ip6 + 1);
263 th = (struct tcphdr *)(ip4 + 1);
311 struct tcphdr **th)
321 *th = (struct tcphdr *)(ip6 + 1);
330 struct tcphdr **th)
362 *th = (struct tcphdr *)(ip4 + 1);
379 struct tcphdr *t
[all...]
H A Dtcp_input.c223 static void tcp_do_segment(struct mbuf *, struct tcphdr *,
226 static void tcp_dropwithreset(struct mbuf *, struct tcphdr *,
229 struct tcphdr *, struct mbuf *, int);
231 static void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *);
232 static void inline tcp_fields_to_host(struct tcphdr *);
234 static void inline tcp_fields_to_net(struct tcphdr *);
236 int, struct tcpopt *, struct tcphdr *, u_int);
238 static void inline cc_ack_received(struct tcpcb *tp, struct tcphdr *th,
241 static void inline cc_post_recovery(struct tcpcb *tp, struct tcphdr *th);
243 struct tcphdr *t
[all...]
H A Dtcp_subr.c231 static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
413 #define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
459 struct tcphdr *th = (struct tcphdr *)tcp_ptr;
473 ip6->ip6_plen = htons(sizeof(struct tcphdr));
543 tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
549 struct tcphdr *nth;
590 nth = (struct tcphdr *)(ip6 + 1);
596 nth = (struct tcphdr *)(ip + 1);
598 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr));
[all...]
H A Dtcp_debug.c98 struct tcphdr *th, int req)
184 len -= sizeof (struct tcphdr);
/freebsd-10.0-release/usr.sbin/ppp/
H A Dtcpmss.c73 #define MAXMSS(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr) - 12)
99 MSSFixup(struct tcphdr *tc, size_t pktlen, u_int16_t maxmss)
109 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen)
116 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
163 plen >= sizeof(struct tcphdr) + hlen)
164 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen,
H A Dslcompress.c165 register struct tcphdr *oth;
166 register struct tcphdr *th;
183 th = (struct tcphdr *) & ((int *) ip)[hlen];
265 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen];
435 register struct tcphdr *th;
455 if ((int)(hlen + sizeof(struct tcphdr)) > len)
457 th = (struct tcphdr *) & ((char *) ip)[hlen];
502 th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen];
/freebsd-10.0-release/sys/netgraph/
H A Dng_tcpmss.c79 static int correct_mss(struct tcphdr *, int, uint16_t, int);
271 struct tcphdr *tcp;
318 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr));
320 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
324 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
328 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr))
334 M_CHECK(tcphlen - sizeof(struct tcphdr));
336 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
410 correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags)
418 for (olen = hlen - sizeof(struct tcphdr), op
[all...]
/freebsd-10.0-release/cddl/lib/libdtrace/
H A Dtcp.d141 struct tcphdr *tcp_hdr; /* raw TCP header */
160 struct tcphdr *tcp_hdr; /* raw TCP header */
206 translator tcpinfo_t < struct tcphdr *p > {
216 tcp_hdr = (struct tcphdr *)p;
225 translator tcpinfoh_t < struct tcphdr *p > {
235 tcp_hdr = (struct tcphdr *)p;
/freebsd-10.0-release/sys/netinet/libalias/
H A Dalias_pptp.c308 struct tcphdr *tc;
348 tc = (struct tcphdr *)ip_next(pip);
380 struct tcphdr *tc;
420 tc = (struct tcphdr *)ip_next(pip);
442 struct tcphdr *tc;
445 tc = (struct tcphdr *)ip_next(pip);
H A Dalias_skinny.c211 struct tcphdr *tc, struct alias_link *lnk,
230 struct ip *pip, struct tcphdr *tc,
254 struct tcphdr *tc, struct alias_link *lnk,
272 struct ip *pip, struct tcphdr *tc,
306 struct tcphdr *tc;
313 tc = (struct tcphdr *)ip_next(pip);
H A Dalias_util.c110 struct tcphdr *tc;
117 tc = (struct tcphdr *)ip_next(pip);
H A Dalias_ftp.c231 struct tcphdr *tc;
235 tc = (struct tcphdr *)ip_next(pip);
296 struct tcphdr *tc;
299 tc = (struct tcphdr *)ip_next(pip);
667 struct tcphdr *tc;
675 tc = (struct tcphdr *)ip_next(pip);
745 tc = (struct tcphdr *)ip_next(pip);
H A Dalias_smedia.c241 struct tcphdr *tc;
253 tc = (struct tcphdr *)ip_next(pip);
407 tc = (struct tcphdr *)ip_next(pip);
440 struct tcphdr *tc;
462 tc = (struct tcphdr *)ip_next(pip);
485 struct tcphdr *tc;
494 tc = (struct tcphdr *)ip_next(pip);
/freebsd-10.0-release/sys/net/
H A Dslcompress.c163 register struct tcphdr *oth;
164 register struct tcphdr *th;
179 th = (struct tcphdr *)&((int32_t *)ip)[hlen];
258 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
473 register struct tcphdr *th;
493 if (hlen + sizeof(struct tcphdr) > buflen)
495 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2;
534 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
/freebsd-10.0-release/contrib/tcpdump/
H A Dtcp.h42 struct tcphdr { struct
H A Dprint-sl.c148 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]);
238 hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]);
/freebsd-10.0-release/sys/contrib/octeon-sdk/
H A Dcvmip.h121 cvmip_tcp_hdr_t tcphdr; member in union:__anon6760
/freebsd-10.0-release/sys/dev/sfxge/
H A Dsfxge_rx.h96 struct tcphdr *th_last;

Completed in 274 milliseconds

12345