On Sunday 22 September 2013 16:42:24 Sven Eckelmann wrote:
The first implementation of the IP translation functions in cb75e019e74fc11f9547dadd51abbf3c9df2c5e7 ("batctl: Allow to use IPv4 addresses for ping/traceroute") had is focus on implementing it only for IPv4. This is a limitation when other layer 3 protocols are used.
For example, a port to IPv6 would either have to copy the functionality or do a major refactoring when implementing the it resolv functionality. This is not necessary when the functions already expect different layer 3 protocols in the first place and make it easy to find the right place to modify them.
Signed-off-by: Sven Eckelmann sven@narfation.org
functions.c | 86 ++++++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 63 insertions(+), 23 deletions(-)
Applied in revision daf6aa6.
Thanks, Marek