OSDN Git Service

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)
commit5024c33ac354577635c5671498891eb197f3ec4d
treebb59341e98a708195c3ff6fe3f704a6f0f2dc002
parent4bcb877d257c87298aedead1ffeaba0d5df1991d
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