Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:32:26+00:00 2026-06-10T04:32:26+00:00

Is there any information in the struct skbuff to distinguish between the forwarding traffic

  • 0

Is there any information in the struct skbuff to distinguish between the forwarding traffic (bridge forwarding and ip forwarding) and locally originated traffic? We want to treat these two kinds of traffic differently in the network driver because the forwarding traffic do not require cache invalidation on the whole packet size.

Any suggestions are appreciated. Thank you very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:32:27+00:00Added an answer on June 10, 2026 at 4:32 am

    Yes it’s possible, you can try to follow the life cycle of a receiving packet by looking at all calls from this function ip_rcv_finish (http://lxr.free-electrons.com/source/net/ipv4/ip_input.c?v=3.3#L317).

    The struct struct sk_buff contain a pointer to the destination entry :

    struct  dst_entry   *dst;
    

    which contain a function pointer :

    int (*input)(struct sk_buff*);
    

    to call for the input packet, in the case of local packet the kernel call ip_local_deliver function and for the forwarding packet it calls ip_forward function.

    I think that you can, check like this for local and forwarded packets:

    – Local :

    /*  struct sk_buff *skb : Entry packet */
    if (((struct rtable *)skb->dst)->rt_type == RTN_LOCAL)
    {
        /* This packet is to consume locally */
    }
    

    – Forward :

    if (((struct rtable *)skb->dst)->rt_type == RTN_UNICAST)
    {
        /* This packet will be forwarded */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know if there are any existing benchmarks and sizing information for
Is there any information available for the next version ( 2011 ) of Delphi
Is there any way to retrieve information about how many extra displays there are
Is there any way to output/display information from a MATLAB program without an ending
Is there any way to get time-related information in directions from the Google Maps
Is there any way where we can pick up some information from another web
Is there any library in C for Linux to get gpu information for example
I've seen this here and there, but can't find any information regarding this thing.
Is there any functional difference in Python between a try statement and an if
I'm trying to find any information about template keyword used as disambiguator, but there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.