summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_options.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-03-15 12:55:30 +0000
committerglebius <glebius@FreeBSD.org>2013-03-15 12:55:30 +0000
commitb37af62b9e1d9dc462e88e964b0c1012f8144495 (patch)
treee02d647183f66805ee3b2474493cabce43b2e580 /sys/netinet/ip_options.c
parentd9a8b8e5e610631cff464a76929f0ff4de7dcff2 (diff)
downloadFreeBSD-src-b37af62b9e1d9dc462e88e964b0c1012f8144495.zip
FreeBSD-src-b37af62b9e1d9dc462e88e964b0c1012f8144495.tar.gz
Use m_get/m_gethdr instead of compat macros.
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/netinet/ip_options.c')
-rw-r--r--sys/netinet/ip_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_options.c b/sys/netinet/ip_options.c
index 239c699..55cc81f 100644
--- a/sys/netinet/ip_options.c
+++ b/sys/netinet/ip_options.c
@@ -495,7 +495,7 @@ ip_insertoptions(struct mbuf *m, struct mbuf *opt, int *phlen)
if (p->ipopt_dst.s_addr)
ip->ip_dst = p->ipopt_dst;
if (m->m_flags & M_EXT || m->m_data - optlen < m->m_pktdat) {
- MGETHDR(n, M_NOWAIT, MT_DATA);
+ n = m_gethdr(M_NOWAIT, MT_DATA);
if (n == NULL) {
*phlen = 0;
return (m);
OpenPOWER on IntegriCloud