⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ping.h

📁 一个简单的ISOS模块代码。A simple ISOS module code
💻 H
字号:
/* ############################################################################ (c) Copyright Virata Limited 2001## Virata Limited Confidential and Proprietary## The following software source code ("Software") is strictly confidential and# is proprietary to Virata Limited ("Virata").  It may only be read, used,# copied, adapted, modified or otherwise dealt with by you if you have# entered into a confidentiality agreement with Virata and then subject to the# terms of that confidentiality agreement and any other applicable agreement# between you and Virata.  If you are in any doubt as to whether you are# entitled to access, read, use, copy, adapt, modify or otherwise deal with# the Software or whether you are entitled to disclose the Software to any# other person you should contact Virata.  If you have not entered into a# confidentiality agreement with Virata granting access to this Software you# should forthwith return all media, copies and printed listings containing# the Software to Virata.## Virata reserves the right to take legal action against you should you breach# the above provisions.## If you are unsure, or to report violations, please contact# support@virata.com# ##########################################################################*//*  * PING - very simple ping support */#ifndef _ISOS_PING_H#define _ISOS_PING_H#include <sys/types.h>#include <sys/time.h>#define DEFAULT_NUM_PING_ATTEMPTS       1       /* once    */#define DEFAULT_PING_TIMEOUT            4       /* seconds *//* Number of extra data bytes to transmit */#define PING_EXTRA_DATA_LEN             32/* * Extra data is filled with numeric pattern (consistent numbers). * The following macro defines value of the first number. */#define PING_EXTRA_DATA_FIRST_VALUE     64int main(void);int do_ping_v4_v6(const char *ipdest, const char *ifname);int do_ping(const char *ipdest);/* For backward compatibility only */inline intdo_ping(const char *ipdest){    return do_ping_v4_v6(ipdest, NULL);}u_short in_cksum(u_short *addr, int len);void tv_sub(struct timeval *out, struct timeval *in);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -