]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb23ca2e4a250c37552c2f2bcbe041f2f26af6263
tree98b9d4802551ab24abe7805ad9eabf28b879fac2
parent84740f2fd967748b6562767ed58328838273748b
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