HomeFreeBSD

Move the ip_fragment code from ip_output() to a separate function,
rS107020Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Move the ip_fragment code from ip_output() to a separate function,
so that it can be reused elsewhere (there is a number of places
where it can be useful). This also trims some 200 lines from
the body of ip_output(), which helps readability a bit.

(This change was discussed a few weeks ago on the mailing lists,
Julian agreed, silence from others. It is not a functional change,
so i expect it to be ok to commit it now but i am happy to back it
out if there are objections).

While at it, fix some function headers and replace m_copy() with
m_copypacket() where applicable.

MFC after: 1 week

Details

Provenance
luigiAuthored on
Parents
rS107019: 1. Hide the internals of struct fd_set in standard namespaces.
Branches
Unknown
Tags
Unknown

Event Timeline