RPC & RSH modules
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · David Stes
Hello,
As explained before, I'd like to do maintenance of the RPC/RSH modules in patch-o-matic-ng.
You have asked me to send email to netfilter-devel mailing list, which I did.
Quoted 7 lines
There's not much reaction there, except for
1) apparently the authors of RPC/RSH modules do not read the list
2) the only reaction I got was "we do not needrexec()or NFS modules"That is not helpful. It is a shame that in Linux 2.4 one can use
netfilter for NFS and rexec (rcmd), and this is broken in Linux 2.6.
Yes. And it's a shame that my time is so limited that I wasn't able to provide you any assistance/support so far.
I've now merged
- your linux-2.6.12.4 version of the rsh tracke
- your rsh/linux/ (2.4 port) legato additions. They contained whitespace problems (8 spaces instead of tabs, ...). Please fix this yourself in the future.
- your 2.6.12.4 port of rpc
- your 2.4 updates to rpc
I did not (yet) merge
- your rsh/linux-2.6.11 modifications (linux-2.6.11.diff attached to this mail)
I don't understand what their purpose is. You re-introduce the lckhelp.h macros, but why? They've always been optional, so th current code should work. please clarify.
- your "Requires" change to rpc/info. I don't think that our parser can parse the word "or" (the info files are parsed by "runme")
Quoted 1 line
In attach, already some work that I've sent many times.
For the future, please only submit unified diffs that apply with "-p1" from the "patch-o-matic-ng" directory. No gzip, no tarballs, etc.
Also, submit each feature as a separate patch, like it can be observed on many kernel related mailinglists (i.e.
[PATCH 1/x] legato networker support for 2.4 [PATCH 2/x] Port of rpc helper to 2.6.12.4
etc.
you can easily maintain such series of patches by the "quilt" tool.
Quoted 3 lines
But as long as this is not under "revision control" it is really hard : I see that sometimes changes are made, and then the RPC/RSH is broken again of course.
sorry again.
Quoted 2 lines
Is it please possible to apply the changes in attach - or alternatively explain me how to "svn commit" these changes :
it's applied.
We usually don't give svn write access to patch-o-matic to developers of individual patchlets. Please send patches like I've described above. This will make it easier for us to review (and therefore hopefully make us apply or reject it quickly).
If you again feel that development is overly delayed or hampered by our lack of timely response, please send me (private) email and I'll consider giving you svn access.
For the future, we'd like to see patch-o-matic go into something like an "apt-get" approach: Patches are always fetched online, from a list of repositories (sources.list).
This way developers like you can operate their own patch-o-matic-ng repository (anywhere, but including people.netfilter.org accounts which we provide)...
Quoted 2 lines
the goal is that I'd like to help to keep the NFS module working, because this was really useful netfilter functionality in the past.
I agree that NFS conntrack is a cool thing to have. What's the status on this ? Which with NFS versions does it work? Does it support nfs over TCP, too (becomes more and more frequent)?
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
include/linux/netfilter_ipv4/ip_conntrack_rsh.h renamed from ../rsh/linux-2.6.11/include/linux/netfilter_ipv4/ip_conntrack_rsh.h +7 -0
@@ -12,6 +12,13 @@#ifndef _IP_CONNTRACK_RSH_H#define _IP_CONNTRACK_RSH_H +#ifdef __KERNEL__ +#include <linux/netfilter_ipv4/lockhelp.h> + +DECLARE_LOCK_EXTERN (ip_rsh_lock); +#endif + +#define RSH_PORT 514/* This structure is per expected connection */
net/ipv4/netfilter/ip_conntrack_rsh.c renamed from ../rsh/linux-2.6.11/net/ipv4/netfilter/ip_conntrack_rsh.c +4 -3
@@ -103,6 +103,7 @@#include <net/checksum.h> #include <net/tcp.h> +#include <linux/netfilter_ipv4/lockhelp.h> #include <linux/netfilter_ipv4/ip_tables.h> #include <linux/netfilter_ipv4/ip_conntrack_helper.h> #include <linux/netfilter_ipv4/ip_conntrack_rsh.h>
@@ -119,7 +120,7 @@MODULE_PARM_DESC (ports,"port numbers of RSH servers" );#endif -static DEFINE_SPINLOCK (rsh_buffer_lock); +static DECLARE_LOCK (rsh_buffer_lock);static char rsh_buffer[65535 ]; unsigned int (*ip_nat_rsh_hook)(struct sk_buff **pskb,
@@ -178,7 +179,7 @@if (dataoff >= (*pskb)->len)return NF_ACCEPT ; -spin_lock_bh (&rsh_buffer_lock); +LOCK_BH (&rsh_buffer_lock); rb_ptr =skb_header_pointer (*pskb, dataoff, (*pskb)->len - dataoff, rsh_buffer);BUG_ON (rb_ptr ==NULL );
@@ -255,7 +256,7 @@ ntohs(exp->mask.dst.u.tcp.port)); out: -spin_unlock_bh (&rsh_buffer_lock); +UNLOCK_BH (&rsh_buffer_lock);return ret; }