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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:14:06+00:00 2026-06-17T18:14:06+00:00

In the system I am testing right now, it has a couple of virtual

  • 0

In the system I am testing right now, it has a couple of virtual L2 devices chained together to add our own L2.5 headers between Eth headers and IP headers. Now when I use

tcpdump -xx -i vir_device_1

, it actually shows the SLL header with IP header. How do I capture the full packet that is actually going out of the vir_device_1, i.e. after the ndo_start_xmit() device call?

  • 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-17T18:14:08+00:00Added an answer on June 17, 2026 at 6:14 pm

    How do I capture the full packet that is actually going out of the vir_device_1, i.e. after the ndo_start_xmit() device call?

    Either by writing your own code to directly use a PF_PACKET/SOCK_RAW socket (you say “SLL header”, so this is presumably Linux), or by:

    • making sure you’ve assigned a special ARPHRD_ value for your virtual interface;
    • using one of the DLT_USERn values for your special set of headers, or asking tcpdump-workers@lists.tcpdump.org for an official DLT_ value to be assigned for them;
    • modifying libpcap to map that ARPHRD_ value to the DLT_ value you’re using;
    • modifying tcpdump to handle that DLT_ value;
    • if necessary, modifying other programs that would capture on that interface or read capture files as written by tcpdump on that interface to handle that value as well.

    Note that the DLT_USERn values are specifically reserved for private use, and no official versions of libpcap, tcpdump, or Wireshark will ever assign them for their own use (i.e., if you use a DLT_USERn value, don’t bother contributing patches to assign that value to your type of headers, as they won’t be accepted; other people may already be using it for their own special headers, and that must continue to be supported), so you’ll have to maintain the modified versions of libpcap, tcpdump, etc. yourself if you use one of those values rather than getting an official value assigned.

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

Sidebar

Related Questions

I am writing a battleship program. Right now I am testing a couple lines
We are currently using Fitnesse for sub system testing. [All our applications are in
I am using Windows 2008 r2 64 bit system. While testing our script ,we
Situation right now: I've got a live-system and its running very well. I DO
Ok, so i have a test page right now that is just testing my
Right now, we have a small team of developers using TFS for our version
I'm currently stacked with the web service that im creating right now. when Testing
I am developing a windows mobile app. Right now I am just testing that
I'm trying to be better about unit testing my code, but right now I'm
Is it possible to use Visual Studio's testing system with native code? I have

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.