MCPcopy Create free account
hub / github.com/secdev/scapy / inet_register_l3

Function inet_register_l3

scapy/layers/inet.py:1377–1381  ·  view source on GitHub ↗

Resolves the default L2 destination address when IP is used.

(l2, l3)

Source from the content-addressed store, hash-verified

1375
1376
1377def inet_register_l3(l2, l3):
1378 """
1379 Resolves the default L2 destination address when IP is used.
1380 """
1381 return getmacbyip(l3.dst)
1382
1383
1384conf.neighbor.register_l3(Ether, IP, inet_register_l3)

Callers

nothing calls this directly

Calls 1

getmacbyipFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…