os/ossrv/genericopenlibs/openenvcore/include/netinet/in.dosc
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /** @file ../include/netinet/in.h
     2 @internalComponent
     3 */
     4 
     5 
     6 /** @struct sockaddr_in
     7 
     8 Socket address, internet style.
     9 
    10 @publishedAll
    11 @externallyDefinedApi
    12 */
    13 
    14 /** @var sockaddr_in::sin_family
    15 AF_INET. 
    16 */
    17 
    18 /** @var sockaddr_in::sin_port
    19 Port number. . 
    20 */
    21 
    22 /** @var sockaddr_in::sin_addr
    23 IP address. 
    24 */
    25 
    26 /** @var sockaddr_in::sin_zero
    27 There's also this sin_zero field which some people claim must be set to zero. Other people don't claim anything about it (the Linux documentation doesn't even mention it at all), and setting it to zero doesn't seem to be actually necessary. 
    28 So, if you feel like it, set it to zero using memset().
    29 */
    30 
    31 /** @struct  in_addr
    32 
    33 Internet address (a structure for historical reasons).
    34 
    35 @publishedAll
    36 @externallyDefinedApi
    37 */
    38 
    39 /** @var in_addr::s_addr
    40 s_addr is a 4-byte number that represents one digit in an IP address per byte
    41 */
    42 
    43 /** @typedef  typedef	uint32_t	in_addr_t
    44 
    45 Internet address manipulation
    46 
    47 @publishedAll
    48 @externallyDefinedApi
    49 */
    50 
    51 
    52 /** @typedef  typedef	uint16_t	in_port_t
    53 
    54 Internet port manipulation
    55 
    56 @publishedAll
    57 @externallyDefinedApi
    58 */
    59 
    60 
    61 /** @def IPPROTO_IP
    62 
    63 Internet protocol.
    64 
    65 @publishedAll
    66 @externallyDefinedApi
    67 */
    68 
    69 
    70 /** @def IPPROTO_ICMP	
    71 
    72 Control message protocol.
    73 
    74 @publishedAll
    75 @externallyDefinedApi
    76 */
    77 
    78 /** @def IPPROTO_TCP
    79 
    80 tcp  KProtocolInetTcp 
    81 
    82 @publishedAll
    83 @externallyDefinedApi
    84 */
    85 
    86 /** @def IPPROTO_UDP
    87 
    88 user datagram protocol KProtocolInetUdp 
    89 
    90 @publishedAll
    91 @externallyDefinedApi
    92 */
    93 
    94 
    95 /** @def INADDR_ANY
    96 
    97 IPv4 local host address.
    98 
    99 @publishedAll
   100 @externallyDefinedApi
   101 */
   102 
   103 
   104 /** @def INADDR_BROADCAST
   105 
   106 IPv4 broadcast address.
   107 
   108 @publishedAll
   109 @externallyDefinedApi
   110 */
   111 
   112 
   113 /** @fn  bindresvport(int sd, struct sockaddr_in *sin)
   114 @param sd
   115 @param sin
   116 
   117   The bindresvport function is used to bind a socket descriptor to a privileged IP port, i.e. a port with a number in the range 0-1023.
   118 
   119  If sin is a pointer to a struct sockaddr_in the appropriate fields in the structure should be 
   120   defined. Note that sin-\>sin_family must be initialized to the address 
   121   family of the socket, passed by sd. If sin-\>sin_port is '0' an anonymous port (in the range 600-1023) will be chosen and, if bind is successful, the sin-\>sin_port will be updated to contain the allocated 
   122   port.
   123 
   124  If sin is the NULL pointer an anonymous port will be allocated (as above). However, 
   125   there is no way for bindresvport to return the allocated port in this case.
   126 
   127  The function prototype of bindresvport is biased to AF_INET socket.
   128 
   129 Examples:
   130 @code
   131 #include <sys/socket.h>
   132 #include <netinet/in.h>
   133 #include <unistd.h>
   134 void BindResvPort()
   135 {
   136    int sockfd;
   137    sockaddr_in selfAddr;
   138    sockfd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
   139        
   140    selfAddr.sin_family = AF_INET;
   141    selfAddr.sin_addr.s_addr = INADDR_ANY;
   142    selfAddr.sin_port = htons(100);
   143    bindresvport(sockfd, &selfAddr;);
   144    close(sockfd);
   145 }
   146 
   147 @endcode
   148 @return   The bindresvport() function returns the value 0 if successful. Otherwise 
   149 it returns the value -1 and sets the global variable errno to indicate the error.
   150 
   151 @see bind()
   152 @see getsockopt()
   153 @see setsockopt()
   154 
   155 
   156  
   157 
   158 @publishedAll
   159 @externallyDefinedApi
   160 */
   161 
   162 
   163 /** @def IN_BADCLASS(i)
   164 
   165 Definitions of bits in internet address integers. 
   166 
   167 @publishedAll
   168 @released
   169 */
   170 
   171 
   172 /** @def IN_CLASSA(i)
   173 
   174 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   175 
   176 @publishedAll
   177 @released
   178 */
   179 
   180 /** @def IN_CLASSA_NET
   181 
   182 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   183 
   184 @publishedAll
   185 @released
   186 */
   187 
   188 /** @def IN_CLASSA_NSHIFT	
   189 
   190 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   191 
   192 @publishedAll
   193 @released
   194 */
   195 
   196 
   197 /** @def IN_CLASSA_HOST
   198 
   199 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   200 
   201 @publishedAll
   202 @released
   203 */
   204 
   205 
   206 /** @def IN_CLASSA_MAX	
   207 
   208 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   209 
   210 @publishedAll
   211 @released
   212 */
   213 
   214 
   215 /** @def IN_CLASSB(i) 
   216 
   217 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   218 
   219 @publishedAll
   220 @released
   221 */
   222 
   223 
   224 /** @def IN_CLASSB_NET
   225 
   226 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   227 
   228 @publishedAll
   229 @released
   230 */
   231 
   232 
   233 /** @def IN_CLASSB_NSHIFT
   234 
   235 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   236 
   237 @publishedAll
   238 @released
   239 */
   240 
   241 
   242 /** @def IN_CLASSB_HOST	
   243 
   244 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   245 
   246 @publishedAll
   247 @released
   248 */
   249 
   250 /** @def IN_CLASSB_MAX	
   251 
   252 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   253 
   254 @publishedAll
   255 @released
   256 */
   257 
   258 /** @def IN_CLASSC(i)
   259 
   260 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   261 
   262 @publishedAll
   263 @released
   264 */
   265 
   266 /** @def IN_CLASSC_NET	
   267 
   268 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   269 
   270 @publishedAll
   271 @released
   272 */
   273 
   274 
   275 /** @def IN_CLASSC_NSHIFT
   276 
   277 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   278 
   279 @publishedAll
   280 @released
   281 */
   282 
   283 /** @def IN_CLASSC_HOST	
   284 
   285 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   286 
   287 @publishedAll
   288 @released
   289 */
   290 
   291 /** @def IN_CLASSD(i)
   292 
   293 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   294 
   295 @publishedAll
   296 @released
   297 */
   298 
   299 /** @def IN_CLASSD_NET
   300 
   301 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   302 
   303 @publishedAll
   304 @released
   305 */
   306 
   307 /** @def IN_CLASSD_NSHIFT
   308 
   309 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   310 
   311 @publishedAll
   312 @released
   313 */
   314 
   315 /** @def IN_CLASSD_HOST
   316 
   317 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   318 
   319 @publishedAll
   320 @released
   321 */
   322 
   323 
   324 /** @def IN_EXPERIMENTAL(i)
   325 
   326 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   327 
   328 @publishedAll
   329 @released
   330 */
   331 
   332 
   333 /** @def IN_LOOPBACKNET	
   334 
   335 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   336 
   337 @publishedAll
   338 @released
   339 */
   340 
   341 /** @def IN_MULTICAST(i)	
   342 
   343 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   344 
   345 @publishedAll
   346 @released
   347 */
   348 
   349 /** @def INADDR_LOOPBACK
   350 
   351 Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.
   352 	
   353 @publishedAll
   354 @released
   355 */
   356 
   357 
   358 /** @def INADDR_MAX_LOCAL_GROUP
   359 
   360 Definitions of bits in internet address integers.
   361 
   362 @publishedAll
   363 @released
   364 */
   365 
   366 
   367 /** @def INADDR_NONE	
   368 
   369 Definitions of bits in internet address integers.
   370 
   371 @publishedAll
   372 @released
   373 */
   374 
   375 
   376 /** @def INADDR_UNSPEC_GROUP	
   377 
   378 Definitions of bits in internet address integers.
   379 
   380 @publishedAll
   381 @released
   382 */
   383 
   384 
   385 /** @def INADDR_ALLHOSTS_GROUP
   386 
   387 Definitions of bits in internet address integers.
   388 
   389 @publishedAll
   390 @released
   391 */
   392 
   393 
   394 /** @def IP_DEFAULT_MULTICAST_LOOP
   395 
   396 Defaults and limits for options. normally hear sends if a member 
   397 
   398 @publishedAll
   399 @released
   400 */
   401 
   402 /** @def IP_DEFAULT_MULTICAST_TTL 
   403 
   404 Defaults and limits for options. normally limit m'casts to 1 hop 
   405 
   406 @publishedAll
   407 @released
   408 */
   409 
   410 
   411 /** @def IP_ADD_MEMBERSHIP
   412 
   413 ip_mreq; add an IP group membership
   414 
   415 @publishedAll
   416 @released
   417 */
   418 
   419 
   420 /** @def IP_DROP_MEMBERSHIP
   421 
   422 ip_mreq; drop an IP group membership
   423 
   424 @publishedAll
   425 @released
   426 */
   427 
   428 
   429 /** @def IP_HDRINCL
   430 
   431 int; header is included with data
   432 
   433 @publishedAll
   434 @released
   435 */
   436 
   437 
   438 /** @struct ip_mreq
   439 
   440 Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
   441 
   442 @publishedAll
   443 @released
   444 */
   445 
   446 /** @var ip_mreq::imr_multiaddr
   447 IP multicast address of group
   448 */
   449 
   450 /** @var ip_mreq::imr_interface
   451 local IP address of interface 
   452 */
   453 
   454 
   455 /** @def IP_MULTICAST_IF	
   456 
   457 set or get IP multicast interface
   458 
   459 @publishedAll
   460 @released
   461 */
   462 
   463 
   464 /** @def IP_MULTICAST_LOOP
   465 
   466 u_char; set or get IP multicast loopback 
   467 
   468 @publishedAll
   469 @released
   470 */
   471 
   472 /** @def IP_MULTICAST_TTL
   473 
   474 set or get IP multicast timetolive
   475 
   476 @publishedAll
   477 @released
   478 */
   479 
   480 /** @def IP_OPTIONS
   481 
   482 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   483 buf or ip_opts; set or get IP options
   484 
   485 @publishedAll
   486 @released
   487 */
   488 
   489 
   490 /** @def IP_RECVDSTADDR
   491 
   492 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   493 bool; receive IP dst addr wdgram 
   494 	
   495 @publishedAll
   496 @released
   497 */
   498 
   499 
   500 /** @def IP_RECVOPTS
   501 
   502 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   503 bool; receive all IP opts w dgram 
   504 
   505 @publishedAll
   506 @released
   507 */
   508 
   509 
   510 /** @def IP_RECVRETOPTS	
   511 
   512 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   513 bool; receive IP opts for response
   514 
   515 @publishedAll
   516 @released
   517 */
   518 
   519 
   520 /** @def IP_RETOPTS
   521 
   522 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   523 ip_opts; set or get IP options
   524 
   525 @publishedAll
   526 @released
   527 */
   528 
   529 
   530 
   531 /** @def IP_TOS		
   532 
   533 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   534 int; IP type of service and preced.
   535 
   536 @publishedAll
   537 @released
   538 */
   539 
   540 /** @def IP_TTL
   541 
   542 Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int.
   543 int; IP type of service and preced.
   544 
   545 @publishedAll
   546 @released
   547 */
   548 
   549 /** @def IPPROTO_EGP
   550 
   551 exterior gateway protocol
   552 
   553 @publishedAll
   554 @released
   555 */
   556 
   557 
   558 /** @def IPPROTO_HOPOPTS	
   559 
   560 IP6 hop-by-hop options
   561 
   562 @publishedAll
   563 @released
   564 */
   565 
   566 /** @def IPPROTO_IGMP
   567 
   568 group mgmt protocol
   569 
   570 @publishedAll
   571 @released
   572 */
   573 
   574 /** @def IPPROTO_GGP	
   575 
   576 gateway2 (deprecated)
   577 
   578 @publishedAll
   579 @released
   580 */
   581 
   582 
   583 /** @def IPPROTO_IPV4
   584 
   585 IPv4 encapsulation
   586 
   587 @publishedAll
   588 @released
   589 */
   590 
   591 /** @def IPPROTO_IPIP
   592 
   593 for compatibility
   594 
   595 @publishedAll
   596 @released
   597 */
   598 
   599 /** @def IPPROTO_ST
   600 
   601 Stream protocol II 
   602 
   603 @publishedAll
   604 @released
   605 */
   606 
   607 
   608 /** @def IPPROTO_EGP	
   609 
   610 exterior gateway protocol 
   611 
   612 @publishedAll
   613 @released
   614 */
   615 
   616 
   617 /** @def IPPROTO_PIGP
   618 
   619 private interior gateway
   620 
   621 @publishedAll
   622 @released
   623 */
   624 
   625 /** @def IPPROTO_RCCMON	
   626 
   627 BBN RCC Monitoring
   628 
   629 @publishedAll
   630 @released
   631 */
   632 
   633 /** @def IPPROTO_NVPII	
   634 
   635 network voice protocol
   636 
   637 @publishedAll
   638 @released
   639 */
   640 
   641 
   642 /** @def IPPROTO_PUP	
   643 
   644 pup
   645 
   646 @publishedAll
   647 @released
   648 */
   649 
   650 /** @def IPPROTO_ARGUS	
   651 
   652 Argus
   653 
   654 @publishedAll
   655 @released
   656 */
   657 
   658 /** @def IPPROTO_EMCON	
   659 
   660 EMCON
   661 
   662 @publishedAll
   663 @released
   664 */
   665 
   666 /** @def IPPROTO_XNET
   667 
   668 Cross Net Debugger
   669 
   670 @publishedAll
   671 @released
   672 */
   673 
   674 
   675 /** @def IPPROTO_CHAOS
   676 
   677 Chaos
   678 
   679 @publishedAll
   680 @released
   681 */
   682 
   683 
   684 /** @def IPPROTO_MUX
   685 
   686 Multiplexing
   687 
   688 @publishedAll
   689 @released
   690 */
   691 
   692 /** @def IPPROTO_MEAS	
   693 
   694 DCN Measurement Subsystems
   695 
   696 @publishedAll
   697 @released
   698 */
   699 
   700 /** @def IPPROTO_HMP
   701 
   702 Host Monitoring
   703 
   704 @publishedAll
   705 @released
   706 */
   707 
   708 
   709 /** @def IPPROTO_PRM
   710 
   711 Packet Radio Measurement
   712 
   713 @publishedAll
   714 @released
   715 */
   716 
   717 /** @def IPPROTO_IDP
   718 
   719 xns idp
   720 
   721 @publishedAll
   722 @released
   723 */
   724 
   725 /** @def IPPROTO_TRUNK1
   726 
   727 Trunk-1
   728 
   729 @publishedAll
   730 @released
   731 */
   732 
   733 /** @def IPPROTO_TRUNK2
   734 
   735 Trunk-2
   736 
   737 @publishedAll
   738 @released
   739 */
   740 
   741 
   742 /** @def IPPROTO_LEAF1
   743 
   744 Leaf-1
   745 
   746 @publishedAll
   747 @released
   748 */
   749 
   750 
   751 /** @def IPPROTO_LEAF2	
   752 
   753 Leaf-2
   754 
   755 @publishedAll
   756 @released
   757 */
   758 
   759 /** @def IPPROTO_RDP
   760 
   761 Reliable Data 
   762 
   763 @publishedAll
   764 @released
   765 */
   766 
   767 /** @def IPPROTO_IRTP
   768 
   769 Reliable Transaction
   770 
   771 @publishedAll
   772 @released
   773 */
   774 
   775 
   776 /** @def IPPROTO_TP
   777 
   778 tp-4 w class negotiation
   779 
   780 @publishedAll
   781 @released
   782 */
   783 
   784 
   785 /** @def IPPROTO_BLT
   786 
   787 Bulk Data Transfer
   788 
   789 @publishedAll
   790 @released
   791 */
   792 
   793 /** @def IPPROTO_NSP
   794 
   795 Network Services 
   796 
   797 @publishedAll
   798 @released
   799 */
   800 
   801 /** @def IPPROTO_INP
   802 
   803 Merit Internodal 
   804 
   805 @publishedAll
   806 @released
   807 */
   808 
   809 
   810 /** @def IPPROTO_SEP
   811 
   812 Sequential Exchange
   813 
   814 @publishedAll
   815 @released
   816 */
   817 
   818 /** @def IPPROTO_3PC
   819 
   820 Third Party Connect
   821 
   822 @publishedAll
   823 @released
   824 */
   825 
   826 /**@def IPPROTO_IDPR
   827 
   828 InterDomain Policy Routing
   829 
   830 @publishedAll
   831 @released
   832 */
   833 
   834 
   835 /** @def IPPROTO_XTP
   836 
   837 XTP
   838 
   839 @publishedAll
   840 @released
   841 */
   842 
   843 /** @def IPPROTO_DDP
   844 
   845 Datagram Delivery
   846 
   847 @publishedAll
   848 @released
   849 */
   850 
   851 /** @def IPPROTO_SDRP
   852 
   853 Source Demand Routing
   854 
   855 @publishedAll
   856 @released
   857 */
   858 
   859 
   860 /** @def IPPROTO_CMTP	
   861 
   862 Control Message Transport
   863 	
   864 @publishedAll
   865 @released
   866 */
   867 
   868 /** @def IPPROTO_TPXX		
   869 
   870 TP++ Transport
   871 
   872 @publishedAll
   873 @released
   874 */
   875 
   876 /** @def IPPROTO_IL	
   877 
   878 IL transport protocol 
   879 	
   880 @publishedAll
   881 @released
   882 */
   883 
   884 
   885 /** @def IPPROTO_IPV6	
   886 
   887 IP6 header 
   888 	
   889 @publishedAll
   890 @released
   891 */
   892 
   893 /** @def IPPROTO_ROUTING	
   894 
   895 IP6 routing header 
   896 	
   897 @publishedAll
   898 @released
   899 */
   900 
   901 
   902 /** @def IPPROTO_FRAGMENT	
   903 
   904 IP6 fragmentation header 
   905 
   906 @publishedAll
   907 @released
   908 */
   909 
   910 
   911 /** @def IPPROTO_IDRP		
   912 
   913 InterDomain Routing
   914 
   915 @publishedAll
   916 @released
   917 */
   918 
   919 /** @def IPPROTO_RSVP	
   920 
   921 resource reservation 
   922 	
   923 @publishedAll
   924 @released
   925 */
   926 
   927 
   928 /** @def IPPROTO_GRE		
   929 
   930 General Routing Encap.
   931 
   932 @publishedAll
   933 @released
   934 */
   935 
   936 
   937 
   938 /** @def IPPROTO_BHA	
   939 
   940 BHA
   941 
   942 @publishedAll
   943 @released
   944 */
   945 
   946 
   947 /** @def IPPROTO_ESP	
   948 
   949 IP6 Encap Sec. Payload
   950 	
   951 @publishedAll
   952 @released
   953 */
   954 
   955 /** @def IPPROTO_AH		
   956 
   957 IP6 Auth Header
   958 
   959 @publishedAll
   960 @released
   961 */
   962 
   963 /** @def IPPROTO_INLSP		
   964 
   965 Integ. Net Layer Security
   966 
   967 @publishedAll
   968 @released
   969 */
   970 
   971 
   972 /** @def IPPROTO_SWIPE		
   973 
   974 IP with encryption
   975 
   976 @publishedAll
   977 @released
   978 */
   979 
   980 /** @def IPPROTO_NHRP	
   981 
   982 Next Hop Resolution 
   983 	
   984 @publishedAll
   985 @released
   986 */
   987 
   988 
   989 /** @def IPPROTO_MOBILE	
   990 
   991 IP Mobility 
   992 	
   993 @publishedAll
   994 @released
   995 */
   996 
   997 /**@def IPPROTO_TLSP	
   998 
   999 Transport Layer Security
  1000 	
  1001 @publishedAll
  1002 @released
  1003 */
  1004 
  1005 /** @def IPPROTO_SKIP
  1006 
  1007 SKIP
  1008 		
  1009 @publishedAll
  1010 @released
  1011 */
  1012 
  1013 
  1014 /** @def IPPROTO_ICMPV6		
  1015 
  1016 ICMP6
  1017 
  1018 @publishedAll
  1019 @released
  1020 */
  1021 
  1022 /** @def IPPROTO_NONE	
  1023 
  1024 IP6 no next header
  1025 	
  1026 @publishedAll
  1027 @released
  1028 */
  1029 
  1030 
  1031 /** @def IPPROTO_DSTOPTS	
  1032 
  1033 IP6 destination option 
  1034 	
  1035 @publishedAll
  1036 @released
  1037 */
  1038 
  1039 
  1040 
  1041 /** @def IPPROTO_AHIP		
  1042 
  1043 any host internal protocol
  1044 
  1045 @publishedAll
  1046 @released
  1047 */
  1048 
  1049 
  1050 
  1051 /** @def IPPROTO_CFTP	
  1052 
  1053 CFTP
  1054 	
  1055 @publishedAll
  1056 @released
  1057 */
  1058 
  1059 
  1060 /** @def IPPROTO_HELLO		
  1061 
  1062 "hello" routing protocol 
  1063 
  1064 @publishedAll
  1065 @released
  1066 */
  1067 
  1068 
  1069 /** @def IPPROTO_SATEXPAK
  1070 
  1071 SATNET or Backroom EXPAK
  1072 	
  1073 @publishedAll
  1074 @released
  1075 */
  1076 
  1077 
  1078 /** @def IPPROTO_KRYPTOLAN	
  1079 
  1080 Kryptolan
  1081 
  1082 @publishedAll
  1083 @released
  1084 */
  1085 
  1086 
  1087 /** @def IPPROTO_RVD	
  1088 
  1089 Remote Virtual Disk
  1090 	
  1091 @publishedAll
  1092 @released
  1093 */
  1094 
  1095 
  1096 /** @def IPPROTO_IPPC		
  1097 
  1098 Pluribus Packet Core
  1099 
  1100 @publishedAll
  1101 @released
  1102 */
  1103 
  1104 
  1105 /** @def IPPROTO_ADFS	
  1106 
  1107 Any distributed FS
  1108 	
  1109 @publishedAll
  1110 @released
  1111 */
  1112 
  1113 
  1114 
  1115 /** @def IPPROTO_SATMON		
  1116 
  1117 Satnet Monitoring
  1118 
  1119 @publishedAll
  1120 @released
  1121 */
  1122 
  1123 
  1124 /** @def IPPROTO_VISA	
  1125 
  1126 VISA Protocol
  1127 	
  1128 @publishedAll
  1129 @released
  1130 */
  1131 
  1132 
  1133 /** @def IPPROTO_IPCV		
  1134 
  1135 Packet Core Utility 
  1136 
  1137 @publishedAll
  1138 @released
  1139 */
  1140 
  1141 /** @def IPPROTO_CPNX	
  1142 
  1143 Comp. Prot. Net. Executive
  1144 	
  1145 @publishedAll
  1146 @released
  1147 */
  1148 
  1149 
  1150 /** @def IPPROTO_CPHB	
  1151 
  1152 Comp. Prot. HeartBeat
  1153 	
  1154 @publishedAll
  1155 @released
  1156 */
  1157 
  1158 
  1159 /** @def IPPROTO_WSN	
  1160 
  1161 Wang Span Network
  1162 	
  1163 @publishedAll
  1164 @released
  1165 */
  1166 
  1167 
  1168 /** @def IPPROTO_PVP		
  1169 
  1170 Packet Video Protocol
  1171 
  1172 @publishedAll
  1173 @released
  1174 */
  1175 
  1176 /** @def IPPROTO_BRSATMON	
  1177 
  1178 BackRoom SATNET Monitoring 
  1179 
  1180 @publishedAll
  1181 @released
  1182 */
  1183 
  1184 /** @def IPPROTO_ND		
  1185 
  1186 Sun net disk proto (temp.)
  1187 
  1188 @publishedAll
  1189 @released
  1190 */
  1191 
  1192 
  1193 /** @def IPPROTO_WBMON		
  1194 
  1195 WIDEBAND Monitoring 
  1196 
  1197 @publishedAll
  1198 @released
  1199 */
  1200 
  1201 
  1202 /** @def IPPROTO_WBEXPAK	
  1203 
  1204 WIDEBAND EXPAK 
  1205 	
  1206 @publishedAll
  1207 @released
  1208 */
  1209 
  1210 
  1211 /** @def IPPROTO_EON	
  1212 
  1213 ISO cnlp
  1214 	
  1215 @publishedAll
  1216 @released
  1217 */
  1218 
  1219 /** @def IPPROTO_VMTP		
  1220 
  1221 VMTP
  1222 
  1223 @publishedAll
  1224 @released
  1225 */
  1226 
  1227 /** @def IPPROTO_SVMTP	
  1228 
  1229 Secure VMTP
  1230 	
  1231 @publishedAll
  1232 @released
  1233 */
  1234 
  1235 
  1236 /** @def IPPROTO_VINES	
  1237 
  1238 Banyon VINES
  1239 	
  1240 @publishedAll
  1241 @released
  1242 */
  1243 
  1244 
  1245 /** @def IPPROTO_TTP		
  1246 
  1247 TTP	
  1248 
  1249 @publishedAll
  1250 @released
  1251 */
  1252 
  1253 /** @def IPPROTO_IGP		
  1254 
  1255 NSFNET-IGP
  1256 
  1257 @publishedAll
  1258 @released
  1259 */
  1260 
  1261 /** @def IPPROTO_DGP	
  1262 
  1263 dissimilar gateway prot.
  1264 	
  1265 @publishedAll
  1266 @released
  1267 */
  1268 
  1269 
  1270 /** @def IPPROTO_TCF	
  1271 
  1272 TCF	
  1273 	
  1274 @publishedAll
  1275 @released
  1276 */
  1277 
  1278 
  1279 /** @def IPPROTO_IGRP		
  1280 
  1281 Cisco or GXS IGRP 
  1282 
  1283 @publishedAll
  1284 @released
  1285 */
  1286 
  1287 /** @def IPPROTO_OSPFIGP	
  1288 
  1289 OSPFIGP	
  1290 	
  1291 @publishedAll
  1292 @released
  1293 */
  1294 
  1295 /** @def IPPROTO_SRPC		
  1296 
  1297 Strite RPC protocol
  1298 
  1299 @publishedAll
  1300 @released
  1301 */
  1302 
  1303 
  1304 /** @def IPPROTO_LARP		
  1305 
  1306 Locus Address Resoloution 
  1307 
  1308 @publishedAll
  1309 @released
  1310 */
  1311 
  1312 
  1313 /** @def IPPROTO_MTP	
  1314 
  1315 Multicast Transport
  1316 	
  1317 @publishedAll
  1318 @released
  1319 */
  1320 
  1321 /** @def IPPROTO_AX25		
  1322 
  1323 AX.25 Frames
  1324 
  1325 @publishedAll
  1326 @released
  1327 */
  1328 
  1329 /** @def IPPROTO_IPEIP		
  1330 
  1331 IP encapsulated in IP
  1332 
  1333 @publishedAll
  1334 @released
  1335 */
  1336 
  1337 
  1338 /** @def IPPROTO_MICP		
  1339 
  1340 Mobile Int.ing control
  1341 
  1342 @publishedAll
  1343 @released
  1344 */
  1345 
  1346 
  1347 /** @def IPPROTO_SCCSP	
  1348 
  1349 Semaphore Comm. security
  1350 	
  1351 @publishedAll
  1352 @released
  1353 */
  1354 
  1355 /** @def IPPROTO_ETHERIP
  1356 
  1357 Ethernet IP encapsulation
  1358 		
  1359 @publishedAll
  1360 @released
  1361 */
  1362 
  1363 /** @def IPPROTO_ENCAP		
  1364 
  1365 encapsulation header
  1366 
  1367 @publishedAll
  1368 @released
  1369 */
  1370 
  1371 
  1372 /** @def IPPROTO_APES	
  1373 
  1374 any private encr. scheme 
  1375 	
  1376 @publishedAll
  1377 @released
  1378 */
  1379 
  1380 
  1381 /** @def IPPROTO_GMTP
  1382 
  1383 GMTP
  1384 
  1385 @publishedAll
  1386 @released
  1387 */
  1388 
  1389 
  1390 /**@def IPPROTO_PIM		
  1391 
  1392 Protocol Independent Mcast
  1393 
  1394 @publishedAll
  1395 @released
  1396 */
  1397 
  1398 /** @def IPPROTO_CARP	
  1399 
  1400 CARP
  1401 	
  1402 @publishedAll
  1403 @released
  1404 */
  1405 
  1406 /** @def IPPROTO_PGM
  1407 
  1408 PGM
  1409 		
  1410 @publishedAll
  1411 @released
  1412 */
  1413 
  1414 
  1415 /** @def IPPROTO_PFSYNC	
  1416 
  1417 PFSYNC	
  1418 	
  1419 @publishedAll
  1420 @released
  1421 */
  1422 
  1423 
  1424 /** @def SOL_IP
  1425 
  1426 options for IP level KSolInetIp
  1427 
  1428 @publishedAll
  1429 @released
  1430 */
  1431 
  1432 
  1433 /** @def SOL_TCP	
  1434 
  1435 options for TCP level KSolInetTcp
  1436 
  1437 @publishedAll
  1438 @released
  1439 */
  1440 
  1441 
  1442 /** @def TCP_NODELAY	
  1443 
  1444 User-settable options (used with setsockopt). don't delay send to coalesce packets KSoTcpNoDelay
  1445 
  1446 @publishedAll
  1447 @released
  1448 */
  1449 
  1450 
  1451 /** @def TCP_MAXSEG
  1452 
  1453 User-settable options (used with setsockopt). set maximum segment size KSoTcpMaxSegSize 
  1454 
  1455 @publishedAll
  1456 @released
  1457 */
  1458 
  1459 
  1460 /** @def IPPORT_RESERVED	
  1461 
  1462 Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root).         (IP_PORTRANGE_LOW)
  1463 	
  1464 @publishedAll
  1465 @released
  1466 */
  1467 
  1468 
  1469 /** @def IPPORT_HIFIRSTAUTO	
  1470 
  1471 Default local port range, used by both IP_PORTRANGE_DEFAULT and IP_PORTRANGE_HIGH.
  1472 
  1473 @publishedAll
  1474 @released
  1475 */
  1476 
  1477 
  1478 /** @def IPPORT_HILASTAUTO	
  1479 
  1480 Default local port range, used by both IP_PORTRANGE_DEFAULT and IP_PORTRANGE_HIGH.
  1481 
  1482 @publishedAll
  1483 @released
  1484 */
  1485 
  1486 
  1487 /** @def IPPORT_RESERVEDSTART	
  1488 
  1489 Scanning for a free reserved port return a value below IPPORT_RESERVED, but higher than IPPORT_RESERVEDSTART.  Traditionally the start value was 512, but that conflicts with some well-known-services that firewalls may have a fit if we use.
  1490 
  1491 @publishedAll
  1492 @released
  1493 */
  1494 
  1495 
  1496 /** @def IPPROTO_MAX	
  1497 
  1498 Maximum value for IPPROTO options
  1499 	
  1500 @publishedAll
  1501 @released
  1502 */
  1503 
  1504 
  1505 /** @def IPPORT_MAX	
  1506 
  1507 Defines MAX value
  1508 	
  1509 @publishedAll
  1510 @released
  1511 */
  1512 
  1513 
  1514 /** @def IPPROTO_DONE		
  1515 
  1516 last return value of _input(), meaning all job for this pkt is done.
  1517 
  1518 @publishedAll
  1519 @released
  1520 */
  1521 
  1522 
  1523 /** @def IPPROTO_SPACER		
  1524 
  1525 Defined to avoid confusion.  The master value is defined by PROTO_SPACER in sys//protosw.h.
  1526 
  1527 @publishedAll
  1528 @released
  1529 */
  1530 
  1531 
  1532 /** @def IP_RSVP_ON	
  1533 
  1534 enable RSVP in kernel
  1535 	
  1536 @publishedAll
  1537 @released
  1538 */
  1539 
  1540 
  1541 /** @def IP_RSVP_OFF	
  1542 
  1543 disable RSVP in kernel
  1544 	
  1545 @publishedAll
  1546 @released
  1547 */
  1548 
  1549 
  1550 /** @def IP_RSVP_VIF_ON		
  1551 
  1552 set RSVP per-vif socket
  1553 
  1554 @publishedAll
  1555 @released
  1556 */
  1557 
  1558 
  1559 /** @def IP_RSVP_VIF_OFF	
  1560 
  1561 unset RSVP per-vif socket
  1562 	
  1563 @publishedAll
  1564 @released
  1565 */
  1566 
  1567 
  1568 /** @def IP_PORTRANGE		
  1569 
  1570 int; range to choose for unspec port
  1571 
  1572 @publishedAll
  1573 @released
  1574 */
  1575 
  1576 
  1577 /** @def IP_RECVIF	
  1578 
  1579 bool; receive reception if w dgram 
  1580 	
  1581 @publishedAll
  1582 @released
  1583 */
  1584 
  1585 
  1586 /** @def IP_IPSEC_POLICY	
  1587 
  1588 int; set or get security policy
  1589 	
  1590 @publishedAll
  1591 @released
  1592 */
  1593 
  1594 
  1595 /** @def IP_FAITH	
  1596 
  1597 bool; accept FAITH'ed connections
  1598 	
  1599 @publishedAll
  1600 @released
  1601 */
  1602 
  1603 
  1604 /** @def IP_ONESBCAST		
  1605 
  1606 bool: send all-ones broadcast
  1607 
  1608 @publishedAll
  1609 @released
  1610 */
  1611 
  1612 
  1613 /** @def IP_FW_TABLE_ADD	
  1614 
  1615 add entry
  1616 	
  1617 @publishedAll
  1618 @released
  1619 */
  1620 
  1621 
  1622 /** @def IP_FW_TABLE_DEL	
  1623 
  1624 delete entry
  1625 	
  1626 @publishedAll
  1627 @released
  1628 */
  1629 
  1630 
  1631 /** @def IP_FW_TABLE_FLUSH	
  1632 
  1633 flush table
  1634 
  1635 @publishedAll
  1636 @released
  1637 */
  1638 
  1639 
  1640 /** @def IP_FW_TABLE_GETSIZE	
  1641 
  1642 get table size
  1643 
  1644 @publishedAll
  1645 @released
  1646 */
  1647 
  1648 
  1649 /** @def IP_FW_TABLE_LIST	
  1650 
  1651 list table contents
  1652 
  1653 @publishedAll
  1654 @released
  1655 */
  1656 
  1657 
  1658 /** @def IP_FW_ADD	
  1659 
  1660 add a firewall rule to chain 
  1661 	
  1662 @publishedAll
  1663 @released
  1664 */
  1665 
  1666 
  1667 /** @def IP_FW_DEL		
  1668 
  1669 delete a firewall rule from chain
  1670 
  1671 @publishedAll
  1672 @released
  1673 */
  1674 
  1675 
  1676 /** @def IP_FW_FLUSH	
  1677 
  1678 flush firewall rule chain
  1679 	
  1680 @publishedAll
  1681 @released
  1682 */
  1683 
  1684 
  1685 /** @def IP_FW_ZERO		
  1686 
  1687 clear single or all firewall counter(s)
  1688 
  1689 @publishedAll
  1690 @released
  1691 */
  1692 
  1693 
  1694 /** @def IP_FW_GET	
  1695 
  1696 get entire firewall rule chain
  1697 	
  1698 @publishedAll
  1699 @released
  1700 */
  1701 
  1702 
  1703 /** @def IP_FW_RESETLOG		
  1704 
  1705 reset logging counters
  1706 
  1707 @publishedAll
  1708 @released
  1709 */
  1710 
  1711 
  1712 /** @def IP_DUMMYNET_CONFIGURE	
  1713 
  1714 add or configure a dummynet pipe 
  1715 
  1716 @publishedAll
  1717 @released
  1718 */
  1719 
  1720 
  1721 /** @def IP_DUMMYNET_DEL	
  1722 
  1723 delete a dummynet pipe from chain 
  1724 	
  1725 @publishedAll
  1726 @released
  1727 */
  1728 
  1729 
  1730 /** @def IP_DUMMYNET_FLUSH	
  1731 
  1732 flush dummynet
  1733 
  1734 @publishedAll
  1735 @released
  1736 */
  1737 
  1738 
  1739 /** @def IP_DUMMYNET_GET	
  1740 
  1741 get entire dummynet pipes
  1742 	
  1743 @publishedAll
  1744 @released
  1745 */
  1746 
  1747 /** @def IP_RECVTTL	
  1748 
  1749 bool; receive IP TTL w dgram 
  1750 	
  1751 @publishedAll
  1752 @released
  1753 */
  1754 
  1755 
  1756 /** @def IP_MINTTL		
  1757 
  1758 minimum TTL for packet or drop 
  1759 
  1760 @publishedAll
  1761 @released
  1762 */
  1763 
  1764 /** @def IP_DONTFRAG		
  1765 
  1766 don't fragment packet
  1767 
  1768 @publishedAll
  1769 @released
  1770 */
  1771 
  1772 
  1773 
  1774 
  1775 
  1776 
  1777