diff options
author | Patrick McHardy <kaber@trash.net> | 2013-04-15 16:16:04 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2013-04-18 15:28:13 +0200 |
commit | a711ab22a58504e52c33f5fd939643002d7e6a81 (patch) | |
tree | 1ca81a9f77b5ffef348e49964f68cafbd1023317 /include | |
parent | 2d148c5311cc4fa5d2f7b0c439dd051abcafa9ab (diff) |
types: add ethernet address type
Add a new type for ethernet addresses. This is needed since for concatenations
we need fixed sized data types, the generic link layer address doesn't have
a fixed length.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/datatype.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h index aa270c0e..53889934 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -12,6 +12,7 @@ * @TYPE_LLADDR: link layer address (integer subtype) * @TYPE_IPADDR: IPv4 address (integer subtype) * @TYPE_IP6ADDR: IPv6 address (integer subtype) + * @TYPE_ETHERADDR: Ethernet address (lladdr subtype) * @TYPE_ETHERTYPE: EtherType (integer subtype) * @TYPE_ARPOP: ARP operation (integer subtype) * @TYPE_INET_PROTOCOL: internet protocol (integer subtype) @@ -41,6 +42,7 @@ enum datatypes { TYPE_LLADDR, TYPE_IPADDR, TYPE_IP6ADDR, + TYPE_ETHERADDR, TYPE_ETHERTYPE, TYPE_ARPOP, TYPE_INET_PROTOCOL, @@ -158,6 +160,7 @@ extern const struct datatype string_type; extern const struct datatype lladdr_type; extern const struct datatype ipaddr_type; extern const struct datatype ip6addr_type; +extern const struct datatype etheraddr_type; extern const struct datatype ethertype_type; extern const struct datatype arphrd_type; extern const struct datatype inet_protocol_type; |