* @brief Retrieves options for a socket. * * This function retrieves the current value for a specified option on a socket, identified * by the file descriptor 's'. The option is specified by the 'level' and 'optname' parameters. * * @param s The file descriptor of the socket from which to retrieve the option. * @param level The protocol level at which the option resides. Common lev
| 273 | * @see setsockopt() Sets options for the socket. |
| 274 | */ |
| 275 | int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) |
| 276 | { |
| 277 | int socket = dfs_net_getsocket(s); |
| 278 | |
| 279 | return sal_getsockopt(socket, level, optname, optval, optlen); |
| 280 | } |
| 281 | RTM_EXPORT(getsockopt); |
| 282 | |
| 283 | /** |
no test coverage detected