diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-08-17 21:44:57 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-08-17 21:44:57 +0000 |
commit | ba5060e5aef19aba720eca3a81c74a16fa0c61fa (patch) | |
tree | 134ff4391f8be7e817b530da447e7de9d0356a26 /sys | |
parent | e7c5164a40773eb7b14f8f3db169e4f2206b48c5 (diff) |
use destination lengths when trimming the output packet (cut and pasto)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/ubsec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index 0bbe4d58c73..d0268f14276 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.30 2000/08/17 13:54:23 jason Exp $ */ +/* $OpenBSD: ubsec.c,v 1.31 2000/08/17 21:44:56 jason Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -877,15 +877,15 @@ ubsec_process(crp) pb->pb_addr = q->q_dst_packp[i]; if (dtheend) { - if (q->q_src_packl[i] > dtheend) { + if (q->q_dst_packl[i] > dtheend) { pb->pb_len = dtheend; dtheend = 0; } else { - pb->pb_len = q->q_src_packl[i]; + pb->pb_len = q->q_dst_packl[i]; dtheend -= pb->pb_len; } } else - pb->pb_len = q->q_src_packl[i]; + pb->pb_len = q->q_dst_packl[i]; if ((i + 1) == q->q_dst_npa) { if (maccrd) |