tcpdump mailing list archives
Re: [tcpdump-workers]
From: "Amine Mustapha Smaali" <mustapha.smaali () setcom eu>
Date: Mon, 24 Sep 2007 18:57:49 +0200
Hi Harley, I'm trying to use internal stack functions. I found that the function netisr_queue() is delivering packets to IP layer. When I'm calling this function in my C program the compiler does not know this function even I include netisr.h. It seems that it needs the library to be included during the compilation but I don't know what is the lib file including the function netisr_queue(). Do you have any idea on how to inject the packet into local stack? Thanks and BRs, Mustapha -----Original Message----- From: tcpdump-workers-owner () lists tcpdump org [mailto:tcpdump-workers-owner () lists tcpdump org]On Behalf Of Harley Stenzel Sent: Montag, 24. September 2007 18:17 To: tcpdump-workers () lists tcpdump org Subject: Re: [tcpdump-workers] On 9/24/07, Amine Mustapha Smaali <mustapha.smaali () setcom eu> wrote:
Hi All, I'm a new member in this maling list and I'm pleased to join this list. So, I have one question concerning the libpcap. I wrote a C code to wait
for
specific ethernet frames. The frames received contains TCP/IP packets encapsulated in ESP packets. Those packets are destinated to the machine (FreeBSD machine with more than 1 IP address) capting the frames. My question is how to pass the TCP/IP packets received to the TCP/IP stack of the system? In other word, I have process running on the system which creates a TCP socket and which is waiting for those TCP/IP packets?
This is not something that libpcap can be used for. Look at raw sockets or tun/tap sorts to do the injection into local stack. --Harley - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [tcpdump-workers] Amine Mustapha Smaali (Sep 24)
- Re: [tcpdump-workers] Harley Stenzel (Sep 24)
- Re: [tcpdump-workers] Amine Mustapha Smaali (Sep 24)
- Re: [tcpdump-workers] Harley Stenzel (Sep 24)
- Re: [tcpdump-workers] Amine Mustapha Smaali (Sep 24)
- Re: [tcpdump-workers] Harley Stenzel (Sep 24)