This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 056/114] Add <arpa/nameser.h> header for Phoenix.


From: Kuba Sejdak <jakub.sejdak@phoesys.com>

---
 newlib/libc/sys/phoenix/include/arpa/nameser.h | 38 ++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 newlib/libc/sys/phoenix/include/arpa/nameser.h

diff --git a/newlib/libc/sys/phoenix/include/arpa/nameser.h b/newlib/libc/sys/phoenix/include/arpa/nameser.h
new file mode 100644
index 0000000..eba6ef1
--- /dev/null
+++ b/newlib/libc/sys/phoenix/include/arpa/nameser.h
@@ -0,0 +1,38 @@
+/* Copyright (C) 2012-2016 Phoenix Systems (http://www.phoesys.com/).
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _ARPA_NAMESER_H
+#define _ARPA_NAMESER_H
+
+/* Define constants based on RFC 883, RFC 1034, RFC 1035 */
+#define NS_PACKETSZ		512		/* Maximum packet size */
+#define NS_MAXDNAME		1025	/* Maximum domain name */
+#define NS_MAXCDNAME	255		/* Maximum compressed domain name */
+#define NS_MAXLABEL		63		/* Maximum length of domain label */
+#define NS_HFIXEDSZ		12		/* Bytes of fixed data in header */
+#define NS_QFIXEDSZ		4		/* Bytes of fixed data in query */
+#define NS_RRFIXEDSZ	10		/* Bytes of fixed data in r record */
+#define NS_INT32SZ		4		/* Bytes of data in a u_int32_t */
+#define NS_INT16SZ		2		/* Bytes of data in a u_int16_t */
+#define NS_INT8SZ		1		/* Bytes of data in a u_int8_t */
+#define NS_INADDRSZ		4		/* IPv4 T_A */
+#define NS_IN6ADDRSZ	16		/* IPv6 T_AAAA */
+#define NS_CMPRSFLGS	0xc0	/* Flag bits indicating name compression. */
+#define NS_DEFAULTPORT	53		/* For both TCP and UDP. */
+
+#endif
-- 
2.5.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]