[Swan-dev] printing IP addresses; reentrancy
D. Hugh Redelmeier
hugh at mimosa.com
Mon Jun 23 21:03:58 EEST 2014
| From: Paul Wouters <paul at nohats.ca>
| Things in linux/net/ipsec are typically shared between userland and
| kernel. Does this affect KLIPS in any way?
A tiny bit: the (one-line) function will be loaded as part of addrtot.o.
It currently isn't used. But it would work if it were used. I guess that
there is a slight chance that the name "ipstr" is already taken in the
kernel.
I've done a "make module" without any problem.
So I think all is OK.
The kernel code seems to use inet_addrtot(), not addrtot(). That is still
part of addrtot.o.
It looks as if the kernel coded could be simplified by adding some
wrappers for addrtoa/inet_addrtot and subnettoa/subnet6toa.
More information about the Swan-dev
mailing list