diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-14 14:22:16 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-14 14:22:16 -0700 |
commit | 03d6f39a995f49ef48614937da901febf172341f (patch) | |
tree | dc2bcc70b0ad904315e3937e7dd89232a27f87b6 /wiretap/pcap-encap.h | |
parent | 7dc17158db3baf650c86eb30a5e5613a45d5cd0c (diff) |
libwiretap: make wtap_wtap_encap_to_pcap_encap() private to the library.
Only a tiny amount of code outside libwiretap needs to know about
pcap/pcapng LINKTYPE_ values, and all that code needs to know is, for a
given LINKTYPE_ value, what the corresponding WTAP_ENCAP_ value is.
Nothing should need to know, for a given WTAP_ENCAP_ value, what its
LINKTYPE_ value is.
Make it the case that nothing *does* need to know, for a given
WTAP_ENCAP_ value, what its LINKTYPE_ value is. Export
wtap_dump_can_write_encap() and use *that*, in the "import hex dump"
code, what formats can be written to a pcap file.
Diffstat (limited to 'wiretap/pcap-encap.h')
-rw-r--r-- | wiretap/pcap-encap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pcap-encap.h b/wiretap/pcap-encap.h index d72ede2928..5535e48a7d 100644 --- a/wiretap/pcap-encap.h +++ b/wiretap/pcap-encap.h @@ -21,7 +21,7 @@ extern "C" { #endif /* __cplusplus */ WS_DLL_PUBLIC int wtap_pcap_encap_to_wtap_encap(int encap); -WS_DLL_PUBLIC int wtap_wtap_encap_to_pcap_encap(int encap); +int wtap_wtap_encap_to_pcap_encap(int encap); WS_DLL_PUBLIC gboolean wtap_encap_requires_phdr(int encap); #ifdef __cplusplus |