-
Notifications
You must be signed in to change notification settings - Fork 327
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
Update ipv4.c #250
Update ipv4.c #250
Conversation
This should fix a ton of the issues that come up in #154
Forgot to add type for variable, and removed whitespace.
notes were too long.
line 141 was still to long/did not comply with coding style
Apologies for the long commit chain here, I'm just trying to get the style right so the build doesn't fail on style.
I took out some obvious white space, but astyle is still catching me somewhere. |
Looks like whitespace was my culprit. That's what I get for trying to do this in a browser.
Which OS does this patch target exactly? |
@adrienverge Thanks for that, the build passes now. So I saw your comments about just calling netstat, I assumed that it was called with system() at some point down the line here. @DimitriPapadopoulos non-macintosh unix/linux/bsd systems. |
This part of the code is not executed on non-macintosh unix/linux/bsd systems - hence there isn't anything to fix here. The "Input/output errors" are unrelated to |
Please excuse me if I have this incorrect, but if the __APPLE__ token is set, this previous block of code executes, else the applicable block is executed? Do I have this incorrect, can you help me understand if I have this incorrect? |
These mutliple
Ideally the code should be rewritten using only |
@DimitriPapadopoulos Thank you for helping me understand. I appreciate your time. |
This should fix a ton of the issues that come up in #154
Please look over my work, I'm new in C programming, I've been a shell and python and perl guy most of my career.