summaryrefslogtreecommitdiff
path: root/llmnr.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-17 08:41:52 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-17 08:41:52 +0200
commitf46d59e0dc7b54a3f4a7ead2fd2d4258b3f56782 (patch)
tree076ca9422193ee640dc16c69c0923a4c9feeaec1 /llmnr.h
parentf1081b6b0f47160f83ded689d956bd577819d752 (diff)
llmnrd: Allow to bind to a specific network interface
Add a command line option -i/--interface which allows to bind the llmnrd sockets to a specific interface. If used, requests are only answered on the specified interface. Example: llmnrd -i eth0 Closes #9 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr.h')
-rw-r--r--llmnr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llmnr.h b/llmnr.h
index da86440..620e539 100644
--- a/llmnr.h
+++ b/llmnr.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (C) 2015-2016 Tobias Klauser <tklauser@distanz.ch>
*
* This file is part of llmnrd.
*
@@ -22,7 +22,7 @@
#include <stdbool.h>
#include <stdint.h>
-int llmnr_init(const char *hostname, uint16_t port, bool ipv6);
+int llmnr_init(const char *hostname, uint16_t port, bool ipv6, const char *iface);
int llmnr_run(void);
void llmnr_stop(void);