mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Add a note that ip_send is broken for IPv6 link-local destinations.
The function always extracts the address from the packet contents, but the scope_id cannot be recovered from the packet contents.
This commit is contained in:
parent
fd556a76fe
commit
3fe86cca72
1 changed files with 2 additions and 0 deletions
|
|
@ -231,6 +231,8 @@ static int ip_send (lua_State *L)
|
|||
packet = luaL_checklstring(L, 2, &packetlen);
|
||||
|
||||
/* Extract src and dst from packet contents. */
|
||||
/* TODO: This doesn't work for link-local IPv6 addresses; there's no way to
|
||||
recover the scope_id from the packet contents. */
|
||||
payloadlen = packetlen;
|
||||
if (ip_get_data_any(packet, &payloadlen, &hdr) == NULL)
|
||||
return luaL_error(L, "can't parse ip packet");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue