Home
last modified time | relevance | path

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

/external/syslinux/gpxe/src/net/
Dtcp.c396 struct tcp_header *tcphdr; in tcp_xmit() local
481 tcphdr = iob_push ( iobuf, sizeof ( *tcphdr ) ); in tcp_xmit()
482 memset ( tcphdr, 0, sizeof ( *tcphdr ) ); in tcp_xmit()
483 tcphdr->src = tcp->local_port; in tcp_xmit()
484 tcphdr->dest = tcp->peer.st_port; in tcp_xmit()
485 tcphdr->seq = htonl ( tcp->snd_seq ); in tcp_xmit()
486 tcphdr->ack = htonl ( tcp->rcv_ack ); in tcp_xmit()
487 tcphdr->hlen = ( ( payload - iobuf->data ) << 2 ); in tcp_xmit()
488 tcphdr->flags = flags; in tcp_xmit()
489 tcphdr->win = htons ( tcp->rcv_win ); in tcp_xmit()
[all …]
/external/syslinux/core/lwip/src/core/
Dtcp_in.c63 static struct tcp_hdr *tcphdr; variable
109 tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4); in tcp_input()
112 tcp_debug_print(tcphdr); in tcp_input()
144 tcp_debug_print(tcphdr); in tcp_input()
156 hdrlen = TCPH_HDRLEN(tcphdr); in tcp_input()
168 tcphdr->src = ntohs(tcphdr->src); in tcp_input()
169 tcphdr->dest = ntohs(tcphdr->dest); in tcp_input()
170 seqno = tcphdr->seqno = ntohl(tcphdr->seqno); in tcp_input()
171 ackno = tcphdr->ackno = ntohl(tcphdr->ackno); in tcp_input()
172 tcphdr->wnd = ntohs(tcphdr->wnd); in tcp_input()
[all …]
Dtcp_out.c95 struct tcp_hdr *tcphdr; in tcp_output_alloc_header() local
100 tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_alloc_header()
101 tcphdr->src = htons(pcb->local_port); in tcp_output_alloc_header()
102 tcphdr->dest = htons(pcb->remote_port); in tcp_output_alloc_header()
103 tcphdr->seqno = seqno_be; in tcp_output_alloc_header()
104 tcphdr->ackno = htonl(pcb->rcv_nxt); in tcp_output_alloc_header()
105 TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), TCP_ACK); in tcp_output_alloc_header()
106 tcphdr->wnd = htons(pcb->rcv_ann_wnd); in tcp_output_alloc_header()
107 tcphdr->chksum = 0; in tcp_output_alloc_header()
108 tcphdr->urgp = 0; in tcp_output_alloc_header()
[all …]
Dtcp.c1510 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print() argument
1515 ntohs(tcphdr->src), ntohs(tcphdr->dest))); in tcp_debug_print()
1518 ntohl(tcphdr->seqno))); in tcp_debug_print()
1521 ntohl(tcphdr->ackno))); in tcp_debug_print()
1524 TCPH_HDRLEN(tcphdr), in tcp_debug_print()
1525 TCPH_FLAGS(tcphdr) >> 5 & 1, in tcp_debug_print()
1526 TCPH_FLAGS(tcphdr) >> 4 & 1, in tcp_debug_print()
1527 TCPH_FLAGS(tcphdr) >> 3 & 1, in tcp_debug_print()
1528 TCPH_FLAGS(tcphdr) >> 2 & 1, in tcp_debug_print()
1529 TCPH_FLAGS(tcphdr) >> 1 & 1, in tcp_debug_print()
[all …]
/external/android-clat/
Ddump.h25 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip,
33 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6,
Ddump.c165 void dump_tcp_generic(const struct tcphdr *tcp, const uint8_t *options, size_t options_size, uint32… in dump_tcp_generic()
168 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic()
206 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, in dump_tcp()
216 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, in dump_tcp6()
Dtranslate.h78 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp,
83 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp,
Dtranslate.c367 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, in tcp_packet()
372 if(len < sizeof(struct tcphdr)) { in tcp_packet()
444 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, in tcp_translate()
447 struct tcphdr *tcp_targ = out[pos].iov_base; in tcp_translate()
Dipv4.c128 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum, in ipv4_packet()
Dipv6.c160 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum, in ipv6_packet()
Dclatd_test.cpp548 return ((struct tcphdr *) payload)->check; in get_transport_checksum()
/external/tcpdump/
Dprint-tcp.c59 const struct ip *ip, const struct tcphdr *tp,
142 register const struct tcphdr *tp, in tcp_cksum()
152 register const struct tcphdr *tp, in tcp6_cksum()
164 register const struct tcphdr *tp; in tcp_print()
176 tp = (const struct tcphdr *)bp; in tcp_print()
835 const struct ip *ip, const struct tcphdr *tp, in tcp_verify_signature()
838 struct tcphdr tp1; in tcp_verify_signature()
894 MD5_Update(&ctx, (const char *)&tp1, sizeof(struct tcphdr)); in tcp_verify_signature()
Dprint-sl.c159 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print()
252 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print()
Dtcp.h41 struct tcphdr { struct
/external/iproute2/include/linux/
Dtcp.h24 struct tcphdr { struct
65 struct tcphdr hdr; argument
/external/iproute2/include/netinet/
Dtcp.h63 struct tcphdr struct
90 struct tcphdr argument
/external/syslinux/core/lwip/src/include/lwip/
Dtcp_impl.h185 #define TCP_TCPLEN(seg) ((seg)->len + ((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0))
296 struct tcp_hdr *tcphdr; /* the TCP header */ member
447 void tcp_debug_print(struct tcp_hdr *tcphdr);
453 # define tcp_debug_print(tcphdr) argument
/external/kernel-headers/original/uapi/linux/
Dtcp.h24 struct tcphdr { struct
65 struct tcphdr hdr; argument
/external/syslinux/core/lwip/src/netif/
Dundiif.c343 struct tcp_hdr *tcphdr; in snprintf_tcp_hdr() local
347 tcphdr = (struct tcp_hdr *)((void *)iphdr + (IPH_HL(iphdr) << 2)); in snprintf_tcp_hdr()
348 u16_t lenfl = ntohs(tcphdr->_hdrlen_rsvd_flags); in snprintf_tcp_hdr()
352 ntohs(tcphdr->src), ntohs(tcphdr->dest), in snprintf_tcp_hdr()
353 ntohl(tcphdr->seqno), ntohl(tcphdr->ackno), in snprintf_tcp_hdr()
354 lenfl, ntohs(tcphdr->chksum), in snprintf_tcp_hdr()
/external/syslinux/gpxe/src/include/
Dold_tcp.h20 struct tcphdr { struct
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_osf.h86 struct tcphdr tcp;
/external/iptables/include/linux/netfilter/
Dxt_osf.h85 struct tcphdr tcp;
/external/iptables/utils/
Dnfsynproxy.c30 const struct tcphdr *th = (void *)iph + iph->ihl * 4; in parse_packet()
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
D2009-04-29-LinearScanBug.ll27 %23 = type { %struct.tcphdr* }
101 %struct.tcphdr = type { i16, i16, i32, i32, i8, i8, i16, i16, i16 }
/external/llvm/test/CodeGen/X86/
D2009-04-29-LinearScanBug.ll27 %23 = type { %struct.tcphdr* }
101 %struct.tcphdr = type { i16, i16, i32, i32, i8, i8, i16, i16, i16 }