Debian Codegraph @

ping/ping.h

raw
1 /*
2 Copyright (C) 2008-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 USE_IPV6 0
22
23 PING *ping_init (int type, int ident);
24 void ping_reset (PING * p);
25 void ping_set_type (PING * p, int type);
26 void ping_set_packetsize (PING * ping, size_t size);
27 int ping_set_dest (PING * ping, const char *host);
28 int ping_set_pattern (PING * p, int len, unsigned char *pat);
29 void ping_set_event_handler (PING * ping, ping_efp fp, void *closure);
30 int ping_recv (PING * p);
31 int ping_xmit (PING * p);