aboutsummaryrefslogtreecommitdiff
path: root/net/sflowtool
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2011-01-30 21:26:16 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2011-01-30 21:26:16 +0000
commitebe51977e5b30b0cf13ac2d16ee079a0259293c1 (patch)
tree236ddb3d724fa4f43f06ec91908b321a0db57749 /net/sflowtool
parent0a9e78c776f9aab8354cf84bfd3e84d60182117b (diff)
downloadports-ebe51977e5b30b0cf13ac2d16ee079a0259293c1.tar.gz
ports-ebe51977e5b30b0cf13ac2d16ee079a0259293c1.zip
Notes
Diffstat (limited to 'net/sflowtool')
-rw-r--r--net/sflowtool/Makefile2
-rw-r--r--net/sflowtool/distinfo4
-rw-r--r--net/sflowtool/files/patch-src__sflowtool.c31
3 files changed, 34 insertions, 3 deletions
diff --git a/net/sflowtool/Makefile b/net/sflowtool/Makefile
index 8fa8e5e24697..6339bcf18be3 100644
--- a/net/sflowtool/Makefile
+++ b/net/sflowtool/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= sflowtool
-PORTVERSION= 3.17
+PORTVERSION= 3.18
CATEGORIES= net
MASTER_SITES= http://www.inmon.com/bin/
diff --git a/net/sflowtool/distinfo b/net/sflowtool/distinfo
index 955f611e9a91..6482853b6b91 100644
--- a/net/sflowtool/distinfo
+++ b/net/sflowtool/distinfo
@@ -1,2 +1,2 @@
-SHA256 (sflowtool-3.17.tar.gz) = e102c4edcc9dde91cd6f020ce4699fbf55f43fa5ffd215809436da5e6848af0b
-SIZE (sflowtool-3.17.tar.gz) = 153277
+SHA256 (sflowtool-3.18.tar.gz) = b671156553915fcba84d90d932e12599c67a183fea86a8956d58cc9f4a22ac5e
+SIZE (sflowtool-3.18.tar.gz) = 148020
diff --git a/net/sflowtool/files/patch-src__sflowtool.c b/net/sflowtool/files/patch-src__sflowtool.c
new file mode 100644
index 000000000000..0b2a76e7e8fa
--- /dev/null
+++ b/net/sflowtool/files/patch-src__sflowtool.c
@@ -0,0 +1,31 @@
+--- ./src/sflowtool.c.orig 2011-01-26 04:35:22.270624572 +0300
++++ ./src/sflowtool.c 2011-01-26 04:36:29.375609602 +0300
+@@ -3238,14 +3238,14 @@
+ static int openInputUDPSocket(u_int16_t port)
+ {
+ int soc;
+- struct sockaddr_in6 myaddr_in;
++ struct sockaddr_in myaddr_in;
+ long save_fd;
+
+ /* Create socket */
+- memset((char *)&myaddr_in, 0, sizeof(struct sockaddr_in6));
+- myaddr_in.sin6_family = AF_INET6;
+- //myaddr_in.sin_addr.s_addr = INADDR_ANY;
+- myaddr_in.sin6_port = htons(port);
++ memset((char *)&myaddr_in, 0, sizeof(struct sockaddr_in));
++ myaddr_in.sin_family = AF_INET;
++ myaddr_in.sin_addr.s_addr = INADDR_ANY;
++ myaddr_in.sin_port = htons(port);
+
+ if ((soc = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
+ fprintf(stderr, "socket() failed, %s\n", strerror(errno));
+@@ -3260,7 +3260,7 @@
+ #endif /* WIN32 */
+
+ /* Bind the socket */
+- if (bind(soc, (struct sockaddr *)&myaddr_in, sizeof(struct sockaddr_in6)) == -1) {
++ if (bind(soc, (struct sockaddr *)&myaddr_in, sizeof(struct sockaddr_in)) == -1) {
+ fprintf(stderr, "bind() failed, port = %d : %s\n", port, strerror(errno));
+ exit(-7);
+ }