#include <usi++.h>
Class diagram for TCP:
Get the sourceport in human-readable form.
Get the destinationport in human-readable form.
Get TCP-sequencenumber
Get the actual achnkowledge-number from the TCP-header.
Set TCP-flags
Get TCP-header checksum
Set the sequencenumber-filed in the TCP-header.
Set the acknowledgenumber-filed in the TCP-header. This is only monitored by the target-kernel, if TH_ACK is set in the TCP-flags.
Set TCP-flags
Set TCP-checksum. Calling this function with s != 0 will prevent sendpack from calculating the checksum!!!
[virtual]
Receive a TCP-packet, destinated for this host.
Reimplemented from IP.
[virtual]
[virtual]
[virtual]
Initialize a device ("eth0" for example) for packet- capturing. It MUST be called before sniffpack() is launched. Set 'promisc' to 1 if you want the device running in promiscous mode. Fetch at most 'snaplen' bytes per call.
Reimplemented from Datalink.