This should avoid error like:
./print-rt6.c:36:18: error: no previous extern declaration for
non-static variable 'srh_tlv_type' [-Werror,-Wmissing-variable-declarations]
const struct tok srh_tlv_type[] = {
^
./print-rt6.c:36:7: note: declare 'static' if the variable is not
intended to be used outside of this translation unit
const struct tok srh_tlv_type[] = {
^
#include "ip6.h"
-const struct tok srh_tlv_type[] = {
+static const struct tok srh_tlv_type[] = {
{ IPV6_SRH_TLV_PAD1, "Pad1"},
{ IPV6_SRH_TLV_PADN, "PadN"},
{ IPV6_SRH_TLV_HMAC, "HMAC"},