]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
pflog: handle OpenBSD's "rewriten" flag and addresses.
[tcpdump] / print-ldp.c
index 50d146019257763b8bd8e85e960b8dbb50aaa796..b16e989f2912d3c7347c3e84b97d4ae946ffde00 100644 (file)
@@ -16,9 +16,7 @@
 
 /* \summary: Label Distribution Protocol (LDP) printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -689,7 +687,7 @@ ldp_pdu_print(netdissect_options *ndo,
     tptr = pptr + sizeof(struct ldp_common_header);
     tlen = pdu_len - (sizeof(struct ldp_common_header)-4);     /* Type & Length fields not included */
 
-    while(tlen>0) {
+    while(tlen != 0) {
         /* did we capture enough for fully decoding the msg header ? */
         ND_TCHECK_LEN(tptr, sizeof(struct ldp_msg_header));