diff options
author | ohauer <ohauer@FreeBSD.org> | 2011-01-31 05:26:16 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2011-01-31 05:26:16 +0800 |
commit | d4649305561409284047c2b4bb5eebc98a025551 (patch) | |
tree | dc0dac3c1a40f8971777930404fc8cc4320b8f5a | |
parent | 59828de59a594e6646739029f0963001ab2d14e4 (diff) | |
download | freebsd-ports-gnome-d4649305561409284047c2b4bb5eebc98a025551.tar.gz freebsd-ports-gnome-d4649305561409284047c2b4bb5eebc98a025551.tar.zst freebsd-ports-gnome-d4649305561409284047c2b4bb5eebc98a025551.zip |
- update to version 3.18
- fix binding to wildcard IP
Changelog:
3.18 - add decodes for sflow-httpd, and common-logfile-format output (experimental)
PR: ports/154300
Submitted by: Yuri Pankov <yuri.pankov _at_ gmail.com>
Feature safe: yes
-rw-r--r-- | net/sflowtool/Makefile | 2 | ||||
-rw-r--r-- | net/sflowtool/distinfo | 4 | ||||
-rw-r--r-- | net/sflowtool/files/patch-src__sflowtool.c | 31 |
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); + } |