[Click] [PATCH] Wrong initialization values with inet_makeaddr on ARM
Eddie Kohler
kohler at cs.ucla.edu
Sun Oct 17 00:50:40 EDT 2010
Thanks, applied!
On 10/15/2010 04:03 AM, Roberto Riggio wrote:
> This problems happens only on an ARM board, basically the following
> statements:
>
> addr_1.sin_addr = inet_makeaddr(127, 1);
> addr_2.sin_addr = inet_makeaddr(0, 0);
> addr_3.sin_addr.s_addr = INADDR_ANY;
>
> printf("Server (1), binded to %s\n",inet_ntoa(addr_1.sin_addr));
> printf("Server (2), binded to %s\n",inet_ntoa(addr_2.sin_addr));
> printf("Server (3), binded to %s\n",inet_ntoa(addr_3.sin_addr));
>
> produce this output:
>
> Server (1), binded to 0.0.133.112
> Server (2), binded to 0.0.133.112
> Server (3), binded to 0.0.0.0
More information about the click
mailing list