Skip to content
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

Add fping support #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sourabhjains
Copy link
Contributor

This patch enables fping support in DCE.
In order to run fping successfully an ASSERT (tz == 0) has to be disable inside getitmeofday function in dce.cc.
This ASSERT function doesn't allow application to extract timezone value from DCE.
If any application try to do DCE stops the execution of the application and the simulation as well.
Disabling this ASSERT work for fping because, though fping ask for timezone but never uses it.

Copy link
Member

@teto teto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this increases the maintainance burden for little advantage, what does fping bring that ping doesn't have TCP pings ? I would vote for a mention about the dce_gettimeofday in the wiki instead. @thehajime what do you think ?

@@ -295,7 +295,7 @@ int dce_gettimeofday (struct timeval *tv, struct timezone *tz)
{
NS_LOG_FUNCTION (Current () << UtilsGetNodeId ());
NS_ASSERT (Current () != 0);
NS_ASSERT (tz == 0);
// NS_ASSERT (tz == 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am annoyed by this as it might hide problems for other programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants