Skip to content

Commit 08dd8c2

Browse files
committed
fix: correct chainCC parameter usage in neighsol() sniff implementation │
│ │ │ Replace store=True with chainCC parameter in sniff() call and change default chainCC value from 0 to False to match scapy │ │ conventions.
1 parent 5238209 commit 08dd8c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scapy/layers/inet6.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117

118118

119119
@conf.commands.register
120-
def neighsol(addr, src, iface, timeout=1, chainCC=0):
120+
def neighsol(addr, src, iface, timeout=1, chainCC=False):
121121
"""Sends and receive an ICMPv6 Neighbor Solicitation message
122122
123123
This function sends an ICMPv6 Neighbor Solicitation message
@@ -153,7 +153,7 @@ def _match(pkt):
153153
lfilter=_match,
154154
started_callback=lambda: sendp(p, type=ETH_P_IPV6, iface=iface, verbose=0),
155155
count=1,
156-
store=True
156+
chainCC=chainCC
157157
)
158158

159159
if matches:

0 commit comments

Comments
 (0)