]> 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)
commit9bfee5ecb3cf1fa3e7465a01c77bc9a5c439c8d0
treebb59341e98a708195c3ff6fe3f704a6f0f2dc002
parentae3a9b8f63d3192758fa02ed8d918a0f8ec6d697
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