Skip to content

Incorrect L4 offset for IP packets with Options field  #30

@aka320

Description

@aka320
  • IP header length is variable (20 to 60 bytes) due to the options field which is optional.
  • So L4 offset is not always fixed at the default offset of 20 bytes (struct iphdr) from the start of IP header.
  • Actual L4 offset is derived from IHL field (4 times IHL) in the IP header, which includes the options as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions