X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fe3253b9b8fad9e75f863157eba0780418182f17..refs/heads/tcpdump-4.9:/missing/dlnames.c diff --git a/missing/dlnames.c b/missing/dlnames.c index a10cd398..16bfcf79 100644 --- a/missing/dlnames.c +++ b/missing/dlnames.c @@ -35,12 +35,13 @@ #include "config.h" #endif -#include +#include #include #include #include "pcap-missing.h" +#include "ascii_strcasecmp.h" struct dlt_choice { const char *name; @@ -137,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); }