From a711ab22a58504e52c33f5fd939643002d7e6a81 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Mon, 15 Apr 2013 16:16:04 +0200 Subject: 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 --- include/datatype.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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; -- cgit v1.2.3