sniffing packets

sniffing packets

Post by Andrew DIK » Fri, 10 Nov 2000 04:00:00



Hi everyone,

I'm fairly new to socket programming and I'm trying to make a program
that will sniff packets on a LAN network and display them graphically.
I've heard of a packet capture library called 'libcap'. I would like to
know if the functions in this library are those described in many FAQ's
as socket() and bind() etc., or are they something different. I'm
running SuSE Linux 6.4 and there no man page for it and I can't find any
documentation on the web. Can anyone tell me where to get documentation
for libcap, or any other library that performs similar functions.

Thx
--
----------------------

P.S Would libnet (www.packetfactory.net/libnet) help?

 
 
 

sniffing packets

Post by David Pete » Fri, 10 Nov 2000 04:00:00


You probably want libpcap and tcpdump. See http://www.tcpdump.org

> Hi everyone,

> I'm fairly new to socket programming and I'm trying to make a program
> that will sniff packets on a LAN network and display them graphically.
> I've heard of a packet capture library called 'libcap'. I would like to
> know if the functions in this library are those described in many FAQ's
> as socket() and bind() etc., or are they something different. I'm
> running SuSE Linux 6.4 and there no man page for it and I can't find any
> documentation on the web. Can anyone tell me where to get documentation
> for libcap, or any other library that performs similar functions.

> Thx
> --
> ----------------------

> P.S Would libnet (www.packetfactory.net/libnet) help?


 
 
 

sniffing packets

Post by Barry Margoli » Fri, 10 Nov 2000 04:00:00




Quote:>Hi everyone,

>I'm fairly new to socket programming and I'm trying to make a program
>that will sniff packets on a LAN network and display them graphically.
>I've heard of a packet capture library called 'libcap'. I would like to
>know if the functions in this library are those described in many FAQ's
>as socket() and bind() etc., or are they something different. I'm

They're something different.  Socket(), bind(), are the functions used for
normal network communications.

Quote:>running SuSE Linux 6.4 and there no man page for it and I can't find any
>documentation on the web. Can anyone tell me where to get documentation
>for libcap, or any other library that performs similar functions.

See the Raw Sockets FAQ, which can be found at www.faqs.org.

--

Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

sniffing packets

Post by Andrew DIK » Sat, 11 Nov 2000 04:00:00


Thanks guys, I think I'm a little clearer on what I need to do now.
--
----------------------

 
 
 

1. URGENT HELP - Erratic behaviour in sniffing packets using an Aironet 350 series PCI card

I am trying to sniff packets using an Aironet 350 series PCI card, on
a 2.4.18-3 kernel. The problem is that it is very erratic. I send out
packets from my laptop which has an Orinoco Gold card. The sniffer
that I have written was working perfectly well, until suddenly,
without any change in software, the Aironet card stopped catching any
packets from the laptop. Just as suddenly, it started again, and is
now again not capturing any packets from the laptop. It is able to
sniff other packets perfectly, including the beacons. Both the cards
are on the same channel. The laptop is definitely sending packets as I
am accessing the internet on a wireless connection.

What could be the reason for the erratic behaviour while sniffing?

Thanks,
Vishal

2. Apache-ssl Tech Needed

3. Sniffing packets where source host = dest. host

4. Can I get tvtwm(used on HP's) for a pc?

5. dump/sniff packets

6. UDMA CDrom problem...

7. Java Library for Sniffing Packets

8. Sun System Administrator exam

9. Packet sniffing software

10. Packet sniffing in Solaris x86

11. Packet sniffing with Solaris 2.4

12. Packet sniffing?

13. PD Software to sniff SNA packets on the network