Skip to content

Commit 223a4d6

Browse files
committed
Remove the Packet Format flag.
We should not leak the packet format information. The packet format can be still identified by checking the first nibble of the payload.
1 parent 786a4c3 commit 223a4d6

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

eesp.org

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ The fixed portion of the base header is defined as follows.
208208
0 1 2 3
209209
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
210210
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
211-
|1|Version|Flags| Opt Len | Session ID |
211+
|1|Version| R | Opt Len | Session ID |
212212
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
213213
| SPI |
214214
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -226,7 +226,9 @@ The fixed portion of the base header is defined as follows.
226226
necessarily able to parse the packet correctly. Intermediate
227227
treatment of such packets is policy-dependent (e.g., it may dictate
228228
dropping such packets).
229-
- Flags :: 3 bits: The Flags field is used as specified in [[flags]].
229+
- Reserved (R) :: 3 bits: Reserved for future versions, MUST be set to zero
230+
and checked by the receiver. If the reserved bits are different to zero,
231+
the packet MUST be dropped by the receiver.
230232
- Opt Len :: 8 bits: Length in bytes of the ~Options~ field.
231233
- Session ID :: 16 bits: The Session ID covers additional information
232234
that might be used to identify the SA.
@@ -237,27 +239,10 @@ The fixed portion of the base header is defined as follows.
237239
- Security Parameter Index (SPI) :: 32 bits: The SPI is an arbitrary
238240
32-bit value that is used by a receiver to identify the SA to which
239241
an incoming packet is bound.
242+
240243
# XXX: Enhanced SPI is not explained!
241244
# This combined with the 16-bit Session ID is the Enhanced SPI.
242245

243-
The Flags field in the fixed Base Header is defined as follows:
244-
245-
#+caption: Base Header Flags
246-
#+name: flags
247-
#+begin_src
248-
0 1 2
249-
+-+-+-+
250-
|F|R R|
251-
+-+-+-+
252-
#+end_src
253-
254-
- Packet Format (F) :: 1 bit: Set to zero for full EESP packet Format (i.e., the EESP header includes the
255-
~Payload Info Header~), set to 1 for Optimized EESP Packet format.
256-
- Reserved (RR) :: 2 bits: Reserved for future versions, MUST be set to 00,
257-
and ignored by the receiver.
258-
259-
260-
261246
# Note STK: Discuss Enhanced SPI here later...
262247

263248
*** Base Header Options

0 commit comments

Comments
 (0)