summaryrefslogtreecommitdiff
path: root/print-ether.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2014-05-04 20:48:03 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2014-05-04 20:48:03 +0400
commit35043f35074d36504889fb0f8542632005531c2e (patch)
treee9ad59b797b2e38fcffb78bf4c5e1ead9ee57c4e /print-ether.c
parent2eb4bc2d8107027e4530e41a827191fd5f9a272a (diff)
downloadtcpdump-35043f35074d36504889fb0f8542632005531c2e.tar.gz
AoE: add version 1 decoder (GH #298)
The sample capture was produced with two Linux hosts (aoetools version 36, kernel module version 85, vblade version 21). One of the hosts exported a 1MB block device containing a freshly created filesystem and the other mounted it, wrote a small file and then unmounted.
Diffstat (limited to 'print-ether.c')
-rw-r--r--print-ether.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/print-ether.c b/print-ether.c
index 7e9f78be..366ad14f 100644
--- a/print-ether.c
+++ b/print-ether.c
@@ -81,6 +81,7 @@ const struct tok ethertype_values[] = {
{ ETHERTYPE_GEONET_OLD, "GeoNet (old)"},
{ ETHERTYPE_GEONET, "GeoNet"},
{ ETHERTYPE_CALM_FAST, "CALM FAST"},
+ { ETHERTYPE_AOE, "AoE" },
{ 0, NULL}
};
@@ -423,6 +424,10 @@ ethertype_print(netdissect_options *ndo,
calm_fast_print(ndo, p-14, p, length);
return (1);
+ case ETHERTYPE_AOE:
+ aoe_print(ndo, p, length);
+ return (1);
+
case ETHERTYPE_LAT:
case ETHERTYPE_SCA:
case ETHERTYPE_MOPRC: