1 |
pva 11/08/03 11:27:32 |
2 |
|
3 |
Added: httping-1.5.1-bind.patch |
4 |
Log: |
5 |
Fix bind option, bug 367537 wrt Denys and Folkert van Heusden. |
6 |
|
7 |
(Portage version: 2.1.10.7/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-analyzer/httping/files/httping-1.5.1-bind.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/httping/files/httping-1.5.1-bind.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/httping/files/httping-1.5.1-bind.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: httping-1.5.1-bind.patch |
16 |
=================================================================== |
17 |
Patch from upstream developer Folkert van Heusden, to fix bind (-y) issue. |
18 |
https://bugs.gentoo.org/show_bug.cgi?id=367537 |
19 |
|
20 |
--- httping-1.5.1/main.c 2011-07-27 23:33:34.000000000 +0400 |
21 |
+++ httping-1.5.1/main.c 2011-08-01 09:30:11.000000000 +0400 |
22 |
@@ -350,6 +350,7 @@ |
23 |
{ |
24 |
bind_to = (struct sockaddr_in *)&bind_to_6; |
25 |
memset(&bind_to_6, 0x00, sizeof(bind_to_6)); |
26 |
+ bind_to_6.sin6_family = AF_INET6; |
27 |
|
28 |
if (inet_pton(AF_INET6, optarg, &(bind_to_6.sin6_addr)) != 1) |
29 |
{ |
30 |
@@ -360,6 +361,7 @@ |
31 |
{ |
32 |
bind_to = (struct sockaddr_in *)&bind_to_4; |
33 |
memset(&bind_to_4, 0x00, sizeof(bind_to_4)); |
34 |
+ bind_to_4.sin_family = AF_INET; |
35 |
|
36 |
if (inet_pton(AF_INET, optarg, &(bind_to_4.sin_addr)) != 1) |
37 |
{ |