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

Update/simpleping 2016 #22

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions MMLanScan/External Libs/MacFinder/MacFinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@

#import <Foundation/Foundation.h>

#if TARGET_IPHONE_SIMULATOR
#include <net/route.h>
#else
#include "route.h"
#endif

#include "if_ether.h"
#include <arpa/inet.h>
Expand Down
9 changes: 0 additions & 9 deletions MMLanScan/External Libs/MacFinder/Network Headers/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@
* retransmission behavior and are included in the routing structure.
*/

#if TARGET_IPHONE_SIMULATOR
#else
struct rt_metrics {
u_int32_t rmx_locks; /* Kernel leaves these values alone */
u_int32_t rmx_mtu; /* MTU for this path */
Expand All @@ -88,7 +86,6 @@ struct rt_metrics {
u_int32_t rmx_pksent; /* packets sent using this route */
u_int32_t rmx_filler[4]; /* will be used for T/TCP later */
};
#endif

/*
* rmx_rtt and rmx_rttvar are stored as microseconds;
Expand Down Expand Up @@ -153,8 +150,6 @@ struct rtstat {
/*
* Structures for routing messages.
*/
#if TARGET_IPHONE_SIMULATOR
#else
struct rt_msghdr {
u_short rtm_msglen; /* to skip over non-understood messages */
u_char rtm_version; /* future binary compatibility */
Expand All @@ -169,10 +164,7 @@ struct rt_msghdr {
u_int32_t rtm_inits; /* which metrics we are initializing */
struct rt_metrics rtm_rmx; /* metrics themselves */
};
#endif

#if TARGET_IPHONE_SIMULATOR
#else
struct rt_msghdr2 {
u_short rtm_msglen; /* to skip over non-understood messages */
u_char rtm_version; /* future binary compatibility */
Expand All @@ -187,7 +179,6 @@ struct rt_msghdr2 {
u_int32_t rtm_inits; /* which metrics we are initializing */
struct rt_metrics rtm_rmx; /* metrics themselves */
};
#endif


#define RTM_VERSION 5 /* Up the ante and ignore older versions */
Expand Down
375 changes: 235 additions & 140 deletions MMLanScan/External Libs/SimplePing/SimplePing.h

Large diffs are not rendered by default.

Loading