Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 ccmp works!
details: https://anonhg.NetBSD.org/src-all/rev/af192383736f
branches: trunk
changeset: 371344:af192383736f
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Thu May 14 12:20:55 2020 +1000
description:
ccmp works!
diffstat:
sys/net80211/ieee80211_crypto_ccmp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r bad9d39ceb0b -r af192383736f sys/net80211/ieee80211_crypto_ccmp.c
--- a/sys/net80211/ieee80211_crypto_ccmp.c Wed May 13 17:55:00 2020 +1000
+++ b/sys/net80211/ieee80211_crypto_ccmp.c Thu May 14 12:20:55 2020 +1000
@@ -214,7 +214,7 @@
if (m == NULL)
return 0;
ivp = mtod(m, uint8_t *);
- ovbcopy(ivp + ccmp.ic_header, ivp, hdrlen);
+ memmove(ivp, ivp + ccmp.ic_header, hdrlen);
ivp += hdrlen;
ccmp_setiv(k, ivp);
@@ -310,7 +310,7 @@
* Copy up 802.11 header and strip crypto bits.
*/
if (! ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_IV_STRIP))) {
- ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + ccmp.ic_header,
+ memmove(mtod(m, uint8_t *) + ccmp.ic_header, mtod(m, uint8_t *),
hdrlen);
m_adj(m, ccmp.ic_header);
}
Home |
Main Index |
Thread Index |
Old Index