Print this page
8541 pfiles does not properly identify PF_KEY or PF_POLICY
Reviewed by: Mike Zeller <mike.zeller@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ptools/pfiles/pfiles.c
          +++ new/usr/src/cmd/ptools/pfiles/pfiles.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
  25   25   */
  26   26  /*
  27      - * Copyright (c) 2013 Joyent, Inc.  All Rights reserved.
       27 + * Copyright (c) 2017 Joyent, Inc.  All Rights reserved.
  28   28   */
  29   29  
  30   30  #include <stdio.h>
  31   31  #include <stdlib.h>
  32   32  #include <unistd.h>
  33   33  #include <fcntl.h>
  34   34  #include <ctype.h>
  35   35  #include <string.h>
  36   36  #include <signal.h>
  37   37  #include <dirent.h>
↓ open down ↓ 511 lines elided ↑ open up ↑
 549  549          case AF_HYLINK:         p = "AF_HYLINK";        break;
 550  550          case AF_APPLETALK:      p = "AF_APPLETALK";     break;
 551  551          case AF_NIT:            p = "AF_NIT";           break;
 552  552          case AF_802:            p = "AF_802";           break;
 553  553          case AF_OSI:            p = "AF_OSI";           break;
 554  554          case AF_X25:            p = "AF_X25";           break;
 555  555          case AF_OSINET:         p = "AF_OSINET";        break;
 556  556          case AF_GOSIP:          p = "AF_GOSIP";         break;
 557  557          case AF_IPX:            p = "AF_IPX";           break;
 558  558          case AF_ROUTE:          p = "AF_ROUTE";         break;
      559 +        case AF_KEY:            p = "AF_KEY";           break;
      560 +        case AF_POLICY:         p = "AF_POLICY";        break;
 559  561          case AF_LINK:           p = "AF_LINK";          break;
 560  562          }
 561  563  
 562  564          (void) printf("\t%s: %s\n", str, p);
 563  565  }
 564  566  
 565  567  /*
 566  568   * Print out the process information for the other end of local sockets
 567  569   * and fifos
 568  570   */
↓ open down ↓ 246 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX