From: Erik Hensema <erik@hensema.net>
To: netdev@oss.sgi.com
Subject: RFC: promote netfilter MARK value from IPv6 packets to sit packets
Date: Mon, 17 Feb 2003 15:57:27 +0100 [thread overview]
Message-ID: <20030217145727.GA3413@hensema.net> (raw)
Hi,
I'm new to the list, so be gentle with your flames ;-)
On my outgoing connection to the internet I provide QoS using ratelimiting
and prioritizing packets. However, it's a cablemodem and my provider only
speaks IPv4. Over the connections I run multiple IPv6 tunnels, and I want
to provide QoS on these tunnels too.
QoS however can only be provided on the physical outgoing interface. On
that level, I can only see IPv4 packets and therefore it's impossible to
provide QoS on IPv6 for me.
In order to be able to provide QoS on tunneled IPv6 connections, I've
created a simple patch (definately not ready for inclusion in the kernel,
since it surely needs a configuration option) which promotes the netfilter
MARK value from the IPv6 packets to the sit packets.
Now I can mark packets using ip6tables, and on the ipv4 level I can still
differentiate between the priorities. Problem solved, I'm happy ;-)
Below is the patch, created on Linux 2.4.19:
--- net/ipv6/sit.c.orig Mon Feb 17 15:30:41 2003
+++ net/ipv6/sit.c Mon Feb 17 15:29:40 2003
@@ -571,6 +571,9 @@
}
if (skb->sk)
skb_set_owner_w(new_skb, skb->sk);
+#ifdef CONFIG_NETFILTER
+ new_skb->nfmark = skb->nfmark;
+#endif
dev_kfree_skb(skb);
skb = new_skb;
}
--
Erik Hensema (erik@hensema.net)
next reply other threads:[~2003-02-17 14:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 14:57 Erik Hensema [this message]
2003-02-23 19:33 ` RFC: promote netfilter MARK value from IPv6 packets to sit packets Harald Welte
2003-02-23 23:42 ` Erik Hensema
2003-02-24 13:41 ` jamal
2003-02-24 14:41 ` Harald Welte
2003-02-25 2:30 ` jamal
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=20030217145727.GA3413@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).