Skip to content

Commit

Permalink
Moved BPF filter define to header file
Browse files Browse the repository at this point in the history
  • Loading branch information
thus committed Nov 18, 2014
1 parent 2abfa5a commit ac716fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/passivedns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,6 @@ int main(int argc, char *argv[])
memset(&config, 0, sizeof(globalconfig));
config.inpacket = config.intr_flag = 0;
config.dnslastchk = 0;
#define BPFF "port 53"
config.bpff = BPFF;
config.logfile = "/var/log/passivedns.log";
config.logfile_nxd = "/var/log/passivedns.log";
Expand Down
2 changes: 2 additions & 0 deletions src/passivedns.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
#define ERROR 1
#define STDBUF 1024

#define BPFF "port 53" /* Default BPF filter */

#if defined(__FreeBSD__) || defined(__APPLE__)
#define s6_addr32 __u6_addr.__u6_addr32
#endif /* __FreeBSD__ or __APPLE__ */
Expand Down

0 comments on commit ac716fe

Please sign in to comment.