Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move IPv6 HBH in own module #827

Merged
merged 1 commit into from
Aug 8, 2023

Commits on Aug 7, 2023

  1. refactor: move IPv6 HBH in own module

    The Ipv6HopByHopRepr was previously the same as an Ipv6ExtHeader.
    However, the RFC says that hop-by-hop options might change, which is not
    possible with the current implementation.
    
    I added a representatation for the Hop-by-Hop header, which has an
    heapless Vec of parsed options. This way, we can modify the options when
    needed.
    
    The function of the Ipv6ExtHeader struct is now purely for parsing the
    ext header type and the length. It also returns a pointer to the data it
    holds, which must be parsed by the correct extension header
    representations.
    thvdveld committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    53bdf43 View commit details
    Browse the repository at this point in the history