mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
tcpsocket: fix port print
This commit is contained in:
parent
fa6b5d4358
commit
6bad02bed7
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ void print_tcp_array() {
|
||||||
printf("--------Connections------\n");
|
printf("--------Connections------\n");
|
||||||
list_for_each_entry(con, &tcp_sock_list, list)
|
list_for_each_entry(con, &tcp_sock_list, list)
|
||||||
{
|
{
|
||||||
printf("Conenctin to Port: %d, Connected: %s\n", con->sock_addr.sin_port, con->connected ? "True" : "False");
|
printf("Connecting to Port: %d, Connected: %s\n", ntohs(con->sock_addr.sin_port), con->connected ? "True" : "False");
|
||||||
}
|
}
|
||||||
printf("------------------\n");
|
printf("------------------\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue