mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
net.h is now generated
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
||||
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
||||
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef ISC_NET_H
|
||||
#define ISC_NET_H 1
|
||||
|
||||
/*****
|
||||
***** Module Info
|
||||
*****/
|
||||
|
||||
/*
|
||||
* Basic Networking Types
|
||||
*
|
||||
* This module is responsible for defining the following basic networking
|
||||
* types:
|
||||
*
|
||||
* struct in_addr
|
||||
* struct in6_addr
|
||||
* struct sockaddr
|
||||
* struct sockaddr_in
|
||||
* struct sockaddr_in6
|
||||
*
|
||||
* It ensures that the AF_ and PF_ macros are defined.
|
||||
*
|
||||
* It declares ntoh[sl]() and hton[sl]().
|
||||
*
|
||||
* MP:
|
||||
* No impact.
|
||||
*
|
||||
* Reliability:
|
||||
* No anticipated impact.
|
||||
*
|
||||
* Resources:
|
||||
* N/A.
|
||||
*
|
||||
* Security:
|
||||
* No anticipated impact.
|
||||
*
|
||||
* Standards:
|
||||
* BSD Socket API
|
||||
*/
|
||||
|
||||
|
||||
/***
|
||||
*** Imports.
|
||||
***/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
||||
#endif /* ISC_NET_H */
|
@@ -52,6 +52,7 @@
|
||||
*
|
||||
* Standards:
|
||||
* BSD Socket API
|
||||
* RFC 2553
|
||||
*/
|
||||
|
||||
|
||||
@@ -64,4 +65,28 @@
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
||||
/*
|
||||
* If sockaddrs on this system have an sa_len field, ISC_NET_HAVESALEN will
|
||||
* be defined.
|
||||
*/
|
||||
@ISC_NET_HAVESALEN@
|
||||
|
||||
/*
|
||||
* If this system needs AF_INET6, ISC_NET_NEEDAFINET6 will be defined.
|
||||
*/
|
||||
@ISC_NET_NEEDAFINET6@
|
||||
#ifdef ISC_NET_NEEDAFINET6
|
||||
#define AF_INET6 99
|
||||
#define PF_INET6 AF_INET6
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If this system needs the IPv6 structure definitions, ISC_NET_NEEDIPV6
|
||||
* will be defined, and the structure definintions will be included.
|
||||
*/
|
||||
@ISC_NET_NEEDIPV6@
|
||||
#ifdef ISC_NET_NEEDIPV6
|
||||
#include <isc/ipv6.h>
|
||||
#endif
|
||||
|
||||
#endif /* ISC_NET_H */
|
||||
|
Reference in New Issue
Block a user