| 1 |
/* |
| 2 |
Copyright (C) 2001-2026 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GNU Inetutils. |
| 5 |
|
| 6 |
GNU Inetutils is free software: you can redistribute it and/or modify |
| 7 |
it under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation, either version 3 of the License, or (at |
| 9 |
your option) any later version. |
| 10 |
|
| 11 |
GNU Inetutils is distributed in the hope that it will be useful, but |
| 12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program. If not, see `http://www.gnu.org/licenses/'. */ |
| 18 |
|
| 19 |
#define PING_MAX_DATALEN (65535 - MAXIPLEN - MAXICMPLEN) |
| 20 |
|
| 21 |
extern unsigned options; |
| 22 |
#if !USE_IPV6 |
| 23 |
extern unsigned int suboptions; |
| 24 |
#endif |
| 25 |
extern PING *ping; |
| 26 |
extern unsigned char *data_buffer; |
| 27 |
extern size_t data_length; |
| 28 |
|
| 29 |
extern int ping_run (PING * ping, int (*finish) (void)); |
| 30 |
extern int ping_finish (void); |
| 31 |
extern void print_icmp_header (struct sockaddr_in *from, |
| 32 |
struct ip *ip, icmphdr_t * icmp, int len); |