summaryrefslogtreecommitdiff
path: root/src/adaptor/dlt-adaptor-udp.c
diff options
context:
space:
mode:
authorJiri Popek <Jiri.Popek@bmw.de>2015-03-17 13:17:25 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2015-03-23 14:41:26 +0100
commit9a70eef3ee739543b87c867fd5b643b703899c89 (patch)
treef0eb67ae73b6acc643881851c5f0625281cb6ede /src/adaptor/dlt-adaptor-udp.c
parentdb5b62a1c054667dc82929d90e195cd4a7060f4c (diff)
downloadDLT-daemon-9a70eef3ee739543b87c867fd5b643b703899c89.tar.gz
Add the IPv6 support
Enables communication between DLT server and clients over IPv6. Signed-off-by: Jiri Popek <jiri.popek@bmw.de> Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/adaptor/dlt-adaptor-udp.c')
-rwxr-xr-xsrc/adaptor/dlt-adaptor-udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adaptor/dlt-adaptor-udp.c b/src/adaptor/dlt-adaptor-udp.c
index d817269..ce204c1 100755
--- a/src/adaptor/dlt-adaptor-udp.c
+++ b/src/adaptor/dlt-adaptor-udp.c
@@ -148,13 +148,13 @@ int main(int argc, char* argv[])
}
}
- if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
+ if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) == -1)
{
perror("Socket");
exit(1);
}
- server_addr.sin_family = AF_INET;
+ server_addr.sin_family = AF_INET6;
server_addr.sin_port = htons(port);
server_addr.sin_addr.s_addr = INADDR_ANY;
bzero(&(server_addr.sin_zero), 8);