Bugzilla – Bug 1778
TapBridge linkUp notification patch
Last modified: 2013-11-19 12:35:43 UTC
From Piotr Jurkiewicz's email to ns-developers: This patch simply implements TapBridge::IsLinkUp() function, which has been originally left unimplemented (it was always returning true). Code mostly follows approach from FdNetDevice. Device status is set to "up" after ns-3 connects to the tap interface. Code: http://gist.github.com/piotrjurkiewicz/6067864
Created attachment 1691 [details] Modified patch The proposed patch looks good. I suggest the following minor changes included in the attached patch: - call NotifyLinkUp() from StartTapDevice() instead of CreateTap() - tweak NotifyLinkUp() to add logging and check if the link is already up
pushed in changeset 10433:bfeee916e7c5