X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/8a04e7d4caf79c7501cfd8f4322755eabe642f51..refs/heads/mcr-macro-update-1:/print-someip.c diff --git a/print-someip.c b/print-someip.c index 3f3fcfc6..9eb63713 100644 --- a/print-someip.c +++ b/print-someip.c @@ -16,7 +16,7 @@ /* \summary: Autosar SOME/IP Protocol printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif #include "netdissect-stdinc.h" @@ -42,7 +42,7 @@ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ -struct tok message_type_values[] = { +static const struct tok message_type_values[] = { { 0x00, "REQUEST" }, { 0x01, "REQUEST_NO_RETURN" }, { 0x02, "NOTIFICATION" }, @@ -56,7 +56,7 @@ struct tok message_type_values[] = { { 0, NULL } }; -struct tok return_code_values[] = { +static const struct tok return_code_values[] = { { 0x00, "E_OK" }, { 0x01, "E_NOT_OK" }, { 0x02, "E_UNKNOWN_SERVICE" }, @@ -73,10 +73,11 @@ struct tok return_code_values[] = { { 0x0d, "E_E2E" }, { 0x0e, "E_E2E_NOT_AVAILABLE" }, { 0x0f, "E_E2E_NO_NEW_DATA" }, + { 0, NULL } }; void -someip_print(netdissect_options *ndo, const u_char *bp, u_int len) +someip_print(netdissect_options *ndo, const u_char *bp, const u_int len) { uint32_t message_id; uint16_t service_id;