]> git.baikalelectronics.ru Git - kernel.git/commit
gue: Add infrastructure for flags and options
authorTom Herbert <therbert@google.com>
Tue, 4 Nov 2014 17:06:53 +0000 (09:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Nov 2014 21:30:03 +0000 (16:30 -0500)
commit11bd45bc7a194666f4ff4f2136f3d143af1c6591
treebb59341e98a708195c3ff6fe3f704a6f0f2dc002
parent4cbd1c686658d2c8f2a5f37a9770eb3c64bd5b44
gue: Add infrastructure for flags and options

Add functions and basic definitions for processing standard flags,
private flags, and control messages. This includes definitions
to compute length of optional fields corresponding to a set of flags.
Flag validation is in validate_gue_flags function. This checks for
unknown flags, and that length of optional fields is <= length
in guehdr hlen.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gue.h
net/ipv4/fou.c