Print this page
12315 errors in section 7i of the manual
   1 IPNAT(7I)                       Ioctl Requests                       IPNAT(7I)
   2 
   3 NAME
   4      ipnat - IP Filter/NAT module interface
   5 
   6 DESCRIPTION
   7      The ipnat device provides interfaction with the NAT features of the
   8      Solaris IPFilter.
   9 
  10 APPLICATION PROGRAMMING INTERFACE
  11      The NAT features programming model is a component of the Solaris IP
  12      Filter and is accessed via the NAT device file /dev/ipnat.  Opening the
  13      device for reading or writing determines which ioctl calls can be
  14      successfully made.
  15 
  16 IOCTLS
  17      The caller must construct a ipfobj structure when issuing a SIOCGNATL or
  18      SIOCSTPUT ioctl.  The ipfobj structure is then passed to the ioctl call
  19      and is filled out with ipfo_type set to IPFOBJ_value.  IPFOBJ_value
  20      provides a matching name for the structure, while ipfo_size is set to the
  21      total size of the structure being passed and ipfo_ptr is set to the
  22      structure address.  The ipfo_rev structure should be set to the current
  23      value of IPFILTER_VERSION, while ipfo_offset and ipfo_xxxpad should be
  24      set to 0.
  25 
  26        /*
  27         * Structure used with SIOCGNATL/SIOCSTPUT.
  28         */
  29 
  30        /*
  31         * Object structure description.  For passing through in ioctls.


 317 
 318      ENOMEM             More memory was allocated than the kernel can provide.
 319                         The call may also be returned if the application
 320                         inserts a NAT entry that exceeds the hash bucket
 321                         chain's maximum length.
 322 
 323      EFAULT             The calling process specified an invalid pointer in
 324                         the ipfobj structure.
 325 
 326      EINVAL             The calling process detected a parameter or field set
 327                         to an unacceptable value.
 328 
 329      EEXIST             The calling process, via SIOCSTPUT, attempted to add a
 330                         NAT entry that already exists in the NAT table.
 331 
 332      ESRCH              The calling process called SIOCSTPUT before setting
 333                         the SI_NEWFR flag and providing a pointer in the
 334                         nat_fr field that cannot  be found in the current rule
 335                         set.
 336 
 337      EACESS             The calling process issued a SIOCSTPUT before issuing
 338                         a SIOCSTLCK.
 339 
 340 INTERFACE STABILITY
 341      Committed
 342 
 343 SEE ALSO
 344      ipfs(1M), ipnat(1M), ioctl(2), attributes(5)
 345 
 346 illumos                        October 23, 2017                        illumos
   1 IPNAT(7I)                       Ioctl Requests                       IPNAT(7I)
   2 
   3 NAME
   4      ipnat - IP Filter/NAT module interface
   5 
   6 DESCRIPTION
   7      The ipnat device provides interaction with the NAT features of the
   8      illumos IP Filter.
   9 
  10 APPLICATION PROGRAMMING INTERFACE
  11      The NAT features programming model is a component of the illumos IP
  12      Filter and is accessed via the NAT device file /dev/ipnat.  Opening the
  13      device for reading or writing determines which ioctl calls can be
  14      successfully made.
  15 
  16 IOCTLS
  17      The caller must construct a ipfobj structure when issuing a SIOCGNATL or
  18      SIOCSTPUT ioctl.  The ipfobj structure is then passed to the ioctl call
  19      and is filled out with ipfo_type set to IPFOBJ_value.  IPFOBJ_value
  20      provides a matching name for the structure, while ipfo_size is set to the
  21      total size of the structure being passed and ipfo_ptr is set to the
  22      structure address.  The ipfo_rev structure should be set to the current
  23      value of IPFILTER_VERSION, while ipfo_offset and ipfo_xxxpad should be
  24      set to 0.
  25 
  26        /*
  27         * Structure used with SIOCGNATL/SIOCSTPUT.
  28         */
  29 
  30        /*
  31         * Object structure description.  For passing through in ioctls.


 317 
 318      ENOMEM             More memory was allocated than the kernel can provide.
 319                         The call may also be returned if the application
 320                         inserts a NAT entry that exceeds the hash bucket
 321                         chain's maximum length.
 322 
 323      EFAULT             The calling process specified an invalid pointer in
 324                         the ipfobj structure.
 325 
 326      EINVAL             The calling process detected a parameter or field set
 327                         to an unacceptable value.
 328 
 329      EEXIST             The calling process, via SIOCSTPUT, attempted to add a
 330                         NAT entry that already exists in the NAT table.
 331 
 332      ESRCH              The calling process called SIOCSTPUT before setting
 333                         the SI_NEWFR flag and providing a pointer in the
 334                         nat_fr field that cannot  be found in the current rule
 335                         set.
 336 
 337      EACCES             The calling process issued a SIOCSTPUT before issuing
 338                         a SIOCSTLCK.
 339 
 340 INTERFACE STABILITY
 341      Committed
 342 
 343 SEE ALSO
 344      ipfs(1M), ipnat(1M), ioctl(2), attributes(5)
 345 
 346 illumos                        February 17, 2020                       illumos