[dhcp-agent-commits] dhcp-agent/src dhcp-rawnet.c,1.8,1.9
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-06-09 02:04:51
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv23353/src Modified Files: dhcp-rawnet.c Log Message: if pcap_freecode isn't available then we can't use it Index: dhcp-rawnet.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-rawnet.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** dhcp-rawnet.c 8 Jun 2003 22:42:45 -0000 1.8 --- dhcp-rawnet.c 9 Jun 2003 02:04:48 -0000 1.9 *************** *** 173,177 **** --- 173,184 ---- } + /* looks like NetBSD ships with a libpcap that does not have + * pcap_freecode there's nothing we can do except not compile + * against it. this unfortunately will probably introduce + * memory leaks :| */ + + #ifdef HAVE_PCAP_FREECODE pcap_freecode(&filter); + #endif /* HAVE_PCAP_FREECODE */ #if defined(HAVE_BPF_IMMEDIATE) |