diff options
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/pcap-common.c | 5 | ||||
-rw-r--r-- | wiretap/pcap-common.h | 7 |
2 files changed, 4 insertions, 8 deletions
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c index 675705222e..070372b21c 100644 --- a/wiretap/pcap-common.c +++ b/wiretap/pcap-common.c @@ -72,7 +72,10 @@ * field of "pcap_to_wtap_map[]". */ -const struct encap_map pcap_to_wtap_map[] = { +static const struct { + int dlt_value; + int wtap_encap_value; +} pcap_to_wtap_map[] = { /* * These are the values that are almost certainly the same * in all libpcaps (I've yet to find one where the values diff --git a/wiretap/pcap-common.h b/wiretap/pcap-common.h index 2df92014b6..a058779454 100644 --- a/wiretap/pcap-common.h +++ b/wiretap/pcap-common.h @@ -24,13 +24,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -struct encap_map { - int dlt_value; - int wtap_encap_value; -}; - -extern const struct encap_map pcap_to_wtap_map[]; - extern int wtap_wtap_encap_to_pcap_encap(int encap); extern int pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size, |