X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7ea344d76a21255867275a199d1ddb1e5b358f77..16da708ede6851a139315ec5f2b0ff3e28dd849b:/print-aoe.c diff --git a/print-aoe.c b/print-aoe.c index 02eda7d9..97e93df2 100644 --- a/print-aoe.c +++ b/print-aoe.c @@ -1,8 +1,4 @@ /* - * This module implements decoding of the ATA over Ethernet (AoE) protocol - * according to the following specification: - * http://support.coraid.com/documents/AoEr11.txt - * * Copyright (c) 2014 The TCPDUMP project * All rights reserved. * @@ -29,11 +25,15 @@ * POSSIBILITY OF SUCH DAMAGE. */ +/* \summary: ATA over Ethernet (AoE) protocol printer */ + +/* specification: http://brantleycoilecompany.com/AoEr11.pdf */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include #include "netdissect.h" #include "extract.h" @@ -41,7 +41,6 @@ #include "ether.h" static const char tstr[] = " [|aoe]"; -static const char cstr[] = " (invalid)"; #define AOE_V1 1 #define ATA_SECTOR_SIZE 512 @@ -197,7 +196,7 @@ aoev1_issue_print(netdissect_options *ndo, return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: @@ -246,7 +245,7 @@ aoev1_query_print(netdissect_options *ndo, return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: @@ -297,7 +296,7 @@ aoev1_mac_print(netdissect_options *ndo, return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: @@ -332,7 +331,7 @@ aoev1_reserve_print(netdissect_options *ndo, return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: @@ -390,7 +389,7 @@ aoev1_print(netdissect_options *ndo, return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: @@ -422,7 +421,7 @@ aoe_print(netdissect_options *ndo, return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: