From: Erik Hensema <erik@hensema.net>
To: netdev@oss.sgi.com
Subject: [Patch 2.4.21-pre4]: promote netfilter MARK values to sit packets
Date: Tue, 18 Feb 2003 13:13:31 +0100 [thread overview]
Message-ID: <20030218121331.GA5848@hensema.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
This is the patch I sent to the list yesterday, this time including config
options and help. The code should apply to at least 2.4.19 and up, the
Configure.help patch is made against 2.4.21-pre4.
Is this material for lkml and/or Marcello yet?
--
Erik Hensema (erik@hensema.net)
[-- Attachment #2: sit-promote-mark-2.4.21-pre4.diff --]
[-- Type: text/plain, Size: 1769 bytes --]
diff -ur linux-2.4.21-pre4/Documentation/Configure.help linux-2.4.21-pre4.patched/Documentation/Configure.help
--- linux-2.4.21-pre4/Documentation/Configure.help Tue Feb 18 12:54:18 2003
+++ linux-2.4.21-pre4.patched/Documentation/Configure.help Tue Feb 18 12:52:16 2003
@@ -5627,6 +5627,18 @@
It is safe to say N here for now.
+IPv6: Promote netfilter MARK value to sit packets
+CONFIG_IPV6_SIT_PROMOTE_MARK
+ If you use IPv6-in-IPv4 tunnels, you can use this option to mark
+ packets using ip6tables, and then match the sit (tunnel) packets
+ using iptables on the IPv4 level, or a tc fw match on the physical
+ outgoing interface.
+
+ You need this if you want to provide QoS on a tunnelled IPv6
+ connection.
+
+ If unsure, say N.
+
Kernel httpd acceleration
CONFIG_KHTTPD
The kernel httpd acceleration daemon (kHTTPd) is a (limited) web
diff -ur linux-2.4.21-pre4/net/ipv6/Config.in linux-2.4.21-pre4.patched/net/ipv6/Config.in
--- linux-2.4.21-pre4/net/ipv6/Config.in Fri Dec 21 18:42:05 2001
+++ linux-2.4.21-pre4.patched/net/ipv6/Config.in Tue Feb 18 12:48:50 2003
@@ -7,4 +7,8 @@
if [ "$CONFIG_NETFILTER" != "n" ]; then
source net/ipv6/netfilter/Config.in
+
+ if [ "$CONFIG_IP6_NF_IPTABLES" != "n" ] ; then
+ bool ' IPv6: Promote netfilter MARK value to sit packets' CONFIG_IPV6_SIT_PROMOTE_MARK
+ fi
fi
diff -ur linux-2.4.21-pre4/net/ipv6/sit.c linux-2.4.21-pre4.patched/net/ipv6/sit.c
--- linux-2.4.21-pre4/net/ipv6/sit.c Fri Nov 29 00:53:15 2002
+++ linux-2.4.21-pre4.patched/net/ipv6/sit.c Tue Feb 18 12:48:23 2003
@@ -571,6 +571,9 @@
}
if (skb->sk)
skb_set_owner_w(new_skb, skb->sk);
+#ifdef CONFIG_IPV6_SIT_PROMOTE_MARK
+ new_skb->nfmark = skb->nfmark;
+#endif
dev_kfree_skb(skb);
skb = new_skb;
}
reply other threads:[~2003-02-18 12:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030218121331.GA5848@hensema.net \
--to=erik@hensema.net \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).