Debian Codegraph @

ping/ping6.h

raw
1 /*
2 Copyright (C) 2005-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 #include "ping_common.h"
20
21 #define PING_MAX_DATALEN (65535 - sizeof (struct icmp6_hdr))
22
23 #define USE_IPV6 1
24
25 static PING *ping_init (int type, int ident);
26 static int ping_set_dest (PING * ping, const char *host);
27 static int ping_recv (PING * p);
28 static int ping_xmit (PING * p);
29
30 static int ping_run (PING * ping, int (*finish) (void));
31 static int ping_finish (void);