diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-11-05 14:33:14 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-11-05 14:33:14 -0800 |
commit | 612503bb0801a49a1c6ebe9c82591289b1d2e5c9 (patch) | |
tree | 7fc95b8f6dbc6ad88d7e892d7138771a4690d09f /savefile.c | |
parent | 86db77ce320dd9e81e5cc7b93ac9adf26643b140 (diff) | |
download | libpcap-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |