summaryrefslogtreecommitdiff
path: root/ping6_niquery.h
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-07-11 12:48:50 +0900
committerLorenzo Colitti <lorenzo@google.com>2013-07-11 12:50:08 +0900
commita9f3349c7b5ef6d82d2402fcbf67938d3ec43d63 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /ping6_niquery.h
parent8611672f5cc76dcb655e4bc60694986a24cce4c8 (diff)
downloadping-a9f3349c7b5ef6d82d2402fcbf67938d3ec43d63.tar.gz
Delete external/ping in favour of external/iputils
Bug: 9469682 Change-Id: Ia58ed6968212aaf41a96c88d8ae8fa5c643b327b
Diffstat (limited to 'ping6_niquery.h')
-rw-r--r--ping6_niquery.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/ping6_niquery.h b/ping6_niquery.h
deleted file mode 100644
index fa6624a..0000000
--- a/ping6_niquery.h
+++ /dev/null
@@ -1,49 +0,0 @@
-#include <asm/byteorder.h>
-
-#define NI_NONCE_SIZE 8
-
-/* Node Information Query */
-struct ni_hdr {
- struct icmp6_hdr ni_u;
- __u8 ni_nonce[NI_NONCE_SIZE];
-};
-
-#define ni_type ni_u.icmp6_type
-#define ni_code ni_u.icmp6_code
-#define ni_cksum ni_u.icmp6_cksum
-#define ni_qtype ni_u.icmp6_data16[0]
-#define ni_flags ni_u.icmp6_data16[1]
-
-/* Types */
-#ifndef ICMPV6_NI_QUERY
-# define ICMPV6_NI_QUERY 139
-# define ICMPV6_NI_REPLY 140
-#endif
-
-/* Query Codes */
-#define NI_SUBJ_IPV6 0
-#define NI_SUBJ_NAME 1
-#define NI_SUBJ_IPV4 2
-
-/* Reply Codes */
-#define NI_SUCCESS 0
-#define NI_REFUSED 1
-#define NI_UNKNOWN 2
-
-/* Qtypes */
-#define NI_QTYPE_NOOP 0
-#define NI_QTYPE_NAME 2
-#define NI_QTYPE_IPV6ADDR 3
-#define NI_QTYPE_IPV4ADDR 4
-
-/* Flags */
-#define NI_IPV6ADDR_F_TRUNCATE __constant_cpu_to_be16(0x0001)
-#define NI_IPV6ADDR_F_ALL __constant_cpu_to_be16(0x0002)
-#define NI_IPV6ADDR_F_COMPAT __constant_cpu_to_be16(0x0004)
-#define NI_IPV6ADDR_F_LINKLOCAL __constant_cpu_to_be16(0x0008)
-#define NI_IPV6ADDR_F_SITELOCAL __constant_cpu_to_be16(0x0010)
-#define NI_IPV6ADDR_F_GLOBAL __constant_cpu_to_be16(0x0020)
-
-#define NI_IPV4ADDR_F_TRUNCATE NI_IPV6ADDR_F_TRUNCATE
-#define NI_IPV4ADDR_F_ALL NI_IPV6ADDR_F_ALL
-