Hi Bartosz, * Bartosz Marcin Kojak <bar...@6bone.be> wrote: > I want to be able to write rules for module through sysctl (rule > will contain IP addresses in human-readable format, e.g. > "uid:1002:192.168.2.3") and I'm wondering how to translate addresses > to network byte order without inet_* functions.
Wouldn't it be possible to do the conversion in userspace and write something like a struct sockaddr_storage/in_addr_t/etc to the kernel? That way you can avoid the string handling in kernel space entirely. -- Ed Schouten <e...@80386.nl> WWW: http://80386.nl/
pgpADusBRjZe7.pgp
Description: PGP signature