summaryrefslogtreecommitdiff
path: root/capture-pcap-util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-02-27 23:32:08 +0000
committerGuy Harris <guy@alum.mit.edu>2010-02-27 23:32:08 +0000
commit3b845dcce0b0f1c5aeb3aa15ea09eb2016603407 (patch)
tree9452553a9f14e942f37df728f442c34ac72b5b94 /capture-pcap-util.c
parent13152548f655f6324d34a736b4bc255522baed8c (diff)
downloadwireshark-3b845dcce0b0f1c5aeb3aa15ea09eb2016603407.tar.gz
Move a routine into dumpcap - it's not used outside dumpcap.
svn path=/trunk/; revision=32042
Diffstat (limited to 'capture-pcap-util.c')
-rw-r--r--capture-pcap-util.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/capture-pcap-util.c b/capture-pcap-util.c
index 48b7989811..fd4d0525a3 100644
--- a/capture-pcap-util.c
+++ b/capture-pcap-util.c
@@ -560,26 +560,6 @@ free_pcap_linktype_list(GList *linktype_list)
g_list_free(linktype_list);
}
-/* Set the data link type on a pcap. */
-const char *
-set_pcap_linktype(pcap_t *pch, char *devname
-#ifdef HAVE_PCAP_SET_DATALINK
- _U_
-#endif
- , int dlt)
-{
-#ifdef HAVE_PCAP_SET_DATALINK
- if (pcap_set_datalink(pch, dlt) == 0)
- return NULL; /* no error */
- return pcap_geterr(pch);
-#else
- /* Let them set it to the type it is; reject any other request. */
- if (get_pcap_linktype(pch, devname) == dlt)
- return NULL; /* no error */
- return "That DLT isn't one of the DLTs supported by this device";
-#endif
-}
-
const char *
linktype_val_to_name(int dlt)
{