-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neutron2snabb updates related to L2TPv3 config features #283
Conversation
error("invalid ipv6 address "..p.." "..v) | ||
end | ||
i = i+1 | ||
local in_addr = ffi.new("uint8_t[4]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array should be 16 bytes for ipv6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.Good cach, fixed.
64342c3
to
65f4363
Compare
|
||
-- Convert hexadecimal str to string of n bytes padded with null bytes at | ||
-- the beginning. N defaults to `hexstr:len() / 2'. | ||
function undump (str, n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposal.
a229166
to
f712ad9
Compare
) | ||
config.local_cookie = lib.hexundump(config.local_cookie, 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using hexundump
. Throw error if part of input would be ignored (e.g. >16 hex digits.).
Note: hexundump
pads from the right, as opposed to what we talked about. Doesn't matter though right?
f712ad9
to
4207e2c
Compare
[keyed_ipv6_tunnel] Accept hex encoded string instead of plain string.
`vif_details.l2tpv3_local_ip'.
neutron2snabb updates related to L2TPv3 config features
Updates
neutron2snabb
for new requirements. See bottom of Neutron API Extensions.Also updates
ipv6:pton'
to useinet_pton(3)
.