- switch(label) {
- case MPLS_V4_EXP_NULL_LABEL:
- strlcpy(buf, "IPv4 Explicit Null", len);
- return(buf);
- case MPLS_RA_LABEL:
- strlcpy(buf, "Router Alert", len);
- return(buf);
- case MPLS_V6_EXP_NULL_LABEL:
- strlcpy(buf, "IPv6 Explict Null", len);
- return(buf);
- case MPLS_IMP_NULL_LABEL:
- strlcpy(buf, "implicit-null", len);
- return(buf);
- case MPLS_ENTROPY_LABEL_INDICATOR:
- strlcpy(buf, "Entropy Label Indicator", len);
- return(buf);
- case MPLS_GAL_LABEL:
- strlcpy(buf, "Generic Associated Channel", len);
- return(buf);
- case MPLS_OAM_ALERT_LABEL:
- strlcpy(buf, "OAM Alert", len);
- return(buf);
- case MPLS_EXTENSION_LABEL:
- strlcpy(buf, "Extension", len);
- return(buf);
- default:
- if (label < 16)
- snprintf(buf, len, "Reserved (%u)", label);
- else
- snprintf(buf, len, "%u", label);
- return(buf);
- }
+ switch (label) {
+ case MPLS_LABEL_IPV4_EXPLICIT_NULL:
+ strlcpy(buf, "IPv4 Explicit Null", len);
+ return (buf);
+ case MPLS_LABEL_ROUTER_ALERT:
+ strlcpy(buf, "Router Alert", len);
+ return (buf);
+ case MPLS_LABEL_IPV6_EXPLICIT_NULL:
+ strlcpy(buf, "IPv6 Explict Null", len);
+ return (buf);
+ case MPLS_LABEL_IMPLICIT_NULL:
+ strlcpy(buf, "implicit-null", len);
+ return (buf);
+ case MPLS_LABEL_ELI:
+ strlcpy(buf, "Entropy Label Indicator", len);
+ return (buf);
+ case MPLS_LABEL_GAL:
+ strlcpy(buf, "Generic Associated Channel", len);
+ return (buf);
+ case MPLS_LABEL_OAM_ALERT:
+ strlcpy(buf, "OAM Alert", len);
+ return (buf);
+ case MPLS_LABEL_EXTENSION:
+ strlcpy(buf, "Extension", len);
+ return (buf);
+ default:
+ if (label < 16)
+ snprintf(buf, len, "Reserved (%u)", label);
+ else
+ snprintf(buf, len, "%u", label);
+ return (buf);
+ }