public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Mattias Rönnblom" <hofors@lysator•liu.se>
To: netdev@vger•kernel.org
Subject: ip6_dst_dev for IPv4
Date: Fri, 26 Mar 2010 17:59:47 +0100	[thread overview]
Message-ID: <871vf76mt8.fsf@isengard.friendlyfire.se> (raw)

Hi,

I'm implemeting per-interface SNMP-style network statistics for IPv4,
just like what already exists in the current kernel for IPv6
(/proc/net/dev_snmp6).

For output packets one needs to determine the output interface, and
the v6 statistics uses the ip6_dst_idev() function (ip6_fib.h). I
can't seem to find a corresponding function for IPv4. Is there?

Would someting like:
struct in_device* out_dev = in_dev_get(skb_dst(skb)->dev);
work?

Best regards,
     Mattias


                 reply	other threads:[~2010-03-26 17:28 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=871vf76mt8.fsf@isengard.friendlyfire.se \
    --to=hofors@lysator$(echo .)liu.se \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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