From cc2316f37085fe013a120ddd8121fa0edf778ec4 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sun, 13 Apr 2014 12:58:25 +0200 Subject: datatypes: rename some types for more consistency Add some more consistency by using _addr for all address types, _proto for all protocol types and iface_ for all interface types. Signed-off-by: Patrick McHardy --- src/meta.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/meta.c') diff --git a/src/meta.c b/src/meta.c index ebc0c541..173040ef 100644 --- a/src/meta.c +++ b/src/meta.c @@ -160,8 +160,8 @@ static struct error_record *ifindex_type_parse(const struct expr *sym, static const struct datatype ifindex_type = { .type = TYPE_IFINDEX, - .name = "ifindex", - .desc = "interface index", + .name = "iface_index", + .desc = "network interface index", .byteorder = BYTEORDER_HOST_ENDIAN, .size = 4 * BITS_PER_BYTE, .basetype = &integer_type, @@ -185,8 +185,8 @@ static const struct symbol_table arphrd_tbl = { const struct datatype arphrd_type = { .type = TYPE_ARPHRD, - .name = "arphrd", - .desc = "hardware type", + .name = "iface_type", + .desc = "network interface type", .byteorder = BYTEORDER_HOST_ENDIAN, .size = 2 * BITS_PER_BYTE, .basetype = &integer_type, -- cgit v1.2.3