Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net add DL_PRINT macro



details:   https://anonhg.NetBSD.org/src/rev/49c6df0dbcb2
branches:  trunk
changeset: 334719:49c6df0dbcb2
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 03 01:31:37 2014 +0000

description:
add DL_PRINT macro

diffstat:

 sys/net/if_dl.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r dd8b17a60905 -r 49c6df0dbcb2 sys/net/if_dl.h
--- a/sys/net/if_dl.h   Wed Dec 03 01:30:32 2014 +0000
+++ b/sys/net/if_dl.h   Wed Dec 03 01:31:37 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_dl.h,v 1.25 2014/12/02 19:34:33 christos Exp $      */
+/*     $NetBSD: if_dl.h,v 1.26 2014/12/03 01:31:37 christos Exp $      */
 
 /*
  * Copyright (c) 1990, 1993
@@ -121,6 +121,7 @@
 #define LINK_ADDRSTRLEN        ((255 * 4) + 5)
 
 int    dl_print(char *, size_t, const struct dl_addr *);
+#define DL_PRINT(b, a) (dl_print((b), sizeof(b), (a)), (b))
 int    sdl_print(char *, size_t, const void *);
 #endif
 



Home | Main Index | Thread Index | Old Index