@@ -76,54 +76,54 @@ const (
76
76
// ExtLen returns the length of the packet.
77
77
ExtLen Extension = 1
78
78
// ExtProto returns the packet's L3 protocol type.
79
- ExtProto = 0
79
+ ExtProto Extension = 0
80
80
// ExtType returns the packet's type (skb->pkt_type in the kernel)
81
81
//
82
82
// TODO: better documentation. How nice an API do we want to
83
83
// provide for these esoteric extensions?
84
- ExtType = 4
84
+ ExtType Extension = 4
85
85
// ExtPayloadOffset returns the offset of the packet payload, or
86
86
// the first protocol header that the kernel does not know how to
87
87
// parse.
88
- ExtPayloadOffset = 52
88
+ ExtPayloadOffset Extension = 52
89
89
// ExtInterfaceIndex returns the index of the interface on which
90
90
// the packet was received.
91
- ExtInterfaceIndex = 8
91
+ ExtInterfaceIndex Extension = 8
92
92
// ExtNetlinkAttr returns the netlink attribute of type X at
93
93
// offset A.
94
- ExtNetlinkAttr = 12
94
+ ExtNetlinkAttr Extension = 12
95
95
// ExtNetlinkAttrNested returns the nested netlink attribute of
96
96
// type X at offset A.
97
- ExtNetlinkAttrNested = 16
97
+ ExtNetlinkAttrNested Extension = 16
98
98
// ExtMark returns the packet's mark value.
99
- ExtMark = 20
99
+ ExtMark Extension = 20
100
100
// ExtQueue returns the packet's assigned hardware queue.
101
- ExtQueue = 24
101
+ ExtQueue Extension = 24
102
102
// ExtLinkLayerType returns the packet's hardware address type
103
103
// (e.g. Ethernet, Infiniband).
104
- ExtLinkLayerType = 28
104
+ ExtLinkLayerType Extension = 28
105
105
// ExtRXHash returns the packets receive hash.
106
106
//
107
107
// TODO: figure out what this rxhash actually is.
108
- ExtRXHash = 32
108
+ ExtRXHash Extension = 32
109
109
// ExtCPUID returns the ID of the CPU processing the current
110
110
// packet.
111
- ExtCPUID = 36
111
+ ExtCPUID Extension = 36
112
112
// ExtVLANTag returns the packet's VLAN tag.
113
- ExtVLANTag = 44
113
+ ExtVLANTag Extension = 44
114
114
// ExtVLANTagPresent returns non-zero if the packet has a VLAN
115
115
// tag.
116
116
//
117
117
// TODO: I think this might be a lie: it reads bit 0x1000 of the
118
118
// VLAN header, which changed meaning in recent revisions of the
119
119
// spec - this extension may now return meaningless information.
120
- ExtVLANTagPresent = 48
120
+ ExtVLANTagPresent Extension = 48
121
121
// ExtVLANProto returns 0x8100 if the frame has a VLAN header,
122
122
// 0x88a8 if the frame has a "Q-in-Q" double VLAN header, or some
123
123
// other value if no VLAN information is present.
124
- ExtVLANProto = 60
124
+ ExtVLANProto Extension = 60
125
125
// ExtRand returns a uniformly random uint32.
126
- ExtRand = 56
126
+ ExtRand Extension = 56
127
127
)
128
128
129
129
// The following gives names to various bit patterns used in opcode construction.
0 commit comments