Reduce code duplication between IPv4 and IPv6
Open
area: networking
type: enhancement
- Dominant language
- Go
- Stars
- 19.3k
- Forks
- 2k
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 264
Description
A lot of code in the packages ipv4 and ipv6 is the same, it should be redesigned so most of it can be shared between the two packages.
For example, most of the code in the functions WritePacket/WritePackets is the same (fragmentation, iptable filtering, NAT rules). It should be extracted in a common package and reused by each IP protocol.
Contributor guide
Assessment
This issue has not been assessed yet.