diff options
| author | dyoung <dyoung@NetBSD.org> | 2007-08-26 22:45:55 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2007-08-26 22:45:55 +0000 |
| commit | 71e77a61b4d5bacea330af7dfd691c6d12988b95 (patch) | |
| tree | 3122d844b6aa118b7274f28b7e4388c08ac0ac3e /sys/dev/isa | |
| parent | f004b71d982577c719d4342c2e0d053881dd7dc6 (diff) | |
Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).
Diffstat (limited to 'sys/dev/isa')
| -rw-r--r-- | sys/dev/isa/if_el.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/if_iy.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/isa/if_el.c b/sys/dev/isa/if_el.c index 2e21b0ce9a5..9e18d0e0b9c 100644 --- a/sys/dev/isa/if_el.c +++ b/sys/dev/isa/if_el.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_el.c,v 1.77 2007/03/04 06:02:12 christos Exp $ */ +/* $NetBSD: if_el.c,v 1.78 2007/08/26 22:45:57 dyoung Exp $ */ /* * Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted @@ -19,7 +19,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_el.c,v 1.77 2007/03/04 06:02:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_el.c,v 1.78 2007/08/26 22:45:57 dyoung Exp $"); #include "opt_inet.h" #include "bpfilter.h" @@ -314,7 +314,7 @@ el_hardreset(sc) for (i = 0; i < ETHER_ADDR_LEN; i++) bus_space_write_1(iot, ioh, i, - LLADDR(sc->sc_ethercom.ec_if.if_sadl)[i]); + CLLADDR(sc->sc_ethercom.ec_if.if_sadl)[i]); } /* diff --git a/sys/dev/isa/if_iy.c b/sys/dev/isa/if_iy.c index 80e1d523c58..d60e694e901 100644 --- a/sys/dev/isa/if_iy.c +++ b/sys/dev/isa/if_iy.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_iy.c,v 1.75 2007/03/04 06:02:12 christos Exp $ */ +/* $NetBSD: if_iy.c,v 1.76 2007/08/26 22:45:57 dyoung Exp $ */ /* #define IYDEBUG */ /* #define IYMEMDEBUG */ @@ -46,7 +46,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_iy.c,v 1.75 2007/03/04 06:02:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_iy.c,v 1.76 2007/08/26 22:45:57 dyoung Exp $"); #include "opt_inet.h" #include "bpfilter.h" @@ -477,7 +477,7 @@ struct iy_softc *sc; bus_space_write_1(iot, ioh, EEPROM_REG, temp & ~0x10); for (i=0; i<6; ++i) { - bus_space_write_1(iot, ioh, I_ADD(i), LLADDR(ifp->if_sadl)[i]); + bus_space_write_1(iot, ioh, I_ADD(i), CLLADDR(ifp->if_sadl)[i]); } temp = bus_space_read_1(iot, ioh, REG1); |
