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

  • Home
  • SEARCH
  • 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 3596136
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:56:45+00:00 2026-05-18T19:56:45+00:00

currently thinking on a possibility to sniff at the same interface using only pcap

  • 0

currently thinking on a possibility to sniff at the same interface using only pcap and also inject the packets using pcap_inject.

The thing can be solved easily using either:

  • persistent checksum tracking /large slow map/,
  • checksum tracking – until all the data was injected, say, a first http request;
  • hacking bpf/libipq/Netfilter to carry additional parameter for each real PHY packet

But:

pcap listens eth0 /realworld situation is closer to “pcap listens and drops via source magic”/, pcap sends packet via eth0’s handle so they can be routed out. What is the theorethical base for libpcap to not capture packets that were injected to same interface using same library – e.g, injected packets are not going through all Berkeley’s packet filter code?

Practical test TBD.

  • 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-05-18T19:56:46+00:00Added an answer on May 18, 2026 at 7:56 pm

    Your question is hard to parse, but if I understand you correctly, you’re looking for a way to capture packets that excludes the ones you are injecting. You can do this by using a capture filter that looks only at what is sent to the relevant interface on your machine…

    ether dst aa:bb:cc:dd:ee:ff 
    

    … or that captures all except what is sent on the relevant interfance:

    not ether src aa:bb:cc:dd:ee:ff
    

    This will affect traffic from your machine other than what you are injecting, but if you capture and inject then you likely do not care about your own machine’s packets anyway. If you need something more custom, it should not be hard to identify the packets you have just sent in the captured packets. (I suppose that’s what you mean by checksumming, but I don’t see an immediate table problem.)

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

Sidebar

Related Questions

currently thinking on a possibility to sniff at the same interface using only pcap
I've been thinking about the deployment process I am currently using, and I am
I would love to find alternatives to using MySQL + PHP. Currently thinking of
I'm currently thinking how I could protect my REST API which is used only
Currently thinking about pitching the argument for us migration from vs 2005 (winforms) to
We are currently thinking of building a cache-system to hold data pulled out of
I am currently thinking about open-sourcing a project of mine and am in the
I'm currently thinking of a new pet project, an editor for MIDI-enabled synths. I've
I'm currently thinking of developing chess code with multi-player facility connected and played via
currently i'm thinking on where's the best place in my code where i must

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.