From: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
To: <cake@lists.bufferbloat.net>
Subject: Re: [Cake] flow dissector idea/enhancement - help
Date: Fri, 1 Jul 2016 16:38:31 +0100 [thread overview]
Message-ID: <57768E77.8050803@darbyshire-bryant.me.uk> (raw)
In-Reply-To: <577625C8.2090605@darbyshire-bryant.me.uk>
On 01/07/16 09:11, Kevin Darbyshire-Bryant wrote:
>
>
>> I'm beginning to think there's a reason why enhanced sfq which is
>> where I found that code never made it upstream :-/ It's been/being
>> an interesting little diversion...and I've modified a kernel module
>> that so far doesn't crash :-)
>>
>> KDB
> The brain cell awoke with the thought that 'we don't need all the
> conntrack info filled in, all we need is to find the conntrack entry
> matching the src/dst tuple depending on direction. nf_ct_get(skb,
> &ctinfo) is a function of convenience....we need to do it the
> inconvenient way. there's gotta be conntrack tuple lookups available
> and we must have enough info for this as the skb is right there. KDB
> goes digging.
>
> KDB
If I'm honest I'm getting a little despondent. Coding right at the
limit of your understand of C and the kernel and everything else is
really, really tiring and hard.
I discovered net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c has static int
getorigdst(struct sock *sk, int optval, void __user *user, int *len)
The comment above it is
/* Fast function for those who don't want to parse /proc (and I don't
blame them). */
/* Reversing the socket's dst/src point of view gives us the reply
mapping. */
Those interested to see how bad my C really is can
https://github.com/kdarbyshirebryant/sch_cake/tree/demasq
Maybe those who know what they're doing can offer some assistance.
Cheers,
Kevin
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
next prev parent reply other threads:[~2016-07-01 15:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 11:09 Kevin Darbyshire-Bryant
2016-06-02 12:29 ` Jonathan Morton
2016-06-30 9:33 ` Kevin Darbyshire-Bryant
2016-06-30 10:27 ` Jonathan Morton
2016-06-30 19:23 ` Kevin Darbyshire-Bryant
2016-07-01 8:11 ` Kevin Darbyshire-Bryant
2016-07-01 15:38 ` Kevin Darbyshire-Bryant [this message]
2016-07-02 12:47 ` [Cake] conntrack and ipv6 Dave Täht
2016-07-02 13:00 ` moeller0
2016-07-03 6:16 ` David Lang
2016-07-03 7:44 ` Jonathan Morton
2016-07-03 21:12 ` [Cake] [Cerowrt-devel] " moeller0
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
List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57768E77.8050803@darbyshire-bryant.me.uk \
--to=kevin@darbyshire-bryant.me.uk \
--cc=cake@lists.bufferbloat.net \
/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