pom-ng: update mms-conntrack-nat for 2.6.12
PATCH 1/3 pom-ng: update mms-conntrack-nat for 2.6.12
Hi,
the attached patch updates the mms-conntrack-nat patchlet in pom-ng for 2.6.12.
Compile-tested by Jérôme Poulin and me on 2.6.13-rc3-mm1, functionality tested by Jérôme, works.
Regards,
Sven
Signature · 2 lines
Linux zion 2.6.13-rc3-mm1 #12 PREEMPT Sun Jul 24 02:04:45 CEST 2005 i686 athlon i386 GNU/Linux 21:03:54 up 1 day, 21:13, 1 user, load average: 0.47, 0.70, 0.35
patchlets/mms-conntrack-nat/linux-2.6.12/include/linux/netfilter_ipv4/ip_conntrack.h.ladd +2 -0
@@ -0,0 +1,2 @@ + /* insert conntrack helper private data (master) here */ + struct ip_ct_mms_master ct_mms_info;
patchlets/mms-conntrack-nat/linux-2.6.12/include/linux/netfilter_ipv4/ip_conntrack.h.ladd_2 +2 -0
@@ -0,0 +1,2 @@ +/* Add protocol helper include file here */ +#include <linux/netfilter_ipv4/ip_conntrack_mms.h>
patchlets/mms-conntrack-nat/linux-2.6.12/include/linux/netfilter_ipv4/ip_conntrack_mms.h +36 -0
@@ -0,0 +1,36 @@ +#ifndef _IP_CONNTRACK_MMS_H +#define _IP_CONNTRACK_MMS_H +/* MMS tracking. */ + +#ifdef __KERNEL__ + +extern spinlock_t ip_mms_lock; + +#define MMS_PORT 1755 +#define MMS_SRV_MSG_ID 196610 + +#define MMS_SRV_MSG_OFFSET 36 +#define MMS_SRV_UNICODE_STRING_OFFSET 60 +#define MMS_SRV_CHUNKLENLV_OFFSET 16 +#define MMS_SRV_CHUNKLENLM_OFFSET 32 +#define MMS_SRV_MESSAGELENGTH_OFFSET 8 + +/* This structure is per expected connection */ +struct ip_ct_mms_expect { +u_int32_t offset; +u_int32_t len; +u_int32_t padding; +u_int16_t port; +}; + +/* This structure exists only once per master */ +struct ip_ct_mms_master { +}; + +struct ip_conntrack_expect ; +extern unsigned int (*ip_nat_mms_hook)(struct sk_buff **pskb, +enum ip_conntrack_info ctinfo, +const struct ip_ct_mms_expect *exp_mms_info, +struct ip_conntrack_expect *exp); +#endif +#endif /* _IP_CONNTRACK_MMS_H */
patchlets/mms-conntrack-nat/linux-2.6.12/net/ipv4/netfilter/ip_conntrack_mms.c +352 -0
352 lines not on this page · raw message
patchlets/mms-conntrack-nat/linux-2.6.12/net/ipv4/netfilter/ip_nat_mms.c +195 -0
195 lines not on this page · raw message
patchlets/mms-conntrack-nat/linux-2.6.12/net/ipv4/netfilter/Kconfig.ladd +17 -0
@@ -0,0 +1,17 @@ +config IP_NF_NAT_MMS + tristate + depends on IP_NF_CONNTRACK!=n && IP_NF_NAT!=n + default IP_NF_NAT if IP_NF_MMS=y + default m if IP_NF_MMS=m + +config IP_NF_MMS + tristate 'MMS protocol support' + depends on IP_NF_CONNTRACK + help + Tracking MMS (Microsoft Windows Media Services) connections + could be problematic if random ports are used to send the + streaming content. This option allows users to track streaming + connections over random UDP or TCP ports. + + If you want to compile it as a module, say M here and read + <file:Documentation/modules.txt>. If unsure, say `Y'.
patchlets/mms-conntrack-nat/linux-2.6.12/net/ipv4/netfilter/Makefile.ladd +2 -0
@@ -0,0 +1,2 @@ +# NAT helpers +obj-$(CONFIG_IP_NF_NAT_MMS) += ip_nat_mms.o
patchlets/mms-conntrack-nat/linux-2.6.12/net/ipv4/netfilter/Makefile.ladd_2 +2 -0
@@ -0,0 +1,2 @@ +# connection tracking helpers +obj-$(CONFIG_IP_NF_MMS) += ip_conntrack_mms.o
Harald Welte
AppliedQuoted 5 lines · Sven Schuster
Hi,
the attached patch updates the mms-conntrack-nat patchlet in pom-ng for 2.6.12.
thanks, applied.
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