Skip to content

Commit

Permalink
Remove unnecessary check (#4528)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpotter2 authored Sep 7, 2024
1 parent 1c09692 commit 867f92a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scapy/arch/linux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ def attach_filter(sock, bpf_filter, iface):
def set_promisc(s, iff, val=1):
# type: (socket.socket, _GlobInterfaceType, int) -> None
_iff = resolve_iface(iff)
if not _iff.is_valid():
raise OSError("set_promisc: Unknown interface %s" % iff)
mreq = struct.pack("IHH8s", _iff.index, PACKET_MR_PROMISC, 0, b"")
if val:
cmd = PACKET_ADD_MEMBERSHIP
Expand Down

0 comments on commit 867f92a

Please sign in to comment.