[Chilli] [PATCH] Failed to compile with --enable-debug2
Michele Bergonzoni
bergonz at labs.it
Thu Nov 14 13:07:15 UTC 2013
I tried to compile SVN revision 485 with --enable-debug2 and it failed with:
dhcp.c:5016:5: error: implicit declaration of function 'MAC_ACR'
[-Werror=implicit-function-declaration]
I think MAC_ACR is a misspelling of MAC_ARG, so I substituted it in the
source.
It now compiles OK and apparently works, but I still didn't happen to
trigger one of those two particular debug lines.
Regards,
Bergonz
Index: src/dhcp.c
===================================================================
--- src/dhcp.c (revision 485)
+++ src/dhcp.c (working copy)
@@ -904,7 +904,7 @@
if (_options.debug) {
addr.s_addr = pack_iph->saddr;
log_dbg("NFQUEUE: From "MAC_FMT" %s %s",
- MAC_ACR(hw->hw_addr),
+ MAC_ARG(hw->hw_addr),
inet_ntoa(addr),
result == NF_ACCEPT ? "Accept" : "Drop");
@@ -5015,7 +5015,7 @@
struct pkt_ethhdr_t *ethh = pkt_ethhdr(packet);
log_dbg("dhcp_decaps: src="MAC_FMT" "
"dst="MAC_FMT" prot=%.4x %d len=%d",
- MAC_ACR(ethh->src),
+ MAC_ARG(ethh->src),
MAC_ARG(ethh->dst),
prot, (int)prot, length);
}
--
Ing. Michele Bergonzoni - Laboratori Guglielmo Marconi S.p.a.
Phone:+39-051-6781926 e-mail: bergonz at labs.it
alt.advanced.networks.design.configure.operate
More information about the Chilli
mailing list