Print this page
13175 Add support for IP_RECVTOS
13182 CMSG_ macros should have man pages
Change-ID: I784aa36cfd3c17e3cccbf1fd329fa7e69b663ef9
*** 1,10 ****
--- 1,11 ----
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved.
*
*** 903,912 ****
--- 904,914 ----
#define IP_RECVDSTADDR 0x7 /* int; receive IP dst addr w/datagram */
#define IP_RETOPTS 0x8 /* ip_opts; set/get IP per-packet options */
#define IP_RECVIF 0x9 /* int; receive the inbound interface index */
#define IP_RECVSLLA 0xa /* sockaddr_dl; get source link layer address */
#define IP_RECVTTL 0xb /* uint8_t; get TTL for inbound packet */
+ #define IP_RECVTOS 0xc /* uint8_t; get TOS for inbound packet */
#define IP_MULTICAST_IF 0x10 /* set/get IP multicast interface */
#define IP_MULTICAST_TTL 0x11 /* set/get IP multicast timetolive */
#define IP_MULTICAST_LOOP 0x12 /* set/get IP multicast loopback */
#define IP_ADD_MEMBERSHIP 0x13 /* add an IP group membership */
*** 1244,1254 ****
* the receipt of both headers.
*/
#define IPV6_RECVRTHDRDSTOPTS 0x17
#define IPV6_CHECKSUM 0x18 /* Control checksum on raw sockets */
! #define IPV6_RECVTCLASS 0x19 /* enable/disable IPV6_CLASS */
#define IPV6_USE_MIN_MTU 0x20 /* send packets with minimum MTU */
#define IPV6_DONTFRAG 0x21 /* don't fragment packets */
#define IPV6_SEC_OPT 0x22 /* Used to set IPSEC options */
#define IPV6_SRC_PREFERENCES 0x23 /* Control socket's src addr select */
#define IPV6_RECVPATHMTU 0x24 /* receive PMTU info */
--- 1246,1256 ----
* the receipt of both headers.
*/
#define IPV6_RECVRTHDRDSTOPTS 0x17
#define IPV6_CHECKSUM 0x18 /* Control checksum on raw sockets */
! #define IPV6_RECVTCLASS 0x19 /* enable/disable IPV6_TCLASS */
#define IPV6_USE_MIN_MTU 0x20 /* send packets with minimum MTU */
#define IPV6_DONTFRAG 0x21 /* don't fragment packets */
#define IPV6_SEC_OPT 0x22 /* Used to set IPSEC options */
#define IPV6_SRC_PREFERENCES 0x23 /* Control socket's src addr select */
#define IPV6_RECVPATHMTU 0x24 /* receive PMTU info */