Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add a CLLADDR macro which is the same as LLADDR only...
details: https://anonhg.NetBSD.org/src/rev/1e397035ced5
branches: trunk
changeset: 581267:1e397035ced5
user: christos <christos%NetBSD.org@localhost>
date: Mon May 30 22:11:47 2005 +0000
description:
Add a CLLADDR macro which is the same as LLADDR only const. Make both macros
return void pointers.
diffstat:
sys/net/if_dl.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 84c72decec2a -r 1e397035ced5 sys/net/if_dl.h
--- a/sys/net/if_dl.h Mon May 30 21:15:28 2005 +0000
+++ b/sys/net/if_dl.h Mon May 30 22:11:47 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_dl.h,v 1.14 2005/02/26 22:45:09 perry Exp $ */
+/* $NetBSD: if_dl.h,v 1.15 2005/05/30 22:11:47 christos Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -74,7 +74,8 @@
contains both if name and ll address */
};
-#define LLADDR(s) ((caddr_t)((s)->sdl_data + (s)->sdl_nlen))
+#define LLADDR(s) ((void *)((s)->sdl_data + (s)->sdl_nlen))
+#define CLLADDR(s) ((const void *)((s)->sdl_data + (s)->sdl_nlen))
#ifndef _KERNEL
Home |
Main Index |
Thread Index |
Old Index