summaryrefslogtreecommitdiffstats
path: root/src/meta.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-04-13 12:58:25 +0200
committerPatrick McHardy <kaber@trash.net>2014-04-14 08:27:20 +0200
commitcc2316f37085fe013a120ddd8121fa0edf778ec4 (patch)
tree66750f0e65fe429f7ef9828c8778ecb1074d8ed3 /src/meta.c
parent0eb9a25120e41ad4b0d7a2bda9effd4b4e2b64d5 (diff)
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 <kaber@trash.net>
Diffstat (limited to 'src/meta.c')
-rw-r--r--src/meta.c8
1 files changed, 4 insertions, 4 deletions
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,