Conversation
|
Re-assigned to @kaspar030, since he implemented some IPv4 stuff. |
Makefile.dep
Outdated
There was a problem hiding this comment.
Because it uses it for the IPv4 compatible addresses.
There was a problem hiding this comment.
(I basically took those static functions out of there)
|
Just FIY, in my code, I'll probably always use uint32_t to store and handle IPv4 addresses. |
|
Which means, IMHO this adds unnecessary cruft to net/ipv4.h. Same for ipv6. |
|
Main motivation for this module is to provide the wrapper promised in #3607. For this we need a pair of publicly available IPv4 string conversion function which this module provides. |
|
(and to full-fill the promise given in the comments of |
|
Addressed comments |
9755d6e to
01e01d5
Compare
|
Rebased to current master |
There was a problem hiding this comment.
I'm wondering if the check for result_len makes any sense as it proves nothing regarding the length of result. And it isn't used for anything else like condition or loop control. So it may be removed completely?
There was a problem hiding this comment.
It's a very fig-leaf security measurement I give you that, but as commented above: this code is not originally by myself.
There was a problem hiding this comment.
Didn't want to blame anyone. :-)
And I overlooked that the function signature may not be changed.
|
Addressed @A-Paul's comment |
ipv6_addr: adapt doc to proposed changes in #3608
|
Rebased to current master. |
0bede36 to
ee4875f
Compare
ee4875f to
b2b98c5
Compare
|
Rebased to current master |
|
Could someone else review this? I don't like it - it has half as many lines as my whole IPv4 stack. |
|
@kaspar030, from what I can see most of the lines contain documentation or tests. The question why do we need this without support for IPv4? |
|
This PR looks ok to me, the only thing I strongly dislike is the dependency from IPv6 to IPv4! I would rather have this in optional: If the IPv4 module is used, then include the IPv4 encapsulation into IPv6 - so do not do this per default! |
|
@haukepetersen I know I repeat myself, but the inclusion of IPv4 is already part of the current master. This PR just exposes this for everyone to use. In the end this is a string conversion function and string conversion for IPv6 is already quite fat in itself (due to the 0-compression). IPv4 address conversion on the other hand is quite simple, so only a fraction of the comparably large IPv6 code. Since string conversion isn't meant to be in production code anyway (correct me if I'm wrong) I'm more in favor of having a few bytes more of code, just to handle legal (but arguably complicated) IPv6 addresses. |
|
Sorry, hit the wrong button. |
Because we want |
f18a83a to
b87376e
Compare
|
Rebased |
|
@authmillenon Just a question - what boards are you using to test your code on? |
|
native, iotlab-m3 and samr21-xpro |
|
(plan to use msba2 again, as soon as cc11xx support is back) |
|
thx
|
|
@kaspar030, how concrete is your plan to PR the nanostack anytime soon? |
|
Hey, On 09/07/15 18:13, Oleg Hahm wrote:
When I find time, after the release. But it will probably come with it's |
|
ACK |
b87376e to
be587ca
Compare
|
Fixed doc issue and squashed immediately. |
|
Do you want to make this optional for module |
👍 |
|
As a follow-up, yes. |
|
See #3822. |
This provides just the type and string conversion functions.