#include <icmp.h>
Inheritance diagram for usipp::ICMP:

Public Methods | |
| ICMP (const char*) | |
| virtual | ~ICMP () |
| ICMP (const ICMP &) | |
| ICMP& | operator= (const ICMP &) |
| virtual int | sendpack (void*, size_t) |
| virtual int | sendpack (char*) |
| virtual int | sniffpack (void*, size_t) |
| virtual int | init_device (char *, int, size_t) |
| int | set_type (u_int8_t) |
| int | set_code (u_int8_t) |
| int | set_icmpId (u_int16_t) |
| int | set_seq (u_int16_t) |
| int | set_gateway (u_int32_t) |
| int | set_mtu (u_int16_t) |
| u_int8_t | get_type () |
| u_int8_t | get_code () |
| u_int16_t | get_icmpId () |
| u_int16_t | get_seq () |
| u_int32_t | get_gateway () |
| u_int16_t | get_mtu () |
|
|
Expects host. |
|
|
Copy-Construktor |
|
|
Get ICMP-code. |
|
|
Get the id field from actuall ICMP-packet. |
|
|
Get the sequence-number of actuall ICMP-packet |
|
|
Get the type-field from the actuall ICMP-packet. |
|
|
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 usipp::IP. |
|
|
Assign-operator |
|
|
send a ICMP-packet with string 'payload' as payload. Reimplemented from usipp::IP. |
|
|
send an ICMP-packet containing 'payload' which is 'paylen' bytes long Reimplemented from usipp::IP. |
|
|
Set ICMP-code. |
|
|
Set id field in the actuall ICMP-packet |
|
|
Set the sequecenumber of the actuall ICMP-packet. |
|
|
Set the type-field in the actuall ICMP-packet. |
|
|
handle packets, that are NOT actually for the local adress! Reimplemented from usipp::IP. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000