#include <tcp.h>
Inheritance diagram for usipp::TCP:

Public Methods | |
| TCP (const char*) | |
| virtual | ~TCP () |
| TCP& | operator= (const TCP&) |
| TCP (const TCP&) | |
| u_int16_t | get_srcport () |
| u_int16_t | get_dstport () |
| u_int32_t | get_seq () |
| u_int32_t | get_ack () |
| u_int8_t | get_off () |
| u_int8_t | get_flags () |
| u_int16_t | get_win () |
| u_int16_t | get_tcpsum () |
| u_int16_t | get_urg () |
| int | set_srcport (u_int16_t) |
| int | set_dstport (u_int16_t) |
| int | set_seq (u_int32_t) |
| int | set_ack (u_int32_t) |
| int | set_off (u_int8_t) |
| int | set_flags (u_int8_t) |
| int | set_win (u_int16_t) |
| int | set_tcpsum (u_int16_t) |
| int | set_urg (u_int16_t) |
| tcphdr | get_tcphdr () |
| virtual int | sniffpack (void *buf, size_t buflen) |
| virtual int | sendpack (void *payload, size_t paylen) |
| virtual int | sendpack (char *pay_string) |
| virtual int | init_device (char *, int, size_t) |
| int | set_tcpopt (char kind, unsigned char len, union tcp_options t) |
| int | reset_tcpopt () |
| int | get_tcpopt (char *) |
|
|
Expects hostname or IP-adress. |
|
|
Destructor |
|
|
Copy-constructor |
|
|
Get acknowlegde-number of packet. |
|
|
Get destination-port in host-order |
|
|
Get TCP-flags. Can be either of TH_SYN TH_ACK TH_FIN TH_RST TH_PUSH TH_URG or any combination of these (althought common combinations are SYN|ACK or similar) |
|
|
Get TCP-data offset, sometimes called TCP-header-length. Should be 20 in most cases. |
|
|
Get sequencenumber of packet. |
|
|
Get sourceport of packet, in host-order. |
|
|
Return complete TCP header. Usefull for some kinds of ICMP messages |
|
|
Fill buffer with 20 bytes, return the length of option-field. |
|
|
Just sets filter to TCP and calls Datalink::initdevice() Reimplemented from usipp::IP. |
|
|
Assign-operator |
|
|
Clear header from all options |
|
|
Send a string. Reimplemented from usipp::IP. |
|
|
Send a packet. Reimplemented from usipp::IP. |
|
|
Set destination-port |
|
|
Set source-port |
|
|
Set a TCP-option of kind |
|
|
Set TCP-checksum. Doing these will prevent sendpack() from doing this for you. It's not recommented that you do so, coz the sum will almost be weak. |
|
|
Capture a packet from the net. Reimplemented from usipp::IP. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000