Support for Linux transparent proxy & asm/types.h
Andi Kleen
ak@muc.de
Wed Dec 23 07:09:00 GMT 1998
Hallo,
I'm currently working on up-to-date networking man pages for the Linux
2.1/2.2 stack. I'm considering to document transparent proxies now. They
need a special version of sockaddr_in for the accept/recvmsg for dgram
socket case to pass the real destination address to the user (it is
simply mapped to the unused bytes of sockaddr_in with a second sockaddr_in).
Before I document it I would like to have an standard declaration of this
structure in glibc. Are there any plans to add it?
struct sockaddr_in_proxy {
struct sockaddr_in pin_proxy;
struct sockaddr_in pin_dest;
};
I know that the interface is rather ugly, but unfortunately now we're
stuck with it :/
On a related topic: I currently give this synopsis line for netlink sockets:
#include <linux/netlink.h>
nl_socket = socket(PF_NETLINK, ....);
To compile that snippet on glibc systems #include <asm/types.h> is needed.
Does glibc gurantee in future version that asm/types.h will continue to
work?
-Andi
More information about the Libc-alpha
mailing list