diff options
author | Michael Brown | 2006-06-28 15:48:02 +0200 |
---|---|---|
committer | Michael Brown | 2006-06-28 15:48:02 +0200 |
commit | 291f072b82f963b47a3a8842578c9a11244e509e (patch) | |
tree | cb861f52440aeefb9693bc3179556ef91cff267d /src/include/gpxe/dhcp.h | |
parent | Change dhcp_num_option() to return the numerical value directly. (diff) | |
download | ipxe-291f072b82f963b47a3a8842578c9a11244e509e.tar.gz ipxe-291f072b82f963b47a3a8842578c9a11244e509e.tar.xz ipxe-291f072b82f963b47a3a8842578c9a11244e509e.zip |
Add priority mechanism
Diffstat (limited to 'src/include/gpxe/dhcp.h')
-rw-r--r-- | src/include/gpxe/dhcp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index 6d293935..26016cf8 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -84,4 +84,13 @@ struct dhcp_option_block { size_t len; }; +extern unsigned long dhcp_num_option ( struct dhcp_option *option ); +extern struct dhcp_option * find_dhcp_option ( unsigned int tag, + struct dhcp_option_block *options ); + +static inline unsigned long +find_dhcp_num_option ( unsigned int tag, struct dhcp_option_block *options ) { + return dhcp_num_option ( find_dhcp_option ( tag, options ) ); +} + #endif /* _GPXE_DHCP_H */ |