aboutsummaryrefslogtreecommitdiffstats
path: root/community/openvas/tcp_mss_include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/openvas/tcp_mss_include.patch')
-rw-r--r--community/openvas/tcp_mss_include.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/openvas/tcp_mss_include.patch b/community/openvas/tcp_mss_include.patch
new file mode 100644
index 0000000000..835111eda2
--- /dev/null
+++ b/community/openvas/tcp_mss_include.patch
@@ -0,0 +1,24 @@
+diff --git a/nasl/nasl_packet_forgery_v6.c b/nasl/nasl_packet_forgery_v6.c
+index a93302c..c255b0f 100644
+--- a/nasl/nasl_packet_forgery_v6.c
++++ b/nasl/nasl_packet_forgery_v6.c
+@@ -75,6 +75,7 @@
+ #define UNFIX(n) ntohs (n)
+ #endif
+
++#define TCP_MSS_DESIRED 1220U /* IPv6 (tunneled), EDNS0 (RFC3226) */
+ /*--------------[ cksum ]-----------------------------------------*/
+
+ /*
+diff --git a/nasl/nasl_packet_forgery.c b/nasl/nasl_packet_forgery.c
+index 7d185df..c0a5ffb 100644
+--- a/nasl/nasl_packet_forgery.c
++++ b/nasl/nasl_packet_forgery.c
+@@ -52,6 +52,7 @@
+ #define UNFIX(n) ntohs (n)
+ #endif
+
++#define TCP_MSS_DEFAULT 536U /* IPv4 (RFC1122, RFC2581) */
+ /*--------------[ cksum ]-----------------------------------------*/
+
+ /*