Ticket #149 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

scapy doesn't work on Mac OS X

Reported by: luis.kop@gmail.com Assigned to: pbi
Priority: minor Milestone: mainstream
Component: Scapy Version: 2.0.0.x
Keywords: Cc:

Description

Hi, I'm using Mac OS X 10.5 (Leopard) with intel.

I have a problem:

    from scapy.all import *
  File "/Library/Python/2.5/site-packages/scapy/all.py", line 24, in <module>
    from route6 import *
  File "/Library/Python/2.5/site-packages/scapy/route6.py", line 264, in <module>
    conf.route6 = Route6()
  File "/Library/Python/2.5/site-packages/scapy/route6.py", line 26, in __init__
    self.resync()
  File "/Library/Python/2.5/site-packages/scapy/route6.py", line 39, in resync
    self.routes = read_routes6()
  File "/Library/Python/2.5/site-packages/scapy/arch/unix.py", line 185, in read_routes6
    cset = construct_source_candidate_set(d, dp, devaddrs, scapy.arch.LOOPBACK_NAME)
NameError: global name 'construct_source_candidate_set' is not defined
bastiao:PacketManipulator luis$ 


Suggestion:

            cset = scapy.utils6.construct_source_candidate_set(d, dp, devaddrs, LOOPBACK
_NAME)
            #cset = construct_source_candidate_set(d, dp, devaddrs, scapy.arch.LOOPBACK_
NAME)


Attachments

Change History

(follow-up: ↓ 2 ) 10/26/08 08:11:22 changed by Dirk Loss

  • priority changed from major to minor.

I guess this fix would be more correct:

cset = scapy.utils6.construct_source_candidate_set(d, dp, 
                           devaddrs, scapy.arch.LOOPBACK_NAME)

(in reply to: ↑ 1 ) 10/26/08 10:27:33 changed by luis.kop@gmail.com

Replying to Dirk Loss:

I guess this fix would be more correct: {{{ cset = scapy.utils6.construct_source_candidate_set(d, dp, devaddrs, scapy.arch.LOOPBACK_NAME) }}}

Sure. It was my mistake.

10/27/08 23:37:52 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [5dc13e9e148e]


Add/Change #149 (scapy doesn't work on Mac OS X)




Change Properties
Action