diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-25 01:50:19 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-25 01:50:19 +0000 |
commit | f642fb2e9a5edbb5c8e001aab6f8d051ccfd10ac (patch) | |
tree | 9ab160bd7df1a0dede4fbd84f86a4e072d37817a /sys/net/if_ppp.c | |
parent | a10f9958afb69fd8b8735a135507dcf7ace599cb (diff) |
Move common post M_COPY_HDR manipulation to the macro itself; angelos@ ok.
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 404431129b1..bd521d27fe8 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.20 2001/06/15 03:38:34 itojun Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.21 2001/06/25 01:50:17 fgsch Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -1287,11 +1287,8 @@ ppp_inproc(sc, m) goto bad; /* lose if big headers and no clusters */ } } - if (m->m_flags & M_PKTHDR) { + if (m->m_flags & M_PKTHDR) M_COPY_HDR(mp, m); - m_tag_init(m); - m->m_flags &= ~M_PKTHDR; - } cp = mtod(mp, u_char *); cp[0] = adrs; cp[1] = ctrl; |