]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/dlnames.c
Handle very large -f files by rejecting them.
[tcpdump] / missing / dlnames.c
index 32072b784f957010a54e6c56113c9bf9b299c014..16bfcf7940c2efd1950140c807a6725915d654fa 100644 (file)
  * SUCH DAMAGE.
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/missing/dlnames.c,v 1.5 2003-11-18 23:09:43 guy Exp $ (LBL)";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <pcap.h>
 #include <string.h>
 
 #include "pcap-missing.h"
+#include "ascii_strcasecmp.h"
 
 struct dlt_choice {
        const char *name;
@@ -142,7 +138,7 @@ pcap_datalink_name_to_val(const char *name)
        int i;
 
        for (i = 0; dlt_choices[i].name != NULL; i++) {
-               if (strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1,
+               if (ascii_strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1,
                    name) == 0)
                        return (dlt_choices[i].dlt);
        }