Lines 431-439
Link Here
|
431 |
"""Populate the conf.L2Socket and conf.L3Socket |
431 |
"""Populate the conf.L2Socket and conf.L3Socket |
432 |
according to the various use_* parameters |
432 |
according to the various use_* parameters |
433 |
""" |
433 |
""" |
434 |
if conf.use_bpf and not DARWIN: |
434 |
# if conf.use_bpf and not DARWIN: |
435 |
Interceptor.set_from_hook(conf, "use_bpf", False) |
435 |
# Interceptor.set_from_hook(conf, "use_bpf", False) |
436 |
raise ScapyInvalidPlatformException("Darwin (OSX) only !") |
436 |
# raise ScapyInvalidPlatformException("Darwin (OSX) only !") |
437 |
if conf.use_winpcapy and not WINDOWS: |
437 |
if conf.use_winpcapy and not WINDOWS: |
438 |
Interceptor.set_from_hook(conf, "use_winpcapy", False) |
438 |
Interceptor.set_from_hook(conf, "use_winpcapy", False) |
439 |
raise ScapyInvalidPlatformException("Windows only !") |
439 |
raise ScapyInvalidPlatformException("Windows only !") |