diff options
author | Patrick McHardy <kaber@trash.net> | 2014-04-13 12:58:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-04-14 08:27:20 +0200 |
commit | cc2316f37085fe013a120ddd8121fa0edf778ec4 (patch) | |
tree | 66750f0e65fe429f7ef9828c8778ecb1074d8ed3 /src/proto.c | |
parent | 0eb9a25120e41ad4b0d7a2bda9effd4b4e2b64d5 (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/proto.c')
-rw-r--r-- | src/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proto.c b/src/proto.c index 3e62f92a..0a37a658 100644 --- a/src/proto.c +++ b/src/proto.c @@ -732,7 +732,7 @@ const struct proto_desc proto_vlan = { const struct datatype etheraddr_type = { .type = TYPE_ETHERADDR, - .name = "etheraddr", + .name = "ether_addr", .desc = "Ethernet address", .byteorder = BYTEORDER_HOST_ENDIAN, .size = ETH_ALEN * BITS_PER_BYTE, @@ -769,7 +769,7 @@ static void ethertype_print(const struct expr *expr) const struct datatype ethertype_type = { .type = TYPE_ETHERTYPE, - .name = "ethertype", + .name = "ether_type", .desc = "Ethernet protocol", .byteorder = BYTEORDER_BIG_ENDIAN, .size = 2 * BITS_PER_BYTE, |