Re: [PATCH] per-packet UDP source address selection for sendmsg

2000-11-11 Thread Thomas Moestl
> As this is my first kernel patch, could someone please give it a quick > look before I submit it, so that I can be sure that it contains no stupid > glitches? > [...] > + bzero(&src, sizeof(src)); > + src.sin_family = AF_IN

[PATCH] per-packet UDP source address selection for sendmsg

2000-11-11 Thread Thomas Moestl
Hi, recently, I have written a kernel patch that makes sendmsg(2) honor IP_RECVDSTADDR ancillary data on UDP sockets, so that the source address can be set on a per-packet basis. This is very useful for servers that need to use UDP and want to answer with the same source address a query went to.