Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scapy/arch/bpf/pfroute.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,8 @@ def read_routes():
if DARWIN and flags.RTF_WASCLONED and msg.rtm_parentflags.RTF_PRCLONING:
# OSX needs filtering
continue
if NETBSD and flags.RTF_LLDATA:
continue
addrs = msg.rtm_addrs
net = 0
mask = 0xFFFFFFFF
Expand Down Expand Up @@ -1138,6 +1140,8 @@ def read_routes6():
if DARWIN and flags.RTF_WASCLONED and msg.rtm_parentflags.RTF_PRCLONING:
# OSX needs filtering
continue
if NETBSD and flags.RTF_LLDATA:
continue
addrs = msg.rtm_addrs
prefix = "::"
plen = 128
Expand Down
5 changes: 0 additions & 5 deletions test/regression.uts
Original file line number Diff line number Diff line change
Expand Up @@ -3443,7 +3443,6 @@ assert routes == [
(2130706433, 4294967295, '0.0.0.0', 'lo0', '127.0.0.1', 1),
(2887237632, 4294963200, '0.0.0.0', 'hvn0', '172.23.207.191', 1),
(2887241663, 4294967295, '0.0.0.0', 'lo0', '172.23.207.191', 1),
(2887237633, 4294967295, '0.0.0.0', 'hvn0', '', 1),
(3758096384, 4026531840, '0.0.0.0', 'hvn0', '172.23.207.191', 250),
(3758096384, 4026531840, '0.0.0.0', 'lo0', '127.0.0.1', 250)
]
Expand Down Expand Up @@ -3508,8 +3507,6 @@ assert routes == [
(167772687, 4294967295, '0.0.0.0', 'lo0', '10.0.2.15', 1),
(2130706432, 4278190080, '127.0.0.1', 'lo0', '127.0.0.1', 1),
(2130706433, 4294967295, '0.0.0.0', 'lo0', '127.0.0.1', 1),
(167772674, 4294967295, '0.0.0.0', 'wm0', '', 1),
(167772675, 4294967295, '0.0.0.0', 'wm0', '', 1),
(3758096384, 4026531840, '0.0.0.0', 'wm0', '10.0.2.15', 250),
(3758096384, 4026531840, '0.0.0.0', 'lo0', '127.0.0.1', 250)
]
Expand Down Expand Up @@ -3563,8 +3560,6 @@ assert routes == [
('ff01::', 32, '::1', 'lo0', ['::1'], 1),
('ff02::', 32, '::', 'wm0', ['fe80::a00:27ff:feed:60bb'], 1),
('ff02::', 32, '::1', 'lo0', ['::1'], 1),
('fe80::2', 128, '::', 'wm0', [], 1),
('fd17:625c:f037:2::3', 128, '::', 'wm0', [], 1),
('ff00::',
8,
'::',
Expand Down
Loading