6lowpan: init ipv6hdr buffer to zero
authorAlexander Aring <alex.aring@gmail.com>
Fri, 16 Aug 2013 19:59:54 +0000 (21:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 20:23:11 +0000 (13:23 -0700)
commit84ce1ddfefc3d5a8af5ede6fe16546c143117616
tree98b9d4802551ab24abe7805ad9eabf28b879fac2
parent4cffa13d2d6c746bcbe460facaa6a9f22e9cda1f
6lowpan: init ipv6hdr buffer to zero

This patch simplify the handling to set fields inside of struct ipv6hdr
to zero. Instead of setting some memory regions with memset to zero we
initialize the whole ipv6hdr to zero.

This is a simplification for parsing the 6lowpan header for the upcomming
patches.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c