]> git.baikalelectronics.ru Git - kernel.git/commit
gtp: Fix initialization of Flags octet in GTPv1 header
authorHarald Welte <laforge@gnumonks.org>
Thu, 15 Dec 2016 21:35:53 +0000 (22:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 17:00:25 +0000 (12:00 -0500)
commitb644f74e28fdbba1478da60beaa947131af0f6ed
treef3cf4fe1fde1ad082570a5a27ab6edc399750ed9
parent366027478fd8488d02c0c64e6eac727c2eff7b6f
gtp: Fix initialization of Flags octet in GTPv1 header

When generating a GTPv1 header in gtp1_push_header(), initialize the
'reserved' bit to zero.  All 3GPP specifications for GTPv1 from Release
99 through Release 13 agree that a transmitter shall set this bit to
zero, see e.g. Note 0 of Figure 2 in Section 6 of 3GPP TS 29.060 v13.5.0
Release 13, available from
http://www.etsi.org/deliver/etsi_ts/129000_129099/129060/13.05.00_60/ts_129060v130500p.pdf

Signed-off-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gtp.c