mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-17 18:29:19 +01:00
Replace 0xFFFE with SOL_CONFIG for SOCU_GetNetworkOpt
This commit is contained in:
parent
08f437e25e
commit
7a2f7747ee
@ -79,8 +79,8 @@ print_tcp_table(void)
|
|||||||
consoleSelect(&tcp_console);
|
consoleSelect(&tcp_console);
|
||||||
console_print("\x1b[0;0H\x1b[K\n");
|
console_print("\x1b[0;0H\x1b[K\n");
|
||||||
optlen = sizeof(tcp_entries);
|
optlen = sizeof(tcp_entries);
|
||||||
rc = SOCU_GetNetworkOpt(0xFFFE, NETOPT_TCP_TABLE, tcp_entries, &optlen);
|
rc = SOCU_GetNetworkOpt(SOL_CONFIG, NETOPT_TCP_TABLE, tcp_entries, &optlen);
|
||||||
if(rc != 0 && errno != ENODEV)
|
if(rc != 0)
|
||||||
console_print(RED "tcp table: %d %s\x1b[K\n" RESET, errno, strerror(errno));
|
console_print(RED "tcp table: %d %s\x1b[K\n" RESET, errno, strerror(errno));
|
||||||
else if(rc == 0)
|
else if(rc == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user