packet lib: calculate the ip total length
packet lib: calculate the ip total length

If the total length is not given, calculate it.

Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

ttsubo/ryu,alyosha1879/ryu,habibiefaried/ryu,samrussell/ryu,habibiefaried/ryu,zyq001/ryu,Tesi-Luca-Davide/ryu,StephenKing/ryu,ttsubo/ryu,darjus-amzn/ryu,ysywh/ryu,osrg/ryu,alanquillin/ryu,Tesi-Luca-Davide/ryu,openvapour/ryu,lagopus/ryu-lagopus-ext,John-Lin/ryu,ntts-clo/ryu,TakeshiTseng/ryu,umkcdcrg01/ryu_openflow,umkcdcrg01/ryu_openflow,yamt/ryu,darjus-amzn/ryu,yamada-h/ryu,ysywh/ryu,lsqtongxin/ryu,castroflavio/ryu,lagopus/ryu-lagopus-ext,darjus-amzn/ryu,lzppp/mylearning,shinpeimuraoka/ryu,torufuru/oolhackathon,jkoelker/ryu,gopchandani/ryu,TakeshiTseng/ryu,o3project/ryu-oe,torufuru/oolhackathon,StephenKing/ryu,gopchandani/ryu,jkoelker/ryu,shinpeimuraoka/ryu,StephenKing/ryu,gopchandani/ryu,lzppp/mylearning,unifycore/ryu,alanquillin/ryu,osrg/ryu,hisaharu/ryu,haniehrajabi/ryu,gareging/SDN_Framework,pichuang/ryu,muzixing/ryu,TakeshiTseng/ryu,pichuang/ryu,unifycore/ryu,fkakuma/ryu,habibiefaried/ryu,torufuru/OFPatchPanel,osrg/ryu,lzppp/mylearning,sivaramakrishnansr/ryu,jalilm/ryu,umkcdcrg01/ryu_openflow,ynkjm/ryu,diogommartins/ryu,yamada-h/ryu,habibiefaried/ryu,sivaramakrishnansr/ryu,takahashiminoru/ryu,alyosha1879/ryu,OpenState-SDN/ryu,shinpeimuraoka/ryu,ysywh/ryu,zangree/ryu,shinpeimuraoka/ryu,ntts-clo/mld-ryu,OpenState-SDN/ryu,hisaharu/ryu,yamt/ryu,citrix-openstack-build/ryu,TakeshiTseng/ryu,ysywh/ryu,muzixing/ryu,jazzmes/ryu,alanquillin/ryu,John-Lin/ryu,fkakuma/ryu,zangree/ryu,ttsubo/ryu,Tejas-Subramanya/RYU_MEC,elahejalalpour/ELRyu,lagopus/ryu-lagopus-ext,ynkjm/ryu,citrix-openstack-build/ryu,fujita/ryu,StephenKing/summerschool-2015-ryu,umkcdcrg01/ryu_openflow,yamt/ryu,John-Lin/ryu,umkcdcrg01/ryu_openflow,John-Lin/ryu,lagopus/ryu-lagopus-ext,muzixing/ryu,mikhaelharswanto/ryu,fujita/ryu,OpenState-SDN/ryu,StephenKing/summerschool-2015-ryu,Tejas-Subramanya/RYU_MEC,gareging/SDN_Framework,sivaramakrishnansr/ryu,ykaneko/ryu,zangree/ryu,haniehrajabi/ryu,mikhaelharswanto/ryu,haniehrajabi/ryu,ysywh/ryu,zyq001/ryu,castroflavio/ryu,iwaseyusuke/ryu,StephenKing/summerschool-2015-ryu,evanscottgray/ryu,diogommartins/ryu,yamt/ryu,yamt/ryu,Zouyiran/ryu,diogommartins/ryu,citrix-openstack/build-ryu,gareging/SDN_Framework,shinpeimuraoka/ryu,OpenState-SDN/ryu,John-Lin/ryu,Zouyiran/ryu,haniehrajabi/ryu,diogommartins/ryu,zangree/ryu,alyosha1879/ryu,Tejas-Subramanya/RYU_MEC,takahashiminoru/ryu,citrix-openstack/build-ryu,castroflavio/ryu,lzppp/mylearning,ynkjm/ryu,Zouyiran/ryu,alanquillin/ryu,ttsubo/ryu,gareging/SDN_Framework,elahejalalpour/ELRyu,alanquillin/ryu,zyq001/ryu,OpenState-SDN/ryu,iwaseyusuke/ryu,elahejalalpour/ELRyu,fujita/ryu,evanscottgray/ryu,fkakuma/ryu,takahashiminoru/ryu,pichuang/ryu,iwaseyusuke/ryu,elahejalalpour/ELRyu,jalilm/ryu,takahashiminoru/ryu,gopchandani/ryu,Tejas-Subramanya/RYU_MEC,lsqtongxin/ryu,osrg/ryu,jazzmes/ryu,gopchandani/ryu,jazzmes/ryu,iwaseyusuke/ryu,jalilm/ryu,iwaseyusuke/ryu,darjus-amzn/ryu,StephenKing/summerschool-2015-ryu,ynkjm/ryu,gareging/SDN_Framework,ntts-clo/ryu,fkakuma/ryu,ntts-clo/mld-ryu,Tejas-Subramanya/RYU_MEC,osrg/ryu,samrussell/ryu,hisaharu/ryu,lzppp/mylearning,pichuang/ryu,TakeshiTseng/ryu,ttsubo/ryu,Tesi-Luca-Davide/ryu,muzixing/ryu,Zouyiran/ryu,torufuru/OFPatchPanel,openvapour/ryu,lagopus/ryu-lagopus-ext,lsqtongxin/ryu,jalilm/ryu,diogommartins/ryu,fujita/ryu,elahejalalpour/ELRyu,alyosha1879/ryu,fkakuma/ryu,Zouyiran/ryu,StephenKing/summerschool-2015-ryu,StephenKing/ryu,ykaneko/ryu,zyq001/ryu,openvapour/ryu,Tesi-Luca-Davide/ryu,sivaramakrishnansr/ryu,jalilm/ryu,hisaharu/ryu,jkoelker/ryu,lsqtongxin/ryu,darjus-amzn/ryu,haniehrajabi/ryu,zangree/ryu,fujita/ryu,Tesi-Luca-Davide/ryu,zyq001/ryu,StephenKing/ryu,pichuang/ryu,lsqtongxin/ryu,torufuru/oolhackathon,sivaramakrishnansr/ryu,hisaharu/ryu,habibiefaried/ryu,muzixing/ryu,openvapour/ryu,ynkjm/ryu,evanscottgray/ryu,openvapour/ryu,takahashiminoru/ryu,o3project/ryu-oe