diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-01-12 06:55:05 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-01-12 06:55:05 +0000 |
commit | d44d31b085c10201cd8349f002731ab86998967a (patch) | |
tree | 721c6c809f4cc57abbb4956adde5af50a9bca1b2 /sys/dev/pci/if_vr.c | |
parent | d80e4b9150f85ea88c36f836b2e2e58c4b5129ca (diff) |
pad tx buffer with zero's; John L. Scarfone, j0 at cox.net
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r-- | sys/dev/pci/if_vr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 80fd9e1ed27..b93bf196bd4 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.27 2002/11/19 18:40:17 jason Exp $ */ +/* $OpenBSD: if_vr.c,v 1.28 2003/01/12 06:55:04 jason Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1230,6 +1230,9 @@ vr_encap(sc, c, m_head) * ourselves. */ if (m_head->m_len < VR_MIN_FRAMELEN) { + /* data field should be padded with octets of zero */ + bzero(&m_new->m_data[m_head->m_len], + VR_MIN_FRAMELEN-m_head->m_len); m_new->m_pkthdr.len += VR_MIN_FRAMELEN - m_new->m_len; m_new->m_len = m_new->m_pkthdr.len; } |