diff options
Diffstat (limited to 'net/ipv4/ipconfig.c')
| -rw-r--r-- | net/ipv4/ipconfig.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index b3e86ea7b71b..5bbef4fdcb43 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
| @@ -143,8 +143,6 @@ __be32 ic_servaddr = NONE; /* Boot server IP address */ | |||
| 143 | __be32 root_server_addr = NONE; /* Address of NFS server */ | 143 | __be32 root_server_addr = NONE; /* Address of NFS server */ |
| 144 | u8 root_server_path[256] = { 0, }; /* Path to mount as root */ | 144 | u8 root_server_path[256] = { 0, }; /* Path to mount as root */ |
| 145 | 145 | ||
| 146 | __be32 ic_dev_xid; /* Device under configuration */ | ||
| 147 | |||
| 148 | /* vendor class identifier */ | 146 | /* vendor class identifier */ |
| 149 | static char vendor_class_identifier[253] __initdata; | 147 | static char vendor_class_identifier[253] __initdata; |
| 150 | 148 | ||
| @@ -654,6 +652,7 @@ static struct packet_type bootp_packet_type __initdata = { | |||
| 654 | .func = ic_bootp_recv, | 652 | .func = ic_bootp_recv, |
| 655 | }; | 653 | }; |
| 656 | 654 | ||
| 655 | static __be32 ic_dev_xid; /* Device under configuration */ | ||
| 657 | 656 | ||
| 658 | /* | 657 | /* |
| 659 | * Initialize DHCP/BOOTP extension fields in the request. | 658 | * Initialize DHCP/BOOTP extension fields in the request. |
| @@ -1218,10 +1217,10 @@ static int __init ic_dynamic(void) | |||
| 1218 | get_random_bytes(&timeout, sizeof(timeout)); | 1217 | get_random_bytes(&timeout, sizeof(timeout)); |
| 1219 | timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned int) CONF_TIMEOUT_RANDOM); | 1218 | timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned int) CONF_TIMEOUT_RANDOM); |
| 1220 | for (;;) { | 1219 | for (;;) { |
| 1220 | #ifdef IPCONFIG_BOOTP | ||
| 1221 | /* Track the device we are configuring */ | 1221 | /* Track the device we are configuring */ |
| 1222 | ic_dev_xid = d->xid; | 1222 | ic_dev_xid = d->xid; |
| 1223 | 1223 | ||
| 1224 | #ifdef IPCONFIG_BOOTP | ||
| 1225 | if (do_bootp && (d->able & IC_BOOTP)) | 1224 | if (do_bootp && (d->able & IC_BOOTP)) |
| 1226 | ic_bootp_send_if(d, jiffies - start_jiffies); | 1225 | ic_bootp_send_if(d, jiffies - start_jiffies); |
| 1227 | #endif | 1226 | #endif |
