NGM_KSOCKET_BIND |
| This functions exactly like the bind(2) system call. The .Vt "struct sockaddr" socket address parameter should be supplied as an argument. |
NGM_KSOCKET_LISTEN |
| This functions exactly like the listen(2) system call. The backlog parameter (a single 32 bit int) should be supplied as an argument. |
NGM_KSOCKET_CONNECT |
| This functions exactly like the connect(2) system call. The .Vt "struct sockaddr" destination address parameter should be supplied as an argument. |
NGM_KSOCKET_ACCEPT |
| Currently unimplemented. |
NGM_KSOCKET_GETNAME |
| Equivalent to the getsockname(2) system call. The name is returned as a .Vt "struct sockaddr" in the arguments field of the reply. |
NGM_KSOCKET_GETPEERNAME |
| Equivalent to the getpeername(2) system call. The name is returned as a .Vt "struct sockaddr" in the arguments field of the reply. |
NGM_KSOCKET_SETOPT |
| Equivalent to the setsockopt(2) system call, except that the option name, level, and value are passed in a .Vt "struct ng_ksocket_sockopt" . |
NGM_KSOCKET_GETOPT |
| Equivalent to the getsockopt(2) system call, except that the option is passed in a .Vt "struct ng_ksocket_sockopt" . When sending this command, the value field should be empty; upon return, it will contain the retrieved value. |
|