-
Notifications
You must be signed in to change notification settings - Fork 172
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
Preparing library to use loopback device #1020
Changes from 1 commit
1803d90
91badc9
a57b099
e5a8f60
e9f9126
87c517d
2422335
9104b2e
f7d2e35
83f34fd
5669fd8
855d6d5
085741c
35a61c1
c706b49
364bc05
5b24042
a0b59ff
3c97367
7cdbef2
c29f055
5240680
31da177
c2cd991
3b9a259
d695740
d7ee3c2
c05141f
a73a8c1
20f16c2
1150510
16352be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,10 +241,6 @@ struct xIPv6_Couple | |
{ | ||
NetworkEndPoint_t * pxIterator = NULL; | ||
|
||
/* This end point will go to the end of the list, so there is no pxNext | ||
* yet. */ | ||
pxEndPoint->pxNext = NULL; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But i think we should also add pxEndPoint->pxNext = NULL; in line 262 in case there is no endpoint in the list There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also can we move commit as a separate PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That is 10 points for you, Monika, thanks! Although we assume that endpoints have been cleared, we can not count on it. |
||
/* Double link between the NetworkInterface_t that is using the addressing | ||
* defined by this NetworkEndPoint_t structure. */ | ||
pxEndPoint->pxNetworkInterface = pxInterface; | ||
|
@@ -278,6 +274,7 @@ struct xIPv6_Couple | |
|
||
if( pxIterator->pxNext == NULL ) | ||
{ | ||
pxEndPoint->pxNext = NULL; | ||
pxIterator->pxNext = pxEndPoint; | ||
break; | ||
} | ||
|
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.
Yeah i think this needs to be removed in the case the endpoint is already present on the list.