#include "config.h"
#endif
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
#include <sys/stat.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
+#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
-#include "interface.h"
+#include "netdissect.h"
#include "ascii_strcasecmp.h"
#include "timeval-operations.h"
#else
nano_prec = 0;
#endif
- if (!(tcpdump_timevalisset(&tv_ref)))
+ if (!(netdissect_timevalisset(&tv_ref)))
tv_ref = *tvp; /* set timestamp for first packet */
- negative_offset = tcpdump_timevalcmp(tvp, &tv_ref, <);
+ negative_offset = netdissect_timevalcmp(tvp, &tv_ref, <);
if (negative_offset)
- tcpdump_timevalsub(&tv_ref, tvp, &tv_result, nano_prec);
+ netdissect_timevalsub(&tv_ref, tvp, &tv_result, nano_prec);
else
- tcpdump_timevalsub(tvp, &tv_ref, &tv_result, nano_prec);
+ netdissect_timevalsub(tvp, &tv_ref, &tv_result, nano_prec);
ND_PRINT((ndo, (negative_offset ? "-" : " ")));
/*
* Convert a value to a string using an array; the macro
- * tok2strary() in <interface.h> is the public interface to
+ * tok2strary() in <netdissect.h> is the public interface to
* this function and ensures that the second argument is
* correct for bounds-checking.
*/
return (prefix_len);
}
-#ifdef INET6
int
mask62plen(const u_char *mask)
{
}
return (cidr_len);
}
-#endif /* INET6 */
/*
* Routine to print out information for text-based protocols such as FTP,