Author Topic: Development - Libpcap, Tcpdump, Nmap  (Read 2908 times)

realm

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Development - Libpcap, Tcpdump, Nmap
« on: December 21, 2004, 11:26:31 am »
I've been attempting to get tcpdump and nmap to work, I got libpcap 3.8.3 compiled using
./configure --with-pcap=linux --enable-ipv6.  after downgrading bison to 1.75 from 1.85 to fix a broken pipe error compiling libpcap.

when I run nmap i get:
pcap_open_live: live packet capture not supported on this system.
and tcpdump only captures local traffic i generate.

any idea what i'm doing wrong? The only thing to go on i've found so far is that packet_socket may not be enabled in the kernel. I've had a hard time trying to find the source and config file for the kernel in rc5. if that is the problem and someone points me in the right direction i'd be happy to post it and the network utils for people to grab.

Thanks in advance for any help.
« Last Edit: December 21, 2004, 11:27:17 am by realm »
SL-C860   r197
SL-C3000 Angstrom with e17 /1 Gig SD/Senao Wifi/CF Bluetooth/CF GPS

chrisd

  • Newbie
  • *
  • Posts: 18
    • View Profile
Development - Libpcap, Tcpdump, Nmap
« Reply #1 on: December 22, 2004, 05:27:07 pm »
IPv6 isn't enabled in the kernel. Maybe that's causing your problem. Try compiling it without ipv6 support. I'd like to see ipv6 enabled in the kernel, but that's an other matter.

conundrum

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Development - Libpcap, Tcpdump, Nmap
« Reply #2 on: December 22, 2004, 09:49:02 pm »
I was considering trying to compile pcap as well, but until I figure out pine I've decided to hold off.  Epic was easy enough, but so much effort...just for pico.

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Development - Libpcap, Tcpdump, Nmap
« Reply #3 on: December 22, 2004, 10:20:49 pm »
Quote
I was considering trying to compile pcap as well, but until I figure out pine I've decided to hold off.  Epic was easy enough, but so much effort...just for pico.
If you're after an editor like pico then I suggest you try nano instead.  It's a pico clone with enhancements and saves you having to compile the entire pine package!
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

conundrum

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Development - Libpcap, Tcpdump, Nmap
« Reply #4 on: December 23, 2004, 12:18:53 am »
Well, with patience and some time I was able to compile pico, and am happy to report that it works just fine.  I wiped out the other binaries and moved it to /bin (I compiled on my SD card for ext2 purposes).  For anyone else, make sure its on an ext2 mount and use ./build slx

I think maybe I will tackle tcpdump and libpcap over christmas break.

EDIT: I only use pico for simple text editing, when I don't want to do anything but get in, change something and be done.  Otherwise I would use something more robust like vim or nano.
« Last Edit: December 23, 2004, 12:20:19 am by conundrum »