summaryrefslogtreecommitdiffstats
path: root/sys/dev/cp
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cp')
-rw-r--r--sys/dev/cp/if_cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c
index bd18f25..a5692fd 100644
--- a/sys/dev/cp/if_cp.c
+++ b/sys/dev/cp/if_cp.c
@@ -824,7 +824,7 @@ static void cp_send (drv_t *d)
if (d->ifp->if_bpf)
BPF_MTAP (d->ifp, m);
#endif
- len = m->m_pkthdr.len;
+ len = m_length (m, NULL);
if (len >= BUFSZ)
printf ("%s: too long packet: %d bytes: ",
d->name, len);
OpenPOWER on IntegriCloud