|
@ -1076,7 +1076,7 @@ |
|
|
+#endif /* _IP_CONNTRACK_RTSP_H */
|
|
|
+#endif /* _IP_CONNTRACK_RTSP_H */
|
|
|
--- /dev/null
|
|
|
--- /dev/null
|
|
|
+++ b/extensions/rtsp/nf_nat_rtsp.c
|
|
|
+++ b/extensions/rtsp/nf_nat_rtsp.c
|
|
|
@@ -0,0 +1,634 @@
|
|
|
|
|
|
|
|
|
@@ -0,0 +1,636 @@
|
|
|
+/*
|
|
|
+/*
|
|
|
+ * RTSP extension for TCP NAT alteration
|
|
|
+ * RTSP extension for TCP NAT alteration
|
|
|
+ * (C) 2003 by Tom Marshall <tmarshall at real.com>
|
|
|
+ * (C) 2003 by Tom Marshall <tmarshall at real.com>
|
|
@ -1630,7 +1630,9 @@ |
|
|
+
|
|
|
+
|
|
|
+static void nf_nat_rtsp_expected(struct nf_conn* ct, struct nf_conntrack_expect *exp)
|
|
|
+static void nf_nat_rtsp_expected(struct nf_conn* ct, struct nf_conntrack_expect *exp)
|
|
|
+{
|
|
|
+{
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
|
|
|
|
|
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,18,0)
|
|
|
|
|
|
+ struct nf_nat_range2 range;
|
|
|
|
|
|
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
|
|
|
+ struct nf_nat_range range;
|
|
|
+ struct nf_nat_range range;
|
|
|
+#else
|
|
|
+#else
|
|
|
+ struct nf_nat_ipv4_range range;
|
|
|
+ struct nf_nat_ipv4_range range;
|
|
|