* [ULOGD PATCH 5/9] Fix crash IP2BIN and IP2STR due to ui128 type introduction.
@ 2008-05-19 22:31 Eric Leblond
2008-06-01 23:59 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Eric Leblond @ 2008-05-19 22:31 UTC (permalink / raw)
To: netfilter-devel; +Cc: Eric Leblond
IP2BIN and IP2STR were using the ptr field of the value but the type used
for IPv6 address is now ui128. This patch fix this problem by using ui128
instead of ptr.
Signed-off-by: Eric Leblond <eric@inl.fr>
---
filter/ulogd_filter_IP2BIN.c | 2 +-
filter/ulogd_filter_IP2STR.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/filter/ulogd_filter_IP2BIN.c b/filter/ulogd_filter_IP2BIN.c
index 33db6a2..7412e38 100644
--- a/filter/ulogd_filter_IP2BIN.c
+++ b/filter/ulogd_filter_IP2BIN.c
@@ -137,7 +137,7 @@ static char *ip2bin(struct ulogd_key* inp, int index, char family)
switch (family) {
case AF_INET6:
- addr = GET_VALUE(inp, index).ptr;
+ addr = GET_VALUE(inp, index).ui128;
break;
case AF_INET:
/* Convert IPv4 to IPv4 in IPv6 */
diff --git a/filter/ulogd_filter_IP2STR.c b/filter/ulogd_filter_IP2STR.c
index e4ec06d..9ad3b81 100644
--- a/filter/ulogd_filter_IP2STR.c
+++ b/filter/ulogd_filter_IP2STR.c
@@ -174,7 +174,7 @@ static char *ip2str(struct ulogd_key *inp, int index)
switch (convfamily) {
case AF_INET6:
inet_ntop(AF_INET6,
- GET_VALUE(inp, index).ptr,
+ GET_VALUE(inp, index).ui128,
tmp, sizeof(tmp));
break;
case AF_INET:
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [ULOGD PATCH 5/9] Fix crash IP2BIN and IP2STR due to ui128 type introduction.
2008-05-19 22:31 [ULOGD PATCH 5/9] Fix crash IP2BIN and IP2STR due to ui128 type introduction Eric Leblond
@ 2008-06-01 23:59 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2008-06-01 23:59 UTC (permalink / raw)
To: Eric Leblond; +Cc: netfilter-devel
Eric Leblond wrote:
> IP2BIN and IP2STR were using the ptr field of the value but the type used
> for IPv6 address is now ui128. This patch fix this problem by using ui128
> instead of ptr.
I have merged this to 02cleanup.patch. Thanks.
--
"Los honestos son inadaptados sociales" -- Les Luthiers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-01 23:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 22:31 [ULOGD PATCH 5/9] Fix crash IP2BIN and IP2STR due to ui128 type introduction Eric Leblond
2008-06-01 23:59 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.