Skip to content

NLM: fix source address in server callbacks

Frank van Maarseveen linux-nfs 1 version In review

Get series with b4
b4 am 20070705152415.GA6603@janus

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3SUNRPC server: record the destination address of a requestinclude/linux/sunrpc/svcsock.h net/sunrpc/svcsock.c+21 -00 replies
2/3SUNRPC client: add interface for binding to a local addressinclude/linux/sunrpc/clnt.h include/linux/sunrpc/xprt.h net/sunrpc/clnt.c +2 more+37 -225 replies
3/3NLM: fix source address of callback to clientfs/lockd/host.c include/linux/lockd/lockd.h+20 -82 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] NLM: fix source address in server callbacks

The patch touches three areas so it has been split likewise.

The first patch changes the TCP server socket code to save the socket name right after an accept(). This local address of a connection (destination address of a request) is needed for connecting back when doing the callback later. For UDP the address was already saved for RPC replies because UDP is connectionless. This patch is IPv6 clean.

The second patch changes the NFS client code to be able to bind not only to a privileged port but also to bind to a specific local address. The client code is used by the server for callbacks.

The third patch is the actual NLM fix.

Signature · 10 lines
Frank

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs