This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Support for Linux transparent proxy & asm/types.h
- To: libc-alpha@cygnus.com
- Subject: Support for Linux transparent proxy & asm/types.h
- From: Andi Kleen <ak@muc.de>
- Date: Wed, 23 Dec 1998 06:34:48 +0100
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