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:
david 2011-10-29 19:40:18 +00:00
parent fd556a76fe
commit 3fe86cca72

View file

@ -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");