Skip to content

Commit 974102f

Browse files
authored
Change get_if_raw_hwaddr to get_if_hwaddr (#4802)
I assume there was an update somewhere along the lines and the documentation here wasn't updated to reflect the new function name/functionality
1 parent 723441d commit 974102f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/scapy/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ Solution
16811681
Use Scapy to send a DHCP discover request and analyze the replies::
16821682

16831683
>>> conf.checkIPaddr = False
1684-
>>> fam,hw = get_if_raw_hwaddr(conf.iface)
1684+
>>> hw = get_if_hwaddr(conf.iface)
16851685
>>> dhcp_discover = Ether(dst="ff:ff:ff:ff:ff:ff")/IP(src="0.0.0.0",dst="255.255.255.255")/UDP(sport=68,dport=67)/BOOTP(chaddr=hw)/DHCP(options=[("message-type","discover"),"end"])
16861686
>>> ans, unans = srp(dhcp_discover, multi=True) # Press CTRL-C after several seconds
16871687
Begin emission:

0 commit comments

Comments
 (0)