Namespaces   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members   Examples  

ARP Class Reference

RFC826, the adress resolution protocol. More...

Class diagram for ARP:

Datalink

List of all members.

Public Members


Detailed Description

RFC826, the adress resolution protocol.

class ARP usi++.h

Examples:
arpw.cc.

Member Function Documentation

ARP::ARP (char * dev, int promisc)

Open device 'dev' for packet-capturing (ARP-packets) ARP-objects don't need to call init_device().

char * ARP::get_sha (char * hwaddr, int len)

Return the source-hardware-adress of a ARP-packet

Examples:
arpw.cc.

char * ARP::get_tha (char * hwaddr, int len)

Return the destination-hardware-adress.

char * ARP::get_spa (int r, char * pa, int len)

Get source protocol-adress.

Examples:
arpw.cc.

char * ARP::get_tpa (int r, char * pa, int len)

Get target protocol-adress. Only IP is supportet yet!

Examples:
arpw.cc.

int ARP::get_op ()

Return the ARP-command.

Examples:
arpw.cc.

int ARP::sniffpack () [virtual]

Sniff for an ARP-request/reply ...

Examples:
arpw.cc.

The documentation for this class was generated from the following file:
Generated at Sun Oct 10 13:51:35 1999 for libusi++ by doxygen  written by Dimitri van Heesch, © 1997-1999