diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-01-12 03:41:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-01-12 03:41:30 +0000 |
commit | 2ffe5c858e64748794af88d21f0dc46133869dca (patch) | |
tree | 3156e96efeaa40b97986da7420161875f544ecd4 /sys/netinet | |
parent | 20bb74983055decf011de6c42a46c101cc46ccd9 (diff) |
Unify the various fake ethernet generators as ether_fakeaddr() which
is safe for both hardware devices and virtual devices
ok mpf, kettenis, moaning and groaning and slow acceptance from mcbride
XXX should loop checking for uniqueness after new henning diff goes in
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index e1687ac7036..656c87c52de 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.45 2009/10/25 21:42:02 mk Exp $ */ +/* $OpenBSD: if_ether.h,v 1.46 2010/01/12 03:41:29 deraadt Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -122,6 +122,8 @@ do { \ (enaddr)[4] = ((u_int8_t *)ip6addr)[14]; \ (enaddr)[5] = ((u_int8_t *)ip6addr)[15]; \ } while (/* CONSTCOND */ 0) + +void ether_fakeaddr(struct ifnet *); #endif /* |