Arp is not IPv4
This commit is contained in:
parent
e0f828fe3e
commit
26605a43e7
3 changed files with 10 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ parser MyParser(packet_in packet,
|
|||
transition select(hdr.ethernet.ethertype){
|
||||
TYPE_IPV4: ipv4;
|
||||
TYPE_IPV6: ipv6;
|
||||
TYPE_ARP: arp;
|
||||
|
||||
default: accept;
|
||||
}
|
||||
|
|
@ -91,6 +92,11 @@ parser MyParser(packet_in packet,
|
|||
transition accept;
|
||||
}
|
||||
|
||||
state arp {
|
||||
packet.extract(hdr.arp);
|
||||
transition accept;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue