The problem is not Openwrt but awk that cannot handle big number on small device :(<br><br>bash can than i fixed with this<br><br>printf "%d\n" $(( (`echo "255.255.255.255" | awk -F\. '{printf "%d", ($4)}'`)+ (256*`echo "255.255.255.255" | awk -F\. '{printf "%d", ($3)}'`) + (256*256*`echo "255.255.255.255" | awk -F\. '{printf "%d", ($2)}'`) + (256*256*256*`echo "255.255.255.255" | awk -F\. '{printf "%d", ($4)}'`) ))<br>
<br><div class="gmail_quote">2010/7/15 Gioacchino Mazzurco <span dir="ltr"><<a href="mailto:gmazzurco89@gmail.com">gmazzurco89@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hey all I have a big problem with openwrt!<br><br>In a bash shell if i write this command<br>printf "%d\n" "`echo "255.255.255.255" | awk -F\. '{printf "%d", ($4)+($3*256)+($2*256*256)+($1*256*256*256)}'`"<br>

i obtain<br>2147483647<br>that is wrong!<br><br>If i put the same command in my gentoo bash shell i obtain  4294967295 that is the good value how to fix this ?<br>
</blockquote></div><br>