Re: [patch] Re: hacking pfkey: a few questions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: patrick keshishian
Date: Sunday, April 11, 2010 - 11:58 am

On Sun, Apr 11, 2010 at 08:47:38PM +0200, Toni Mueller wrote:

inet_ntoa will return pointer to a static buffer. Each call
to it will override thsi buffer with the new IP info.

To fix this, you will need to copy returned value to your
own local buffers and use those in your "log" statement(s).

HTH,
--patrick

[dd]
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hacking pfkey: a few questions, Toni Mueller, (Fri Apr 2, 11:32 am)
Re: hacking pfkey: a few questions, Stuart Henderson, (Fri Apr 2, 1:42 pm)
[patch] Re: hacking pfkey: a few questions, Toni Mueller, (Sun Apr 11, 11:47 am)
Re: [patch] Re: hacking pfkey: a few questions, patrick keshishian, (Sun Apr 11, 11:58 am)
Re: [patch] Re: hacking pfkey: a few questions, Toni Mueller, (Sun Apr 11, 12:40 pm)
Re: [patch] Re: hacking pfkey: a few questions, patrick keshishian, (Sun Apr 11, 1:43 pm)
Re: [patch] Re: hacking pfkey: a few questions, Bret S. Lambert, (Sun Apr 11, 9:54 pm)
Re: [patch] Re: hacking pfkey: a few questions, patrick keshishian, (Sun Apr 11, 10:11 pm)
Re: [patch] Re: hacking pfkey: a few questions, Toni Mueller, (Mon Apr 12, 12:37 am)
Re: [patch] Re: hacking pfkey: a few questions, Toni Mueller, (Mon Apr 12, 4:42 am)
Re: [patch] Re: hacking pfkey: a few questions, Toni Mueller, (Mon Apr 12, 7:31 am)
Re: [patch] Re: hacking pfkey: a few questions, Damien Miller, (Mon Apr 12, 7:10 pm)
Re: [patch] Re: hacking pfkey: a few questions, Toni Mueller, (Tue Apr 13, 1:24 am)
Re: [patch] Re: hacking pfkey: a few questions, Stuart Henderson, (Tue Apr 13, 3:10 am)
Re: isakmpd & policy questions, Toni Mueller, (Wed Apr 14, 5:02 am)
Re: [patch] Re: hacking pfkey: a few questions, Markus Friedl, (Wed Apr 14, 7:14 am)
Re: [patch] Re: hacking pfkey: a few questions, Toni Mueller, (Thu Apr 15, 2:06 am)