summaryrefslogtreecommitdiff
path: root/savefile.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-05 14:33:14 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-05 14:33:14 -0800
commit612503bb0801a49a1c6ebe9c82591289b1d2e5c9 (patch)
tree7fc95b8f6dbc6ad88d7e892d7138771a4690d09f /savefile.c
parent86db77ce320dd9e81e5cc7b93ac9adf26643b140 (diff)
downloadlibpcap-612503bb0801a49a1c6ebe9c82591289b1d2e5c9.tar.gz
Move the socket ops out of gencode.c.
Instead, do it in pcap-linux.c, and have it set a flag in the pcap_t structure to indicate to the code in gencode.c that it needs to generate special VLAN-handling code.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/savefile.c b/savefile.c
index 0ab2fdef..abe1d2dd 100644
--- a/savefile.c
+++ b/savefile.c
@@ -344,6 +344,11 @@ found:
*/
p->oneshot_callback = pcap_oneshot;
+ /*
+ * Savefiles never require special BPF code generation.
+ */
+ p->bpf_codegen_flags = 0;
+
p->activated = 1;
return (p);