diff options
Diffstat (limited to 'src/include')
| -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 6d2939353..26016cf81 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 */ |
