#include <Layer2.h>
Inheritance diagram for usipp::Layer2:

Public Methods | |
| Layer2 (RX *r = NULL, TX *t = NULL) | |
| virtual | ~Layer2 () |
| virtual int | sniffpack (void *, size_t) |
| virtual int | sendpack (void *buf, size_t len, struct sockaddr *) |
| virtual int | init_device (char *dev, int promisc, size_t snaplen) |
| int | setfilter (char *f) |
| int | timeout (struct timeval) |
| bool | timeout () |
| TX* | register_tx (TX *t) |
| RX* | register_rx (RX *r) |
| TX* | tx () |
| RX* | rx () |
|
|
Give us a Layer 2! Default to Raw IP sockets and pcap packet capturing. This MUST NOT be. You could also say you want to use ethertap devices etc. |
|
|
Initialize a device for packet capturing Reimplemented in usipp::ICMP, usipp::IP, usipp::TCP, and usipp::UDP. |
|
|
register a new capturer, return the old |
|
|
register a new transmitter, return the old |
|
|
return current RX object |
|
|
Send a packet |
|
|
Set a filter rule |
|
|
Actually, capture a packet Reimplemented in usipp::ICMP, usipp::IP, usipp::TCP, and usipp::UDP. |
|
|
return was timeout? |
|
|
Set a timeout |
|
|
return current TX object |
1.2.3 written by Dimitri van Heesch,
© 1997-2000