diff options
| author | Brian Somers <brian@FreeBSD.org> | 2000-03-14 01:47:21 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2000-03-14 01:47:21 +0000 |
| commit | 574a3ffd7897c37eb49ac1f81434500de3ac2775 (patch) | |
| tree | 352180e20a8fc4826cfbca15402ad658f3457cc9 /usr.sbin/ppp/nat_cmd.c | |
| parent | 209dc102399af6d05720923772be74d68c897520 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/nat_cmd.c')
| -rw-r--r-- | usr.sbin/ppp/nat_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c index 490ef73c0198f..95042078860a7 100644 --- a/usr.sbin/ppp/nat_cmd.c +++ b/usr.sbin/ppp/nat_cmd.c @@ -380,6 +380,7 @@ nat_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp, /* Ensure there's a bit of extra buffer for the NAT code... */ bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF)); ret = PacketAliasIn(MBUF_CTOP(bp), bp->m_len); + pip = (struct ip *)MBUF_CTOP(bp); bp->m_len = ntohs(pip->ip_len); if (bp->m_len > MAX_MRU) { |
