http://git.etherboot.org
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ad5ced
)
Rename unwieldy function
author
Michael Brown
<mcb30@etherboot.org>
Thu, 20 Jul 2006 00:24:25 +0000
(
00:24
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 20 Jul 2006 00:24:25 +0000
(
00:24
+0000)
src/net/udp/dhcp.c
patch
|
blob
|
history
diff --git
a/src/net/udp/dhcp.c
b/src/net/udp/dhcp.c
index
bbb4a1a
..
276b5e1
100644
(file)
--- 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
*/
* @v msgtype DHCP message type
* @ret string DHCP mesasge type name
*/
-static inline const char * dhcp_m
essage_
type_name ( unsigned int msgtype ) {
+static inline const char * dhcp_m
sg
type_name ( unsigned int msgtype ) {
switch ( msgtype ) {
case 0: return "BOOTP"; /* Non-DHCP packet */
case DHCPDISCOVER: return "DHCPDISCOVER";
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;
struct dhcp_packet dhcppkt;
int rc;
- DBG ( "Transmitting %s\n", dhcp_m
essage_
type_name ( dhcp->state ) );
+ DBG ( "Transmitting %s\n", dhcp_m
sg
type_name ( dhcp->state ) );
assert ( ( dhcp->state == DHCPDISCOVER ) ||
( dhcp->state == DHCPREQUEST ) );
assert ( ( dhcp->state == DHCPDISCOVER ) ||
( dhcp->state == DHCPREQUEST ) );
@@
-512,8
+512,8
@@
static void dhcp_newdata ( struct udp_connection *conn,
}
DBG ( "Received %s\n",
}
DBG ( "Received %s\n",
- dhcp_m
essage_
type_name ( find_dhcp_num_option ( options,
-
DHCP_MESSAGE_TYPE ) )
);
+ dhcp_m
sg
type_name ( find_dhcp_num_option ( options,
+
DHCP_MESSAGE_TYPE ))
);
/* Proof of concept: just dump out the parsed options */
hex_dump ( options->data, options->len );
/* Proof of concept: just dump out the parsed options */
hex_dump ( options->data, options->len );