lib/core: luci.ip: Added more sanity checks and optimizations
lib/core: luci.ip: Added more sanity checks and optimizations

deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci