From f66b9f147ecf5db067e36719784a552a5909b3fc Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 16 Mar 2013 18:09:04 +0100 Subject: build: respect PREFIX_STRING on config file locations When setting a prefix from the build system, also pass this through the hard coded strings for config file locations in the toolkit, so that the installed files (which use PREFIX) can be properly found. Suggested-by: Peter Stuge Signed-off-by: Daniel Borkmann --- dissector_eth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dissector_eth.c') diff --git a/dissector_eth.c b/dissector_eth.c index f352645..0ac88af 100644 --- a/dissector_eth.c +++ b/dissector_eth.c @@ -118,15 +118,15 @@ static void dissector_init_ports(enum ports which) switch (which) { case PORTS_UDP: - file = "/etc/netsniff-ng/udp.conf"; + file = PREFIX_STRING "/etc/netsniff-ng/udp.conf"; table = ð_ports_udp; break; case PORTS_TCP: - file = "/etc/netsniff-ng/tcp.conf"; + file = PREFIX_STRING "/etc/netsniff-ng/tcp.conf"; table = ð_ports_tcp; break; case PORTS_ETHER: - file = "/etc/netsniff-ng/ether.conf"; + file = PREFIX_STRING "/etc/netsniff-ng/ether.conf"; table = ð_ether_types; break; default: -- cgit v1.2.3-54-g00ecf