Home
last modified time | relevance | path

Searched refs:tcphdr (Results 1 – 10 of 10) sorted by relevance

/openthread-3.5.0/third_party/tcplp/bsdtcp/
Dtcp_timewait.c123 struct tcphdr* nth; in tcp_twrespond()
145 if (otMessageSetLength(message, sizeof(struct tcphdr) + optlen) != OT_ERROR_NONE) { in tcp_twrespond()
150 char outbuf[sizeof(struct tcphdr) + optlen]; in tcp_twrespond()
151 nth = (struct tcphdr*) &outbuf[0]; in tcp_twrespond()
161 nth->th_off_x2 = ((sizeof(struct tcphdr) + optlen) >> 2) << TH_OFF_SHIFT; in tcp_twrespond()
168 otMessageWrite(message, 0, outbuf, sizeof(struct tcphdr) + optlen); in tcp_twrespond()
309 tcp_twcheck(struct tcpcb* tp, struct tcphdr *th, int tlen) in tcp_twcheck()
Dtcp_subr.c228 struct tcphdr *th = (struct tcphdr *)tcp_ptr; in tcpip_fillheaders()
294 tcp_respond(struct tcpcb *tp, otInstance* instance, struct ip6_hdr* ip6gen, struct tcphdr *thgen, in tcp_respond()
301 if (otMessageSetLength(message, sizeof(struct tcphdr)) != OT_ERROR_NONE) { in tcp_respond()
306 struct tcphdr th; in tcp_respond()
307 struct tcphdr* nth = &th; in tcp_respond()
327 nth->th_off_x2 = (sizeof(struct tcphdr) >> 2) << TH_OFF_SHIFT; in tcp_respond()
336 otMessageWrite(message, 0, &th, sizeof(struct tcphdr)); in tcp_respond()
Dtcp.h51 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
57 struct tcphdr { struct
170 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
Dtcp_var.h130 struct tcphdr tt_t;
390 tcp_respond(struct tcpcb *tp, otInstance* instance, struct ip6_hdr* ip6gen, struct tcphdr *thgen,
393 void cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type);
585 tcp_fields_to_host(struct tcphdr *th) in tcp_fields_to_host()
596 int tcp_twcheck(struct tcpcb*, struct tcphdr *, int);
597 void tcp_dropwithreset(struct ip6_hdr* ip6, struct tcphdr *th, struct tcpcb *tp, otInstance* instan…
599 int tcp_input(struct ip6_hdr* ip6, struct tcphdr* th, otMessage* msg, struct tcpcb* tp, struct tcpc…
607 int tcp_reass(struct tcpcb *, struct tcphdr *, int *, otMessage *, off_t, struct tcplp_signals*);
614 void tcp_sack_partialack(struct tcpcb *, struct tcphdr *);
Dtcp_input.c105 tcp_do_segment(struct ip6_hdr* ip6, struct tcphdr *th, otMessage* msg,
110 static void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *);
116 cc_ack_received(struct tcpcb *tp, struct tcphdr *th, uint16_t type) in cc_ack_received()
222 cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type) in cc_cong_signal()
292 cc_post_recovery(struct tcpcb *tp, struct tcphdr *th) in cc_post_recovery()
324 cc_ecnpkt_handler(struct tcpcb *tp, struct tcphdr *th, uint8_t iptos) in cc_ecnpkt_handler()
401 tcp_dropwithreset(struct ip6_hdr* ip6, struct tcphdr *th, struct tcpcb *tp, otInstance* instance, in tcp_dropwithreset()
438 tcp_input(struct ip6_hdr* ip6, struct tcphdr* th, otMessage* msg, struct tcpcb* tp, struct tcpcb_li… in tcp_input()
494 if (off < sizeof (struct tcphdr) || off > tlen) { in tcp_input()
500 if (off > sizeof (struct tcphdr)) { in tcp_input()
[all …]
Dtcp_output.c113 struct tcphdr* th = NULL; in tcp_output()
716 hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr); in tcp_output()
962 if (otMessageSetLength(message, sizeof(struct tcphdr) + optlen + len) != OT_ERROR_NONE) { in tcp_output()
990 size_t message_offset = otMessageGetOffset(message) + sizeof(struct tcphdr) + optlen; in tcp_output()
1018 char outbuf[sizeof(struct tcphdr) + TCP_MAXOLEN]; in tcp_output()
1019 th = (struct tcphdr*) (&outbuf[0]); in tcp_output()
1130 th->th_off_x2 = ((sizeof (struct tcphdr) + optlen) >> 2) << TH_OFF_SHIFT; in tcp_output()
1214 otMessageWrite(message, 0, outbuf, sizeof(struct tcphdr) + optlen); in tcp_output()
Dtcp_const.h54 #define MSS_6LOWPAN ((FRAMES_PER_SEG * FRAMECAP_6LOWPAN) - IP6HDR_SIZE - sizeof(struct tcphdr))
Dtcp_reass.c54 tcp_reass(struct tcpcb* tp, struct tcphdr* th, int* tlenp, otMessage* data, off_t data_offset, stru… in tcp_reass()
121 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m)
Dtcp_sack.c550 tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th) in tcp_sack_partialack()
/openthread-3.5.0/src/core/net/
Dtcp6.cpp640 struct tcphdr *tcpHeader; in HandleMessage()
653 …SuccessOrExit(error = aMessage.Read(aMessage.GetOffset() + offsetof(struct tcphdr, th_off_x2), hea… in HandleMessage()
655 VerifyOrExit(headerSize >= sizeof(struct tcphdr) && headerSize <= sizeof(header) && in HandleMessage()
662 tcpHeader = reinterpret_cast<struct tcphdr *>(&header[0]); in HandleMessage()