Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scapy/layers/inet6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,8 @@ class ICMPv6ND_RA(_ICMPv6NDGuessPayload, _ICMPv6):
BitField("H", 0, 1),
BitEnumField("prf", 1, 2, icmp6ndraprefs), # RFC 4191
BitField("P", 0, 1),
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The P flag on line 2210 also lacks an RFC comment reference. For consistency with the documentation standards used in this file (see line 2209 for example), consider adding the appropriate RFC reference for the P flag (NDP Proxy flag). This would make the codebase more maintainable and help developers understand the origin of each flag.

Suggested change
BitField("P", 0, 1),
BitField("P", 0, 1), # RFC 4389

Copilot uses AI. Check for mistakes.
BitField("res", 0, 2),
BitField("S", 0, 1), # draft-ietf-6man-snac-router-ra-flag-03
BitField("res", 0, 1),
ShortField("routerlifetime", 1800),
IntField("reachabletime", 0),
IntField("retranstimer", 0)]
Expand Down
Loading