[Click] Where are packet types used by Classifier element defined?

Bart Braem bart.braem at ua.ac.be
Wed Jun 29 04:47:03 EDT 2005


Op woensdag 29 juni 2005 01:15, schreef betamaz:
> When using the Classifier element where are the offset/value(s) defined? I
> found that include/clicknet/ether.h specifies the packet type using the
> values:
>
> #define ETHERTYPE_IP 0x0800
> #define ETHERTYPE_ARP 0x0806
> #define ETHERTYPE_8021Q 0x8100
> #define ETHERTYPE_IP6 0x86DD
>
Those are just macros to make things easier.

> But, I dont know how the offset is determined. For example in Classifier
> documentation we have
> Classifier(12/0806 20/0001,
> 12/0806 20/0002,
> 12/0800,
> -);
>
>
> So 0806 stands for ARP packets and im guessing the 12 is defined in
> include/clicknet/ip.h.

No it is not, it is defined in the ARP RFC. Click elements like these ones 
follow the RFCs. 

Bart


More information about the click mailing list