Skip to content

Commit 867f92a

Browse files
authored
Remove unnecessary check (#4528)
1 parent 1c09692 commit 867f92a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

scapy/arch/linux/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ def attach_filter(sock, bpf_filter, iface):
142142
def set_promisc(s, iff, val=1):
143143
# type: (socket.socket, _GlobInterfaceType, int) -> None
144144
_iff = resolve_iface(iff)
145-
if not _iff.is_valid():
146-
raise OSError("set_promisc: Unknown interface %s" % iff)
147145
mreq = struct.pack("IHH8s", _iff.index, PACKET_MR_PROMISC, 0, b"")
148146
if val:
149147
cmd = PACKET_ADD_MEMBERSHIP

0 commit comments

Comments
 (0)