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/e43fab3f41e4
branches:  trunk
changeset: 933659:e43fab3f41e4
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 cc6dd6773395 -r e43fab3f41e4 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
@@ -212,7 +212,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);
@@ -308,7 +308,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