Fixes and improvements in session hashtable keys 89/6589/3
authorClement Durand <clement.durand@polytechnique.edu>
Thu, 4 May 2017 06:33:55 +0000 (08:33 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 4 May 2017 15:43:06 +0000 (15:43 +0000)
commitda7567c022676374e7e50ff44c12ba0825e0cb38
treeb7c7925763a3a7484fd67d65ea45087d8a44f087
parent68c74fc71bc19b44b39601e5ab3d79d35cd5007b
Fixes and improvements in session hashtable keys

Fix in v6 keys :
* The copy of the keys was only partial

A few suggestions are applied in this commit :
* Since there are not so many unused fields, we avoid to memset 0 and prefer
  setting the unused fields to 0.
* By using a cast, it seems painless to avoid allocating a structure for the
  keys creation.

Change-Id: Iaee6f036f2a979cceaeb297d98ce6c307a5ac029
Signed-off-by: Clement Durand <clement.durand@polytechnique.edu>
src/vnet/session/transport.h