This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK Useage- Is "Aliasing" possible with the latest NDK release?

Using NDK, several function calls contain what might be "key" to assigning a secondary IP address to the Ethernet Interface created with the NDK.

1) CfgAddEntry(....), allows a Interface index or Number to be referenced.

2) setsockopt(...), has options that suggest the reuse of local IP addresses.

If anyone has tried to create an "aliasing" feature using these or other configuration details ....I would be interested....

I previewed the libraries and don't find any references to "aliasing" or even perhaps linked lists of IP addresses that are assigned to an single interface.

Any suggestions? 

  • Currently the NDK does not yet support any address aliasing mechanism, I don't believe it is possible to do out of the box using the existing NDK APIs. This being said, to implement this you would likely have to extend the NDK stack internally, luckly the sources code is now free so it is possible, though it will likely take some significant development effort. 

    Note, if this is a major feature you require, and NDK modification appears too difficult, you may consider using an ARM based device that can run the Linux TCP/IP stack, as this seems to be easy to do with the ifconfig command in Linux, though I have not tried it personally.