author | mickeyl <mickeyl> | 2003-05-04 20:38:24 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-04 20:38:24 (UTC) |
commit | 09dceae91b14a4b2d936ebfc6c7c276686c2b98c (patch) (unidiff) | |
tree | b8ebc6f92ca0008a90ef036c3c5ba873a2f59670 /libopie2/opienet/opcap.h | |
parent | 8409a251d52b59585889e1bcaa278a6b847db2fc (diff) | |
download | opie-09dceae91b14a4b2d936ebfc6c7c276686c2b98c.zip opie-09dceae91b14a4b2d936ebfc6c7c276686c2b98c.tar.gz opie-09dceae91b14a4b2d936ebfc6c7c276686c2b98c.tar.bz2 |
add parsing of ARP packets
-rw-r--r-- | libopie2/opienet/opcap.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h index bee0ca0..5a50d9b 100644 --- a/libopie2/opienet/opcap.h +++ b/libopie2/opienet/opcap.h | |||
@@ -438,6 +438,30 @@ class OIPPacket : public QObject | |||
438 | }; | 438 | }; |
439 | 439 | ||
440 | /*====================================================================================== | 440 | /*====================================================================================== |
441 | * OARPPacket | ||
442 | *======================================================================================*/ | ||
443 | |||
444 | class OARPPacket : public QObject | ||
445 | { | ||
446 | Q_OBJECT | ||
447 | |||
448 | public: | ||
449 | OARPPacket( const unsigned char*, const struct myarphdr*, QObject* parent = 0 ); | ||
450 | virtual ~OARPPacket(); | ||
451 | |||
452 | QHostAddress senderIPV4Address() const; | ||
453 | OMacAddress senderMacAddress() const; | ||
454 | QHostAddress targetIPV4Address() const; | ||
455 | OMacAddress targetMacAddress() const; | ||
456 | |||
457 | //int type() const; | ||
458 | QString type() const; | ||
459 | |||
460 | private: | ||
461 | const struct myarphdr* _arphdr; | ||
462 | }; | ||
463 | |||
464 | /*====================================================================================== | ||
441 | * OUDPPacket | 465 | * OUDPPacket |
442 | *======================================================================================*/ | 466 | *======================================================================================*/ |
443 | 467 | ||