Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Issue 63068: Moved the internet stack creation to the helper, refactor some functions and files and repla

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 months, 2 weeks ago by faker.moatamri
Modified:
3 months, 4 weeks ago
Reviewers:
Tom Henderson
CC:
SVN Base:
Visibility:
Public.

Patch Set 1

Total comments: 13

Patch Set 2 : Moved the internet stack creation to the helper, refactor some functions and files

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/helper/internet-stack-helper.cc View 1 6 chunks 224 lines 0 comments Download
M src/helper/internet-stack-helper.h View 1 3 chunks 69 lines 0 comments Download
M src/internet-stack/arp-l3-protocol.cc View 2 chunks 36 lines 0 comments Download
M src/internet-stack/arp-l3-protocol.h View 1 chunk 16 lines 0 comments Download
M src/internet-stack/icmpv4-l4-protocol.cc View 1 2 chunks 38 lines 0 comments Download
M src/internet-stack/icmpv4-l4-protocol.h View 1 chunk 18 lines 0 comments Download
R src/internet-stack/internet-stack.cc View 1 chunk 147 lines 0 comments Download
R src/internet-stack/internet-stack.h View 1 chunk 169 lines 0 comments Download
M src/internet-stack/ipv4-l3-protocol.cc View 1 chunk 27 lines 0 comments Download
M src/internet-stack/ipv4-l3-protocol.h View 1 chunk 17 lines 0 comments Download
M src/internet-stack/nsc-tcp-l4-protocol.cc View 1 5 chunks 94 lines 0 comments Download
M src/internet-stack/nsc-tcp-l4-protocol.h View 3 chunks 31 lines 0 comments Download
M src/internet-stack/tcp-l4-protocol.cc View 1 3 chunks 49 lines 0 comments Download
M src/internet-stack/tcp-l4-protocol.h View 1 chunk 16 lines 0 comments Download
M src/internet-stack/tcp-socket-impl.cc View 1 chunk 314 lines 0 comments Download
A src/internet-stack/tcp-test.cc View 1 1 chunk 365 lines 0 comments Download
M src/internet-stack/udp-l4-protocol.cc View 1 2 chunks 41 lines 0 comments Download
M src/internet-stack/udp-l4-protocol.h View 1 chunk 16 lines 0 comments Download
M src/internet-stack/udp-socket-impl.cc View 1 chunk 212 lines 0 comments Download
A src/internet-stack/udp-test.cc View 1 1 chunk 263 lines 0 comments Download
M src/internet-stack/wscript View 2 chunks 22 lines 0 comments Download

Messages

Total messages: 3
Tom Henderson
Faker, see my comments and questions inline. http://codereview.appspot.com/63068/diff/1/2 File src/helper/internet-stack-helper.cc (right): http://codereview.appspot.com/63068/diff/1/2#newcode237 Line 237: m_tcpFactory.Create<Object> ...
6 months, 1 week ago
Tom Henderson
On 2009/05/18 05:46:47, Tom H. wrote: > Faker, see my comments and questions inline. > ...
6 months, 1 week ago
faker.moatamri
6 months, 1 week ago
http://codereview.appspot.com/63068/diff/1/2
File src/helper/internet-stack-helper.cc (right):

http://codereview.appspot.com/63068/diff/1/2#newcode237
Line 237: m_tcpFactory.Create<Object> ()->AggregateObject (node);
I will inverse it to call node->AggregateObject (protocol)

http://codereview.appspot.com/63068/diff/1/3
File src/helper/internet-stack-helper.h (right):

http://codereview.appspot.com/63068/diff/1/3#newcode95
Line 95: void SetTcp (std::string tid, std::string n0, const AttributeValue
&v0);
On 2009/05/18 05:46:47, Tom H. wrote:
> would be clearer to rename "n0" to something like "attr" (and "v0" to
something
> like "val")

Done.

http://codereview.appspot.com/63068/diff/1/10
File src/internet-stack/ipv4-l3-protocol.cc (right):

http://codereview.appspot.com/63068/diff/1/10#newcode163
Line 163: }
On 2009/05/18 05:46:47, Tom H. wrote:
> based on the doxygen, I expected to see some logic here to handle
notifications
> that a new L4 protocol has been aggregated.
It's the layer 4 that notifies layer3, please refer to 
NscTcpL4Protocol::NotifyNewAggregate. Line: ipv4->Insert (this).

http://codereview.appspot.com/63068/diff/1/17
File src/internet-stack/tcp-test.cc (right):

http://codereview.appspot.com/63068/diff/1/17#newcode6
Line 6: */
On 2009/05/18 05:46:47, Tom H. wrote:
> please add gpl and emacs mode line, and clarify whether this is for all Tcp
> socket tests or just TcpSocketImpl

Done.

http://codereview.appspot.com/63068/diff/1/18
File src/internet-stack/udp-l4-protocol.cc (right):

http://codereview.appspot.com/63068/diff/1/18#newcode98
Line 98: }
Actually the calls are not in a specific order, we just need to verify that
everything is there to do the needed aggregation, I changed the code as
suggested by mathieu to reflect this idea.

http://codereview.appspot.com/63068/diff/1/21
File src/internet-stack/udp-test.cc (right):

http://codereview.appspot.com/63068/diff/1/21#newcode1
Line 1: #ifdef RUN_SELF_TESTS
On 2009/05/18 05:46:47, Tom H. wrote:
> GPL and emacs mode missing

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497