diff options
Diffstat (limited to 'usr/src/uts/common/netinet')
-rw-r--r-- | usr/src/uts/common/netinet/in.h | 7 | ||||
-rw-r--r-- | usr/src/uts/common/netinet/udp.h | 12 |
2 files changed, 16 insertions, 3 deletions
diff --git a/usr/src/uts/common/netinet/in.h b/usr/src/uts/common/netinet/in.h index d530b7f36e..7927cf5e24 100644 --- a/usr/src/uts/common/netinet/in.h +++ b/usr/src/uts/common/netinet/in.h @@ -3,6 +3,7 @@ * Use is subject to license terms. * * Copyright 2011 Nexenta Systems, Inc. All rights reserved. + * Copyright 2015, Joyent, Inc. */ /* * Copyright (c) 1982, 1986 Regents of the University of California. @@ -225,6 +226,7 @@ typedef uint16_t sa_family_t; #define IPPORT_SLP 427 #define IPPORT_MIP 434 #define IPPORT_SMB 445 /* a.k.a. microsoft-ds */ +#define IPPORT_VXLAN 4789 /* * Internet Key Exchange (IKE) ports @@ -268,6 +270,11 @@ typedef uint16_t sa_family_t; #define IPPORT_RESERVED 1024 #define IPPORT_USERRESERVED 5000 +#ifdef _KERNEL +#define IPPORT_DYNAMIC_MIN 49152 +#define IPPORT_DYNAMIC_MAX 65535 +#endif + /* * Link numbers */ diff --git a/usr/src/uts/common/netinet/udp.h b/usr/src/uts/common/netinet/udp.h index c65a9bad3a..fb9f8a0976 100644 --- a/usr/src/uts/common/netinet/udp.h +++ b/usr/src/uts/common/netinet/udp.h @@ -17,9 +17,6 @@ #ifndef _NETINET_UDP_H #define _NETINET_UDP_H -#pragma ident "%Z%%M% %I% %E% SMI" -/* udp.h 1.7 88/08/19 SMI; from UCB 7.1 6/5/86 */ - #ifdef __cplusplus extern "C" { #endif @@ -36,6 +33,15 @@ struct udphdr { #define UDP_EXCLBIND 0x0101 /* for internal use only */ #define UDP_RCVHDR 0x0102 /* for internal use only */ #define UDP_NAT_T_ENDPOINT 0x0103 /* for internal use only */ +#define UDP_SRCPORT_HASH 0x0104 /* for internal use only */ + +/* + * Hash definitions for UDP_SRCPORT_HASH that effectively tell UDP how to go + * handle UDP_SRCPORT_HASH. + */ +#define UDP_HASH_DISABLE 0x0000 /* for internal use only */ +#define UDP_HASH_VXLAN 0x0001 /* for internal use only */ + /* * Following option in UDP_ namespace required to be exposed through * <xti.h> (It also requires exposing options not implemented). The options |