we have identified that BusyBox's IP applet flush IP addresses of all device if device given in command is not exist in system e.g: #busybox ip -4 address flush dev abcdefg In this case if device 'abcdefg' not exists on system then it will flush addresses of all interfaces. This behaviour is same across all version of BusyBox and since inception. RCA: We have analysed the issue and identified that whenever we are calling 'xll_name_to_index' function to perform interface name to interface index opertation we are not cheking the return values of it in the caller functions. Proposing the below patch for the fix and requesting you to do the needful. May be need to look into other areas for the same condition.
*** This bug has been marked as a duplicate of bug 13906 ***