]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vrrp.c
On Solaris, for 64-bit builds, use the 64-bit pcap-config.
[tcpdump] / print-vrrp.c
index 972a8cd79481c4d8bda34053722f9878b91ce4d4..ee97974ecd438ef4b60b2fb74608889e1154af88 100644 (file)
@@ -165,16 +165,13 @@ vrrp_print(netdissect_options *ndo,
                        bp += 4;
                }
                if (version == 2 && auth_type == VRRP_AUTH_SIMPLE) { /* simple text password */
-                       ND_TCHECK_1(bp + 7);
                        ND_PRINT(" auth \"");
-                       if (nd_printn(ndo, bp, 8, ndo->ndo_snapend)) {
-                               ND_PRINT("\"");
-                               goto trunc;
-                       }
+                       /*
+                        * RFC 2338 Section 5.3.10: "If the configured authentication string
+                        * is shorter than 8 bytes, the remaining space MUST be zero-filled.
+                        */
+                       nd_printjnp(ndo, bp, 8);
                        ND_PRINT("\"");
                }
        }
-       return;
-trunc:
-       nd_print_trunc(ndo);
 }