2006-08-08 16:33:33 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2006, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _NETINET6_IN6_H_
|
|
|
|
#define _NETINET6_IN6_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct in6_addr {
|
|
|
|
uint8_t s6_addr[16];
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IP Version 6 socket address.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct sockaddr_in6 {
|
|
|
|
uint8_t sin6_len;
|
2006-12-18 20:12:54 +03:00
|
|
|
uint8_t sin6_family;
|
|
|
|
uint16_t sin6_port;
|
2006-08-08 16:33:33 +04:00
|
|
|
uint32_t sin6_flowinfo;
|
|
|
|
struct in6_addr sin6_addr;
|
|
|
|
uint32_t sin6_scope_id;
|
|
|
|
};
|
|
|
|
|
2009-11-10 01:18:34 +03:00
|
|
|
|
|
|
|
#define IN6ADDR_ANY_INIT \
|
|
|
|
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
|
|
|
|
#define IN6ADDR_LOOPBACK_INIT \
|
|
|
|
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
|
|
|
|
|
|
|
|
extern const struct in6_addr in6addr_any;
|
|
|
|
extern const struct in6_addr in6addr_loopback;
|
|
|
|
|
2006-08-08 16:33:33 +04:00
|
|
|
#endif /* _NETINET6_IN6_H_ */
|