Attempt to fix blocking internet
This commit is contained in:
parent
25ca17d6f9
commit
5de2f5d1d9
@ -99,7 +99,8 @@ int ping_receive(struct in_addr);
|
|||||||
#define ICMP4_ECHO_LEN ICMP_BASEHDR_LEN
|
#define ICMP4_ECHO_LEN ICMP_BASEHDR_LEN
|
||||||
|
|
||||||
|
|
||||||
short p_sequence = 0;
|
// short p_sequence = 0;
|
||||||
|
short p_sequence = 10;
|
||||||
unsigned short id;
|
unsigned short id;
|
||||||
struct icmphdr icmpd;
|
struct icmphdr icmpd;
|
||||||
struct sockaddr_in to;
|
struct sockaddr_in to;
|
||||||
@ -173,7 +174,7 @@ int ping_send(struct in_addr addr)
|
|||||||
SOL_IP = pe->p_proto;
|
SOL_IP = pe->p_proto;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
p_sequence++;
|
// p_sequence++;
|
||||||
id = (unsigned short)get_rand16(); /* randomize a ping id */
|
id = (unsigned short)get_rand16(); /* randomize a ping id */
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Reference in New Issue
Block a user