HomeFreeBSD

IPv6 cleanup: kernel

Description

IPv6 cleanup: kernel

Finish what was started a few years ago and harmonize IPv6 and IPv4
kernel names. We are down to very few places now that it is feasible
to do the change for everything remaining with causing too much disturbance.

Remove "aliases" for IPv6 names which confusingly could indicate
that we are talking about a different data structure or field or
have two fields, one for each address family.
Try to follow common conventions used in FreeBSD.

  • Rename sin6p to sin6 as that is how it is spelt in most places.
  • Remove "aliases" (#defines) for:
    • in6pcb which really is an inpcb and nothing separate
    • sotoin6pcb which is sotoinpcb (as per above)
    • in6p_sp which is inp_sp
    • in6p_flowinfo which is inp_flow
  • Try to use ia6 for in6_addr rather than in6p.
  • With all these gone also rename the in6p variables to inp as that is what we call it in most of the network stack including parts of netinet6.

The reasons behind this cleanup are that we try to further
unify netinet and netinet6 code where possible and that people
will less ignore one or the other protocol family when doing
code changes as they may not have spotted places due to different
names for the same thing.

No functional changes.

Discussed with: tuexen (SCTP changes)
MFC after: 3 months
Sponsored by: Netflix

Details

Provenance
bzAuthored on
Parents
rS350530: Fix typo in r350529.
Branches
Unknown
Tags
Unknown