summaryrefslogtreecommitdiff
path: root/include/udp.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-20 14:05:31 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-20 14:05:31 +0100
commitf7b4b7bd19b16d11491f18891942f6d48c2fcf7e (patch)
tree800729577e679355b073709e35baaf094e6623a3 /include/udp.h
parent28255df51433846bad67cccb69bb285660ef1667 (diff)
downloadconntrack-tools-f7b4b7bd19b16d11491f18891942f6d48c2fcf7e.tar.gz
conntrack-tools-f7b4b7bd19b16d11491f18891942f6d48c2fcf7e.zip
udp: fix missing scope_id in the socket creation
This patch fixes an EINVAL error returned by bind() when opening an UDP server socket to propagate state-changes over the dedicated link. This patch also includes the change of the example configuration files in case that you want to use UDP over IPv6. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/udp.h')
-rw-r--r--include/udp.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/udp.h b/include/udp.h
index 02b8af1..6c659b9 100644
--- a/include/udp.h
+++ b/include/udp.h
@@ -10,8 +10,13 @@ struct udp_conf {
int checksum;
unsigned short port;
union {
- struct in_addr inet_addr;
- struct in6_addr inet_addr6;
+ struct {
+ struct in_addr inet_addr;
+ } ipv4;
+ struct {
+ struct in6_addr inet_addr6;
+ int scope_id;
+ } ipv6;
} server;
union {
struct in_addr inet_addr;