> On Feb. 18, 2015, 1:28 a.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp, line 394
> > <https://reviews.apache.org/r/29288/diff/22/?file=862203#file862203line394>
> >
> >     I would suggest rename it to `parse`. We need to have both 
> > `IP::parse("10.0.0.1")` and `IPNetwork::parse("10.0.0.1/8")`.

done in review 31246.


> On Feb. 18, 2015, 1:28 a.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp, line 407
> > <https://reviews.apache.org/r/29288/diff/22/?file=862203#file862203line407>
> >
> >     Can you remind me why this is needed?

I wanted to use that to initialize an IP with 0.0.0.0 or ::. Removed it and 
used INADDR_ANY and in6addr_any.


> On Feb. 18, 2015, 1:28 a.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp, lines 409-413
> > <https://reviews.apache.org/r/29288/diff/22/?file=862203#file862203line409>
> >
> >     Looking at the comments of fields `IP::address_` and `IP::netmask_`, 
> > looks like we always store addresses in host order. That makes me wondering 
> > how this function is possible?

Removed the comments. networkToHost and hostToNetwork are wrappers for ntohl 
and htonl.


> On Feb. 18, 2015, 1:28 a.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp, lines 415-416
> > <https://reviews.apache.org/r/29288/diff/22/?file=862203#file862203line415>
> >
> >     Is this needed anywhere? If not, let's keep this patch a pure refactor.

I used this in port_mapping.cpp, instead of using static net::IP LOOPBACK_IP. 
See MESOS-1023. The idea is to replace all static/global variables with non-POD 
type.


> On Feb. 18, 2015, 1:28 a.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp, lines 422-423
> > <https://reviews.apache.org/r/29288/diff/22/?file=862203#file862203line422>
> >
> >     See my top level comments. Let's add the IPv6 stuffs later in a 
> > different patch!

done in review 31246.


> On Feb. 18, 2015, 1:28 a.m., Jie Yu wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp, line 433
> > <https://reviews.apache.org/r/29288/diff/22/?file=862203#file862203line433>
> >
> >     The renaming can be pulled into a separate patch. See my top level 
> > comments. We can also introduce the family later once we start to fill IPv6 
> > stuffs.

done in review 31247


- Evelina


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29288/#review72771
-----------------------------------------------------------


On Feb. 21, 2015, 12:03 a.m., Evelina Dumitrescu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29288/
> -----------------------------------------------------------
> 
> (Updated Feb. 21, 2015, 12:03 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman, Dominic Hamon, Jie Yu, Joris Van 
> Remoortere, and Niklas Nielsen.
> 
> 
> Bugs: MESOS-1919
>     https://issues.apache.org/jira/browse/MESOS-1919
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created the inner class InAddrStorage encapsulated inside the IP class.
> The class uses a union with the in_addr and in6_addr fields.
> I considered that the The MasterInfo protobuffers should have both an ipv4 
> and an ipv6 field.
> I intend to use the same Classifiers, addition, removal and update of 
> container filters, but write different encode/decode functions for IPv4/ICMP 
> and IPv6/ICMPv6 because the processing of the protocol headers differ.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp 
> b464e517bb1e7b6b381c6cd6c0466ed788a82615 
>   3rdparty/libprocess/3rdparty/stout/tests/net_tests.cpp 
> 425132e5d7c3770be4a5a39feea5a2f22179b871 
> 
> Diff: https://reviews.apache.org/r/29288/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Evelina Dumitrescu
> 
>

Reply via email to