aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/include/gpxe/resolv.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/include/gpxe/resolv.h')
-rw-r--r--gpxe/src/include/gpxe/resolv.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gpxe/src/include/gpxe/resolv.h b/gpxe/src/include/gpxe/resolv.h
index e73c8201..33bb0986 100644
--- a/gpxe/src/include/gpxe/resolv.h
+++ b/gpxe/src/include/gpxe/resolv.h
@@ -7,6 +7,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/refcnt.h>
#include <gpxe/interface.h>
#include <gpxe/tables.h>
@@ -149,9 +151,11 @@ struct resolver {
/** Normal resolver priority */
#define RESOLV_NORMAL 02
+/** Resolvers table */
+#define RESOLVERS __table ( struct resolver, "resolvers" )
+
/** Register as a name resolver */
-#define __resolver( resolv_order ) \
- __table ( struct resolver, resolvers, resolv_order )
+#define __resolver( resolv_order ) __table_entry ( RESOLVERS, resolv_order )
extern void resolv_done ( struct resolv_interface *resolv,
struct sockaddr *sa, int rc );