diff options
Diffstat (limited to 'include/libipset/icmp.h')
-rw-r--r-- | include/libipset/icmp.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/libipset/icmp.h b/include/libipset/icmp.h new file mode 100644 index 0000000..89604cd --- /dev/null +++ b/include/libipset/icmp.h @@ -0,0 +1,16 @@ +/* Copyright 2007-2010 Jozsef Kadlecsik (kadlec@blackhole.kfki.hu) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef LIBIPSET_ICMP_H +#define LIBIPSET_ICMP_H + +#include <stdint.h> /* uintxx_t */ + +extern const char * id_to_icmp(uint8_t id); +extern const char * icmp_to_name(uint8_t type, uint8_t code); +extern int name_to_icmp(const char *str, uint16_t *typecode); + +#endif /* LIBIPSET_ICMP_H */ |