IPv6ExtOptions.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Packets_DefaultBundle_IPv6ExtOptions_
18 #define HH_SENF_Packets_DefaultBundle_IPv6ExtOptions_ 1
19 
20 // Custom includes
21 #include <senf/Packets/Packets.hh>
22 
23 //#include "IPv6ExtOptions.mpp"
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 namespace senf {
26 
40  {
41  public:
42 # include SENF_PARSER()
43 
46  SENF_PARSER_BITFIELD( altAction, 2, unsigned );
47  SENF_PARSER_BITFIELD( changeFlag, 1, unsigned );
48  SENF_PARSER_BITFIELD( optionType, 5, unsigned );
50 
52 
54  };
55 
57 
58 }
59 
60 
61 //-/////////////////////////////////////////////////////////////////////////////////////////////////
62 //#include "IPv6ExtOptions.cci"
63 //#include "IPv6ExtOptions.ct"
64 //#include "IPv6ExtOptions.cti"
65 #endif
66 
67 
68 // Local Variables:
69 // mode: c++
70 // fill-column: 100
71 // comment-column: 40
72 // c-file-style: "senf"
73 // indent-tabs-mode: nil
74 // ispell-local-dictionary: "american"
75 // compile-command: "scons -u test"
76 // End:
#define SENF_PARSER_BITFIELD(name, bits, type)
Define bit-field.
UInt8Parser type() const
GenericTLVParserBase< IPv6OptionParser > IPv6GenericOptionParser
Parse 8bit unsigned byte aligned integer.
Definition: IntParser.hh:91
TLV parser registration facility.
Definition: GenericTLV.hh:227
Packets public header.
Base class for generic TLV parsers.
Definition: GenericTLV.hh:124
#define SENF_PARSER_FIELD(name, type)
Define normal parser field.
#define SENF_PARSER_GOTO(name)
Change current offset.
#define SENF_PARSER_FINALIZE(name)
Generate parser control members.
IPv6 Extension Option parser.
senf::UIntFieldParser<?,?+1 > changeFlag() const
UInt8Parser length() const
GenericTLVParserRegistry< IPv6OptionParser > Registry
senf::UIntFieldParser<?,?+2 > altAction() const
Parser Base class.
senf::UIntFieldParser<?,?+5 > optionType() const