
Go to the source code of this file.
Defines | |
| #define | IPPROTO_IP 0 |
| #define | IPPROTO_ICMP 1 |
| #define | IPPROTO_TCP 6 |
| #define | IPPROTO_UDP 17 |
| #define | IPPROTO_RAW 255 |
| #define | IPPORT_RESERVED 1024 |
| #define | IPPORT_USERRESERVED 5000 |
| #define | INADDR_ANY 0x00000000 |
| #define | INADDR_BROADCAST 0xffffffff |
| #define | INADDR_LOOPBACK 0x7F000001 |
| #define | INADDR_UNSPEC_GROUP 0xe0000000 |
| #define | INADDR_ALLHOSTS_GROUP 0xe0000001 |
| #define | INADDR_MAX_LOCAL_GROUP 0xe00000ff |
| #define | INADDR_NONE 0xffffffff |
| #define | SHUT_RD 0 |
| #define | SHUT_WR 1 |
| #define | SHUT_RDWR 2 |
Functions | |
| int | rsock_family_to_int (const char *str, long len, int *valp) |
| int | rsock_socktype_to_int (const char *str, long len, int *valp) |
| int | rsock_ipproto_to_int (const char *str, long len, int *valp) |
| int | rsock_unknown_level_to_int (const char *str, long len, int *valp) |
| int | rsock_ip_level_to_int (const char *str, long len, int *valp) |
| int | rsock_so_optname_to_int (const char *str, long len, int *valp) |
| int | rsock_ip_optname_to_int (const char *str, long len, int *valp) |
| int | rsock_tcp_optname_to_int (const char *str, long len, int *valp) |
| int | rsock_udp_optname_to_int (const char *str, long len, int *valp) |
| int | rsock_shutdown_how_to_int (const char *str, long len, int *valp) |
| int | rsock_scm_optname_to_int (const char *str, long len, int *valp) |
| ID | rsock_intern_family (int val) |
| ID | rsock_intern_family_noprefix (int val) |
| ID | rsock_intern_protocol_family (int val) |
| ID | rsock_intern_socktype (int val) |
| ID | rsock_intern_ipproto (int val) |
| ID | rsock_intern_iplevel (int val) |
| ID | rsock_intern_so_optname (int val) |
| ID | rsock_intern_ip_optname (int val) |
| ID | rsock_intern_ipv6_optname (int val) |
| ID | rsock_intern_tcp_optname (int val) |
| ID | rsock_intern_udp_optname (int val) |
| ID | rsock_intern_scm_optname (int val) |
| ID | rsock_intern_local_optname (int val) |
| #define INADDR_ALLHOSTS_GROUP 0xe0000001 |
| #define INADDR_ANY 0x00000000 |
| #define INADDR_BROADCAST 0xffffffff |
| #define INADDR_LOOPBACK 0x7F000001 |
Definition at line 749 of file constdefs.h.
Referenced by init_constants(), and socketpair_internal().
| #define INADDR_MAX_LOCAL_GROUP 0xe00000ff |
| #define INADDR_NONE 0xffffffff |
| #define INADDR_UNSPEC_GROUP 0xe0000000 |
| #define IPPORT_RESERVED 1024 |
| #define IPPORT_USERRESERVED 5000 |
| #define IPPROTO_ICMP 1 |
Definition at line 588 of file constdefs.h.
Referenced by init_constants(), rsock_ip_level_to_int(), and rsock_ipproto_to_int().
| #define IPPROTO_IP 0 |
Definition at line 581 of file constdefs.h.
Referenced by init_constants(), optname_to_sym(), rsock_cmsg_type_arg(), rsock_ip_level_to_int(), rsock_ipproto_to_int(), and rsock_optname_arg().
| #define IPPROTO_RAW 255 |
Definition at line 709 of file constdefs.h.
Referenced by init_constants(), rsock_ip_level_to_int(), and rsock_ipproto_to_int().
| #define IPPROTO_TCP 6 |
Definition at line 605 of file constdefs.h.
Referenced by addrinfo_inspect(), addrinfo_s_tcp(), getaddrinfo(), init_constants(), optname_to_sym(), rsock_cmsg_type_arg(), rsock_getaddrinfo(), rsock_ip_level_to_int(), rsock_ipproto_to_int(), rsock_optname_arg(), and sockopt_inspect().
| #define IPPROTO_UDP 17 |
Definition at line 622 of file constdefs.h.
Referenced by addrinfo_inspect(), addrinfo_s_udp(), getaddrinfo(), init_constants(), optname_to_sym(), rsock_cmsg_type_arg(), rsock_getaddrinfo(), rsock_ip_level_to_int(), rsock_ipproto_to_int(), and rsock_optname_arg().
| #define SHUT_RD 0 |
Definition at line 1514 of file constdefs.h.
Referenced by bsock_shutdown(), init_constants(), rb_io_close_read(), and rsock_shutdown_how_to_int().
| #define SHUT_RDWR 2 |
Definition at line 1528 of file constdefs.h.
Referenced by bsock_shutdown(), init_constants(), and rsock_shutdown_how_to_int().
| #define SHUT_WR 1 |
Definition at line 1521 of file constdefs.h.
Referenced by bsock_shutdown(), init_constants(), rb_io_close_write(), and rsock_shutdown_how_to_int().
| int rsock_family_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 3710 of file constdefs.c.
References AF_UNSPEC, memcmp(), PF_INET, and PF_UNSPEC.
Referenced by addrinfo_initialize(), addrinfo_mload(), and rsock_family_arg().
| ID rsock_intern_family | ( | int | val | ) |
Definition at line 5750 of file constdefs.c.
References name, and st_lookup.
Referenced by addrinfo_mdump(), inspect_sockaddr(), and rsock_ipaddr().
| ID rsock_intern_family_noprefix | ( | int | val | ) |
Definition at line 5759 of file constdefs.c.
References name, and st_lookup.
Referenced by sockopt_inspect().
| ID rsock_intern_ip_optname | ( | int | val | ) |
Definition at line 5813 of file constdefs.c.
References name, and st_lookup.
Referenced by optname_to_sym().
| ID rsock_intern_iplevel | ( | int | val | ) |
Definition at line 5795 of file constdefs.c.
References name, and st_lookup.
Referenced by sockopt_inspect().
| ID rsock_intern_ipproto | ( | int | val | ) |
Definition at line 5786 of file constdefs.c.
References name, and st_lookup.
Referenced by addrinfo_inspect(), and addrinfo_mdump().
| ID rsock_intern_ipv6_optname | ( | int | val | ) |
Definition at line 5822 of file constdefs.c.
References name, and st_lookup.
Referenced by optname_to_sym().
| ID rsock_intern_local_optname | ( | int | val | ) |
Definition at line 5858 of file constdefs.c.
References name, and st_lookup.
Referenced by sockopt_inspect().
| ID rsock_intern_protocol_family | ( | int | val | ) |
Definition at line 5768 of file constdefs.c.
References name, and st_lookup.
Referenced by addrinfo_inspect(), and addrinfo_mdump().
| ID rsock_intern_scm_optname | ( | int | val | ) |
| ID rsock_intern_so_optname | ( | int | val | ) |
Definition at line 5804 of file constdefs.c.
References name, and st_lookup.
Referenced by optname_to_sym(), and sockopt_inspect().
| ID rsock_intern_socktype | ( | int | val | ) |
Definition at line 5777 of file constdefs.c.
References name, and st_lookup.
Referenced by addrinfo_inspect(), and addrinfo_mdump().
| ID rsock_intern_tcp_optname | ( | int | val | ) |
Definition at line 5831 of file constdefs.c.
References name, and st_lookup.
Referenced by optname_to_sym().
| ID rsock_intern_udp_optname | ( | int | val | ) |
Definition at line 5840 of file constdefs.c.
References name, and st_lookup.
Referenced by optname_to_sym().
| int rsock_ip_level_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 4404 of file constdefs.c.
References IPPROTO_ICMP, IPPROTO_IP, IPPROTO_RAW, IPPROTO_TCP, IPPROTO_UDP, and memcmp().
Referenced by rsock_level_arg().
| int rsock_ip_optname_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 4940 of file constdefs.c.
References memcmp().
Referenced by rsock_cmsg_type_arg(), and rsock_optname_arg().
| int rsock_ipproto_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 4174 of file constdefs.c.
References IPPROTO_ICMP, IPPROTO_IP, IPPROTO_RAW, IPPROTO_TCP, IPPROTO_UDP, and memcmp().
Referenced by addrinfo_mload().
| int rsock_scm_optname_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 5673 of file constdefs.c.
References memcmp().
Referenced by rsock_cmsg_type_arg().
| int rsock_shutdown_how_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 5633 of file constdefs.c.
References memcmp(), SHUT_RD, SHUT_RDWR, and SHUT_WR.
Referenced by rsock_shutdown_how_arg().
| int rsock_so_optname_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 4618 of file constdefs.c.
References memcmp().
Referenced by rsock_optname_arg().
| int rsock_socktype_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 4104 of file constdefs.c.
References memcmp().
Referenced by addrinfo_mload(), and rsock_socktype_arg().
| int rsock_tcp_optname_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 5478 of file constdefs.c.
References memcmp().
Referenced by rsock_cmsg_type_arg(), and rsock_optname_arg().
| int rsock_udp_optname_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |
Definition at line 5611 of file constdefs.c.
References memcmp().
Referenced by rsock_cmsg_type_arg(), and rsock_optname_arg().
| int rsock_unknown_level_to_int | ( | const char * | str, | |
| long | len, | |||
| int * | valp | |||
| ) |