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 7765627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:12:44+00:00 2026-06-01T15:12:44+00:00

Our scenario is as follow: When the TCP connection is established (we can check

  • 0

Our scenario is as follow: When the TCP connection is established (we can check this in tcp_set_state() function), we can find out the egress net_device of this connection via sk->sk_dst_cache->dev. With this net_device we can distinguish our net_device with other net_device on the system.

This approach failed when the egress device is a sub-interface of a bridge, because sk->sk_dst_cache->dev always points to the bridge. Is it possible to get the real net_device (struct net_bridge_port) under the bridge if we are currently at Layer 4.

Any suggestions are appreciated. Thanks and Best Regards.

  • 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-01T15:12:45+00:00Added an answer on June 1, 2026 at 3:12 pm

    The struct net_bridge has a list of member ports, port_list. The list contains struct net_bridge_port elements, which in turn contain the struct net_dev.

    You can get the struct net_bridge from the struct net_device of the bridge trivially:

    struct net_bridge *br = netdev_priv(dev);
    

    Of course, that still doesn’t tell you which of the member interfaces the packet came in on, but not knowing anything about why you’re trying to do this I can’t say if that’s a problem or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine this scenario: in our company there is an employee that play around graphic,css,html
Good Morning SO! We've been scratching our heads with with this interesting scenario at
This is my scenario: Our big customer demands that we should develop a part
We're building an application which uses ACS. Our usage scenario looks like this: The
Our current scenario is like this: we have an existing database that needs to
Our scenario: We have a main database that stores company-wide information. We have several
Here's our scenario: We've created a sharepoint 2007 calendar on our intranet site We
here is my scenario our team develops on AIX dozens of applications, mostly Perl,
I have a scenario where I am to send email using our own SMTP
HI, We are using NANT build scripts in our project. The scenario is as

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.