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

git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2742 ab181a69-ba2e-0410-a84d-ff88ab4c47bc

saraedum/luci-packages-old,ThingMesh/openwrt-luci,phi-psi/luci,ReclaimYourPrivacy/cloak-luci,jschmidlapp/luci,eugenesan/openwrt-luci,ThingMesh/openwrt-luci,yeewang/openwrt-luci,vhpham80/luci,8devices/carambola2-luci,ThingMesh/openwrt-luci,ThingMesh/openwrt-luci,jschmidlapp/luci,stephank/luci,alxhh/piratenluci,vhpham80/luci,alxhh/piratenluci,ThingMesh/openwrt-luci,freifunk-gluon/luci,freifunk-gluon/luci,vhpham80/luci,dtaht/cerowrt-luci-3.3,gwlim/luci,yeewang/openwrt-luci,gwlim/luci,zwhfly/openwrt-luci,yeewang/openwrt-luci,phi-psi/luci,gwlim/luci,projectbismark/luci-bismark,Canaan-Creative/luci,ch3n2k/luci,zwhfly/openwrt-luci,ThingMesh/openwrt-luci,ch3n2k/luci,stephank/luci,dtaht/cerowrt-luci-3.3,Canaan-Creative/luci,zwhfly/openwrt-luci,gwlim/luci,eugenesan/openwrt-luci,jschmidlapp/luci,yeewang/openwrt-luci,stephank/luci,ReclaimYourPrivacy/cloak-luci,yeewang/openwrt-luci,gwlim/luci,Canaan-Creative/luci,freifunk-gluon/luci,Canaan-Creative/luci,eugenesan/openwrt-luci,projectbismark/luci-bismark,jschmidlapp/luci,projectbismark/luci-bismark,alxhh/piratenluci,8devices/carambola2-luci,eugenesan/openwrt-luci,stephank/luci,freifunk-gluon/luci,phi-psi/luci,Flexibity/luci,phi-psi/luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,Canaan-Creative/luci,ThingMesh/openwrt-luci,zwhfly/openwrt-luci,jschmidlapp/luci,alxhh/piratenluci,ReclaimYourPrivacy/cloak-luci,vhpham80/luci,8devices/carambola2-luci,Canaan-Creative/luci,dtaht/cerowrt-luci-3.3,jschmidlapp/luci,yeewang/openwrt-luci,phi-psi/luci,alxhh/piratenluci,alxhh/piratenluci,ch3n2k/luci,stephank/luci,zwhfly/openwrt-luci,saraedum/luci-packages-old,eugenesan/openwrt-luci,gwlim/luci,saraedum/luci-packages-old,Flexibity/luci,freifunk-gluon/luci,jschmidlapp/luci,dtaht/cerowrt-luci-3.3,Flexibity/luci,saraedum/luci-packages-old,eugenesan/openwrt-luci,8devices/carambola2-luci,dtaht/cerowrt-luci-3.3,zwhfly/openwrt-luci,freifunk-gluon/luci,freifunk-gluon/luci,Canaan-Creative/luci,ReclaimYourPrivacy/cloak-luci,projectbismark/luci-bismark,vhpham80/luci,jschmidlapp/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,ch3n2k/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,gwlim/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,Canaan-Creative/luci,eugenesan/openwrt-luci,ReclaimYourPrivacy/cloak-luci,Flexibity/luci,saraedum/luci-packages-old,ch3n2k/luci,Flexibity/luci,phi-psi/luci,8devices/carambola2-luci,vhpham80/luci,phi-psi/luci,yeewang/openwrt-luci,freifunk-gluon/luci,saraedum/luci-packages-old,ch3n2k/luci,projectbismark/luci-bismark,stephank/luci,8devices/carambola2-luci,alxhh/piratenluci,8devices/carambola2-luci,Flexibity/luci,ReclaimYourPrivacy/cloak-luci,saraedum/luci-packages-old,Flexibity/luci,Flexibity/luci,dtaht/cerowrt-luci-3.3,ReclaimYourPrivacy/cloak-luci