brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 7a4d26d Raw
38 lines · c
1//===-- Definition of macros from netinet/in.h ----------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_MACROS_NETINET_IN_MACROS_H10#define LLVM_LIBC_MACROS_NETINET_IN_MACROS_H11 12#include "../llvm-libc-types/in_addr_t.h"13#include "__llvm-libc-common.h"14 15#define IPPROTO_IP 016#define IPPROTO_ICMP 117#define IPPROTO_TCP 618#define IPPROTO_UDP 1719#define IPPROTO_IPV6 4120#define IPPROTO_RAW 25521 22#define IPV6_UNICAST_HOPS 1623#define IPV6_MULTICAST_IF 1724#define IPV6_MULTICAST_HOPS 1825#define IPV6_MULTICAST_LOOP 1926#define IPV6_JOIN_GROUP 2027#define IPV6_LEAVE_GROUP 2128#define IPV6_V6ONLY 2629 30#define INADDR_ANY __LLVM_LIBC_CAST(static_cast, in_addr_t, 0x00000000)31#define INADDR_BROADCAST __LLVM_LIBC_CAST(static_cast, in_addr_t, 0xffffffff)32#define INADDR_NONE __LLVM_LIBC_CAST(static_cast, in_addr_t, 0xffffffff)33 34#define INET_ADDRSTRLEN 1635#define INET6_ADDRSTRLEN 4636 37#endif // LLVM_LIBC_MACROS_NETINET_IN_MACROS_H38