This is a low-level network debugging utility that utilizes raw packet i/o to construct and deconstruct tcp, udp, ipv4, arp, and icmp packets over ethernet.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

tcp.h File Reference

tcp.h File Reference

TCP segment header. More...

Go to the source code of this file.

Data Structures

struct  TCP_SegmentHeader
 TCP Segment memory map. More...

Functions

void fix_endian_tcp (TCP_SegmentHeader *segment)
 Convert from wire to host or host to wire endianness.
void print_tcp (TCP_SegmentHeader *segment)
 Print the TCP segment header.
u16 pseudo_header_checksum (IP_Address source, IP_Address destination, u16 length)
 Compute the pseudo header checksum with the given source, destination, and length.

Detailed Description

TCP segment header.

This file contains the memory map and associated functions for TCP segment header creation and deconstruction.

Definition in file tcp.h.


Function Documentation

void fix_endian_tcp ( TCP_SegmentHeader segment )

Convert from wire to host or host to wire endianness.

Definition at line 44 of file tcp.h.

void print_tcp ( TCP_SegmentHeader segment )

Print the TCP segment header.

Definition at line 59 of file tcp.h.

u16 pseudo_header_checksum ( IP_Address  source,
IP_Address  destination,
u16  length 
)

Compute the pseudo header checksum with the given source, destination, and length.

Definition at line 78 of file tcp.h.