-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ng_icmpv6: Initial import #2555
Conversation
7b5d706
to
89a23fd
Compare
Rebased to current #2454 |
7f1b556
to
33de13f
Compare
Rebased to current #2454 |
e36047f
to
43e113f
Compare
Rebased to current #2454 |
ce1af46
to
8b66701
Compare
Rebased to current #2454 |
6ae135e
to
8f929a8
Compare
Rebased and adapted to changes in #2454. Since they were quite big, I squashed. |
(No longer WIP) |
break; | ||
} | ||
|
||
/* ICMPv6-all will be send send in ng_ipv6.c so only dispatch of |
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.
too many sends!
Addressed comments |
return _echo_build(NG_ICMPV6_ECHO_REQ, id, seq, data, data_len); | ||
} | ||
|
||
ng_pktsnip_t *ng_icmpv6_echo_rep_build(uint16_t id, uint16_t seq, uint8_t *data, size_t data_len) |
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.
Any reason not to inline these functions now?
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.
Because I need to expose the generic function for this. Anyways: just did that.
|
||
ng_pktbuf_hold(pkt, ng_netreg_num(NG_NETTYPE_IPV6, NG_NETREG_DEMUX_CTX_ALL) - 1); | ||
|
||
/* ICMPv6 is not interested anymore so `- 1` */ |
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.
Wouldn't this comment make more sense if written right before ng_pktbuf_hold()
?
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.
Yes.
Addressed comments |
ACK. Please squash and go if Travis agrees. |
5f77067
to
8be0772
Compare
Squashed |
8be0772
to
8e1f4a2
Compare
8e1f4a2
to
229f49a
Compare
Had to fix something: since the types of the echo request/reply were now exposed, I needed to put them somewhere else than ng_icmpv6.h => introduced ng_icmpv6/types.h |
Please re-ACK. |
I think that's fine. ACK and go. |
Depends on #2454 and all its dependencies.