Print this page
8330 Add svc_tp_create_addr to libnsl
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/rpc/svc.h
          +++ new/usr/src/uts/common/rpc/svc.h
↓ open down ↓ 916 lines elided ↑ open up ↑
 917  917                                  const rpcprog_t, const rpcvers_t,
 918  918                                  const struct netconfig *);
 919  919          /*
 920  920           * void (*dispatch)();                  -- dispatch routine
 921  921           * const rpcprog_t prognum;             -- program number
 922  922           * const rpcvers_t versnum;             -- version number
 923  923           * const struct netconfig *nconf;       -- netconfig structure
 924  924           */
 925  925  
 926  926  /*
      927 + * Variant of svc_tp_create that accepts a binding address.
      928 + * If addr == NULL, this is the same as svc_tp_create().
      929 + */
      930 +extern SVCXPRT  *svc_tp_create_addr(void (*)(struct svc_req *, SVCXPRT *),
      931 +                                const rpcprog_t, const rpcvers_t,
      932 +                                const struct netconfig *,
      933 +                                const struct netbuf *);
      934 +        /*
      935 +         * void (*dispatch)();                  -- dispatch routine
      936 +         * const rpcprog_t prognum;             -- program number
      937 +         * const rpcvers_t versnum;             -- version number
      938 +         * const struct netconfig *nconf;       -- netconfig structure
      939 +         * const struct netbuf *addr;           -- address to bind
      940 +         */
      941 +
      942 +/*
 927  943   * Generic TLI create routine
 928  944   */
 929  945  extern  SVCXPRT *svc_tli_create(const int, const struct netconfig *,
 930  946                                  const struct t_bind *, const uint_t,
 931  947                                  const uint_t);
 932  948          /*
 933  949           *      const int fd;                   -- connection end point
 934  950           *      const struct netconfig *nconf;  -- netconfig structure
 935  951           *      const struct t_bind *bindaddr;  -- local bind address
 936  952           *      const uint_t sendsz;            -- max sendsize
↓ open down ↓ 192 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX