/* \summary: IEEE "slow protocols" (802.3ad/802.3ah) printer */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
const struct marker_tlv_marker_info_t *marker_tlv_marker_info;
} tlv_ptr;
- while(tlen>0) {
+ while(tlen != 0) {
/* is the packet big enough to include the tlv header ? */
if (tlen < sizeof(struct tlv_header_t))
goto tooshort;
switch (code) {
case SLOW_OAM_CODE_INFO:
- while (tlen > 0) {
+ while (tlen != 0) {
ptr.slow_oam_tlv_header = (const struct slow_oam_tlv_header_t *)tptr;
if (tlen < sizeof(*ptr.slow_oam_tlv_header))
goto tooshort;
tptr += 2;
/* TLVs */
- while (tlen > 0) {
+ while (tlen != 0) {
ptr.slow_oam_tlv_header = (const struct slow_oam_tlv_header_t *)tptr;
if (tlen < sizeof(*ptr.slow_oam_tlv_header))
goto tooshort;