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

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:
17 years, 1 month ago by faker.moatamri
Modified:
17 years ago
Reviewers:
Tom Henderson
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 (+978 lines, -849 lines) Patch
M src/helper/internet-stack-helper.h View 1 3 chunks +28 lines, -10 lines 0 comments Download
M src/helper/internet-stack-helper.cc View 1 6 chunks +160 lines, -13 lines 0 comments Download
M src/internet-stack/arp-l3-protocol.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/internet-stack/arp-l3-protocol.cc View 2 chunks +18 lines, -0 lines 0 comments Download
M src/internet-stack/icmpv4-l4-protocol.h View 1 chunk +6 lines, -1 line 0 comments Download
M src/internet-stack/icmpv4-l4-protocol.cc View 1 2 chunks +22 lines, -0 lines 0 comments Download
R src/internet-stack/internet-stack.h View 1 chunk +0 lines, -163 lines 0 comments Download
R src/internet-stack/internet-stack.cc View 1 chunk +0 lines, -141 lines 0 comments Download
M src/internet-stack/ipv4-l3-protocol.h View 1 chunk +5 lines, -1 line 0 comments Download
M src/internet-stack/ipv4-l3-protocol.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M src/internet-stack/nsc-tcp-l4-protocol.h View 3 chunks +4 lines, -2 lines 0 comments Download
M src/internet-stack/nsc-tcp-l4-protocol.cc View 1 5 chunks +40 lines, -7 lines 0 comments Download
M src/internet-stack/tcp-l4-protocol.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/internet-stack/tcp-l4-protocol.cc View 1 3 chunks +24 lines, -0 lines 0 comments Download
M src/internet-stack/tcp-socket-impl.cc View 1 chunk +0 lines, -305 lines 0 comments Download
A src/internet-stack/tcp-test.cc View 1 1 chunk +358 lines, -0 lines 0 comments Download
M src/internet-stack/udp-l4-protocol.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/internet-stack/udp-l4-protocol.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M src/internet-stack/udp-socket-impl.cc View 1 chunk +0 lines, -204 lines 0 comments Download
A src/internet-stack/udp-test.cc View 1 1 chunk +257 lines, -0 lines 0 comments Download
M src/internet-stack/wscript View 2 chunks +2 lines, -2 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> ...
17 years ago (2009-05-18 05:46:47 UTC) #1
Tom Henderson
On 2009/05/18 05:46:47, Tom H. wrote: > Faker, see my comments and questions inline. > ...
17 years ago (2009-05-18 05:50:43 UTC) #2
faker.moatamri
17 years ago (2009-05-18 13:31:07 UTC) #3
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 f62528b