1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 11:41:35 +01:00

Added RSN constructor from buffer. It's working.

This commit is contained in:
Matias Fontanini
2011-08-30 19:40:39 -03:00
parent 33d0f42d24
commit e4dae4c024
4 changed files with 39 additions and 3 deletions

View File

@@ -29,6 +29,7 @@
#include "utils.h"
#include "arp.h"
#include "ip.h"
#include "eapol.h"
Tins::SNAP::SNAP(PDU *child) : PDU(0xff, child) {
@@ -50,6 +51,9 @@ Tins::SNAP::SNAP(const uint8_t *buffer, uint32_t total_sz) : PDU(0xff) {
case ETHERTYPE_ARP:
inner_pdu(new Tins::ARP(buffer, total_sz));
break;
case 0x888e:
inner_pdu(Tins::EAPOL::from_bytes(buffer, total_sz));
break;
};
}