Larry beat me to it... and most likely has the root cause nailed.
My posting was ready to go out so here it is anyway.... So it can
serve to improve how we "verify".
--- In Kevin Cozens <> wrote:
>
> I have verified the string looks ok. However, when the software
> issues builds the string "/sbin/ifconfig eth0 192.168.000.051" and
> passes it in a call to system() the boards address changes to
> 192.168.0.41. That isn't a typo.
Just a wild stab at the problem... Have you verified the string using
a hex editor? How did you verify the string?
A cheap way to verify the string may be to change the builder of the
string to produce "echo "<ipaddr>" >myip.bin" and pass that to
system(). Make sure you have the double quotes around the ipaddr
string - (as you may know, you've got to escape them with '\') Verify
the file myip.bin with the command:
od -t x1z myip.bin
Post back to the list with results.
The only issue I can think of with my suggestion is I'm unsure how
echo handles binary data such as control characters that aren't escaped.
----
Andy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|