Michael Smith writes:
authorEric Andersen <andersen@codepoet.org>
Fri, 14 Nov 2003 03:04:08 +0000 (03:04 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 14 Nov 2003 03:04:08 +0000 (03:04 -0000)
commitb6e58d2b9a02dfcf313e064408aea1359a4d9763
tree931f35ff8fe22c4e763231efdecb299d390eaae0
parentc16686c1e2e29f99de34a79aed30999fd961ca70
Michael Smith writes:

I noticed a problem with ifconfig in busybox 0.60.5. The matching code
seems to exist in busybox CVS as well, so I'll paste in the patch that
fixed it.

I was running:
 # ifconfig wan0 1.2.3.4 pointopoint 1.2.3.5 netmask 255.255.255.255

I was seeing the inet addr and P-t-P addr both being set to 1.2.3.5
(the pointopoint address).

wan0      Link encap:Point-Point Protocol
          inet addr:1.2.3.5  P-t-P:1.2.3.5  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          ...

The patch below seems to fix it.
networking/ifconfig.c