Print this page
OS-2952 lx brand needs to support or emulate rtnetlink(7)
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>


  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2015, Joyent, Inc.  All rights reserved.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  31 



  32 #include <stdio.h>
  33 #include <stdlib.h>
  34 #include <fcntl.h>
  35 #include <unistd.h>
  36 #include <string.h>
  37 #include <signal.h>
  38 #include <sys/types.h>
  39 #include <libproc.h>
  40 #include <sys/aio.h>
  41 #include <sys/port_impl.h>
  42 #include "ramdata.h"
  43 #include "systable.h"
  44 #include "print.h"
  45 #include "proto.h"
  46 
  47 /*
  48  * Tables of information about system calls - read-only data.
  49  */
  50 
  51 const   char *const     errcode[] = {   /* error code names */


1699         "DECnet",       /* 12 */
1700         "DLI",          /* 13 */
1701         "LAT",          /* 14 */
1702         "HYLINK",       /* 15 */
1703         "APPLETALK",    /* 16 */
1704         "NIT",          /* 17 */
1705         "802",          /* 18 */
1706         "OSI",          /* 19 */
1707         "X25",          /* 20 */
1708         "OSINET",       /* 21 */
1709         "GOSIP",        /* 22 */
1710         "IPX",          /* 23 */
1711         "ROUTE",        /* 24 */
1712         "LINK",         /* 25 */
1713         "INET6",        /* 26 */
1714         "KEY",          /* 27 */
1715         "NCA",          /* 28 */
1716         "POLICY",       /* 29 */
1717         "RDS",          /* 30 */
1718         "TRILL",        /* 31 */
1719         "PACKET"        /* 32 */

1720 };
1721 #if MAX_AFCODES != 33
1722 #error Need to update address-family table
1723 #endif
1724 
1725 
1726 const char * const socktype_codes[] = {         /* cf socket.h */
1727         NULL,
1728         "SOCK_DGRAM",           /* 1 */
1729         "SOCK_STREAM",          /* 2 */
1730         NULL,
1731         "SOCK_RAW",             /* 4 */
1732         "SOCK_RDM",             /* 5 */
1733         "SOCK_SEQPACKET"        /* 6 */
1734 };
1735 #if MAX_SOCKTYPES != 7
1736 #error Need to update socket-type table
1737 #endif


  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2015, Joyent, Inc.  All rights reserved.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  31 
  32 /*
  33  * Copyright (c) 2014, Joyent, Inc. All rights reserved.
  34  */
  35 #include <stdio.h>
  36 #include <stdlib.h>
  37 #include <fcntl.h>
  38 #include <unistd.h>
  39 #include <string.h>
  40 #include <signal.h>
  41 #include <sys/types.h>
  42 #include <libproc.h>
  43 #include <sys/aio.h>
  44 #include <sys/port_impl.h>
  45 #include "ramdata.h"
  46 #include "systable.h"
  47 #include "print.h"
  48 #include "proto.h"
  49 
  50 /*
  51  * Tables of information about system calls - read-only data.
  52  */
  53 
  54 const   char *const     errcode[] = {   /* error code names */


1702         "DECnet",       /* 12 */
1703         "DLI",          /* 13 */
1704         "LAT",          /* 14 */
1705         "HYLINK",       /* 15 */
1706         "APPLETALK",    /* 16 */
1707         "NIT",          /* 17 */
1708         "802",          /* 18 */
1709         "OSI",          /* 19 */
1710         "X25",          /* 20 */
1711         "OSINET",       /* 21 */
1712         "GOSIP",        /* 22 */
1713         "IPX",          /* 23 */
1714         "ROUTE",        /* 24 */
1715         "LINK",         /* 25 */
1716         "INET6",        /* 26 */
1717         "KEY",          /* 27 */
1718         "NCA",          /* 28 */
1719         "POLICY",       /* 29 */
1720         "RDS",          /* 30 */
1721         "TRILL",        /* 31 */
1722         "PACKET",       /* 32 */
1723         "LX_NETLINK"    /* 33 */
1724 };
1725 #if MAX_AFCODES != 34
1726 #error Need to update address-family table
1727 #endif
1728 
1729 
1730 const char * const socktype_codes[] = {         /* cf socket.h */
1731         NULL,
1732         "SOCK_DGRAM",           /* 1 */
1733         "SOCK_STREAM",          /* 2 */
1734         NULL,
1735         "SOCK_RAW",             /* 4 */
1736         "SOCK_RDM",             /* 5 */
1737         "SOCK_SEQPACKET"        /* 6 */
1738 };
1739 #if MAX_SOCKTYPES != 7
1740 #error Need to update socket-type table
1741 #endif