Opened 14 years ago

Closed 13 years ago

#22368 closed defect (worksforme)

ettercap-ng gets Fatal error on Snow Leopard at start up

Reported by: randy@… Owned by: ultrix@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: haspatch Cc: hsivank@…, fjovel@…
Port: ettercap-ng

Description

The initial Arp queries to build the host list failed causing this error.

"FATAL: ARP poisoning needs a non empty hosts list."

The PCAP_TIMEOUT for MACOSX used in pcap_open_live() is a bit short (10 ms). I'm not sure why there wasn't a more generous value used.

I bumped it up to 1000 ms and all is well.

Some users may not have had a problem before. I did on two different macbook pros.

Attachments (2)

Portfile-ettercap_ng.diff (452 bytes) - added by randy@… 14 years ago.
Portfile diff
patch_src_ec_capture.c (336 bytes) - added by randy@… 14 years ago.
new patch file

Download all attachments as: .zip

Change History (10)

Changed 14 years ago by randy@…

Attachment: Portfile-ettercap_ng.diff added

Portfile diff

Changed 14 years ago by randy@…

Attachment: patch_src_ec_capture.c added

new patch file

comment:1 Changed 14 years ago by hsivank@…

Cc: hsivank@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: ultrix@… removed
Keywords: haspatch added
Owner: changed from macports-tickets@… to ultrix@…

comment:3 Changed 14 years ago by fjovel@…

Cc: fjovel@… added

Cc Me!

comment:4 Changed 14 years ago by fjovel@…

hsivank, I tried looking for the file that contains the PCAP_TIMEOUT but I'm having problems finding it. Could you please tell me were to find the file that contains this? Is this the only tweak you had to do to fix this? Thank You!

comment:5 Changed 14 years ago by hsivank@…

You can manually modify ec_capture.c but i'm not sure it is the better way.
Anyway you can find the build directory like this :

a/fetch and extract source :

port extract ettercap-ng

b/ get build directory

port work ettercap-ng

Or you can use the *classic* method
patch ettecap-ng's Porfile with Portfile-ettercap_ng.diff and copy patch_src_ec_capture.c in {ettecap-ng portfile directory}/files
(take a look at http://guide.macports.org/#development.patches.applying)

After, simply launch

sudo port install ettercap-ng

ec_capture.c will be automatically modified ...

comment:6 in reply to:  5 Changed 14 years ago by fjovel@…

Replying to hsivank@…:

You can manually modify ec_capture.c but i'm not sure it is the better way.
Anyway you can find the build directory like this :

a/fetch and extract source :

port extract ettercap-ng

Thank You!!! that solved the problem!!! b/ get build directory

port work ettercap-ng

Or you can use the *classic* method
patch ettecap-ng's Porfile with Portfile-ettercap_ng.diff and copy patch_src_ec_capture.c in {ettecap-ng portfile directory}/files
(take a look at http://guide.macports.org/#development.patches.applying)

After, simply launch

sudo port install ettercap-ng

ec_capture.c will be automatically modified ...

comment:7 Changed 14 years ago by fjovel@…

Hsivank thank you, the fix worked great!

comment:8 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Can't reproduce.

Note: See TracTickets for help on using tickets.