diff options
author | Michael Brown | 2006-07-20 02:24:25 +0200 |
---|---|---|
committer | Michael Brown | 2006-07-20 02:24:25 +0200 |
commit | 30d9bcdc6e94eb9ba366c87a5178291bc20af68a (patch) | |
tree | 641259c94eb9b1e5e9ac174b3a8b828ca3909a5d /src/net/udp/dhcp.c | |
parent | Set DHCP_MESSAGE_TYPE option within the main options block. This (diff) | |
download | ipxe-30d9bcdc6e94eb9ba366c87a5178291bc20af68a.tar.gz ipxe-30d9bcdc6e94eb9ba366c87a5178291bc20af68a.tar.xz ipxe-30d9bcdc6e94eb9ba366c87a5178291bc20af68a.zip |
Rename unwieldy function
Diffstat (limited to 'src/net/udp/dhcp.c')
-rw-r--r-- | src/net/udp/dhcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index bbb4a1a7..276b5e1f 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -64,7 +64,7 @@ static uint8_t dhcp_request_options_data[] = { * @v msgtype DHCP message type * @ret string DHCP mesasge type name */ -static inline const char * dhcp_message_type_name ( unsigned int msgtype ) { +static inline const char * dhcp_msgtype_name ( unsigned int msgtype ) { switch ( msgtype ) { case 0: return "BOOTP"; /* Non-DHCP packet */ case DHCPDISCOVER: return "DHCPDISCOVER"; @@ -457,7 +457,7 @@ static void dhcp_senddata ( struct udp_connection *conn, struct dhcp_packet dhcppkt; int rc; - DBG ( "Transmitting %s\n", dhcp_message_type_name ( dhcp->state ) ); + DBG ( "Transmitting %s\n", dhcp_msgtype_name ( dhcp->state ) ); assert ( ( dhcp->state == DHCPDISCOVER ) || ( dhcp->state == DHCPREQUEST ) ); @@ -512,8 +512,8 @@ static void dhcp_newdata ( struct udp_connection *conn, } DBG ( "Received %s\n", - dhcp_message_type_name ( find_dhcp_num_option ( options, - DHCP_MESSAGE_TYPE ) ) ); + dhcp_msgtype_name ( find_dhcp_num_option ( options, + DHCP_MESSAGE_TYPE ))); /* Proof of concept: just dump out the parsed options */ hex_dump ( options->data, options->len ); |