netatalk: util.h Source File

netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
contrib/macipgw/util.h
Go to the documentation of this file.
1/*
2 *
3 * (c) 1997 Stefan Bethke. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#include <stdint.h>
21
22extern int gDebug;
23
24#if defined(DEBUG)
25#define DEBUG_MACIP (0x0001)
26#define DEBUG_ROUTE (0x0010)
27#define DEBUG_TUNNEL (0x0100)
28#define DEBUG_TUNDEV (0x0200)
29#else
30#define DEBUG_MACIP (0)
31#define DEBUG_ROUTE (0)
32#define DEBUG_TUNNEL (0)
33#define DEBUG_TUNDEV (0)
34#endif
35
36extern char *iptoa(uint32_t ip);
37extern uint32_t atoip(char *s);
gDebug
int gDebug
Definition util.c:27
iptoa
char * iptoa(uint32_t ip)
Definition util.c:30
atoip
uint32_t atoip(char *s)
Definition util.c:40