diff options
author | luigi <luigi@FreeBSD.org> | 2002-11-17 16:30:44 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-11-17 16:30:44 +0000 |
commit | acc6f4edfb35c2d6a47d1c2462ce45cb86e11312 (patch) | |
tree | 9b3da047164eb37459949f87d8d1b3491813f37d /sys/netinet/ip_var.h | |
parent | a98b300bf38c0cb695bbfd14a0f5389699880f00 (diff) | |
download | FreeBSD-src-acc6f4edfb35c2d6a47d1c2462ce45cb86e11312.zip FreeBSD-src-acc6f4edfb35c2d6a47d1c2462ce45cb86e11312.tar.gz |
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
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index c03c446..642580f 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -163,6 +163,8 @@ extern struct pr_usrreqs rip_usrreqs; int ip_ctloutput(struct socket *, struct sockopt *sopt); void ip_drain(void); +int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu, + u_long if_hwassist_flags, int sw_csum); void ip_freemoptions(struct ip_moptions *); void ip_init(void); extern int (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *, |