net/ipv4/ipconfig: really display the BOOTP/DHCP server's address.

Up to now, the debug and info messages from the ipconfig subsytem
claim to display the IP address of the DHCP/BOOTP server but
display instead the IP address of the bootserver. Fix that.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Philippe De Muyter and committed by David S. Miller 9dd4a13a 3b09adcb

+6 -2
+6 -2
net/ipv4/ipconfig.c
··· 136 136 static __be32 ic_netmask = NONE; /* Netmask for local subnet */ 137 137 __be32 ic_gateway = NONE; /* Gateway IP address */ 138 138 139 + __be32 ic_addrservaddr = NONE; /* IP Address of the IP addresses'server */ 140 + 139 141 __be32 ic_servaddr = NONE; /* Boot server IP address */ 140 142 141 143 __be32 root_server_addr = NONE; /* Address of NFS server */ ··· 560 558 if (ic_myaddr == NONE) 561 559 ic_myaddr = tip; 562 560 ic_servaddr = sip; 561 + ic_addrservaddr = sip; 563 562 ic_got_reply = IC_RARP; 564 563 565 564 drop_unlock: ··· 1071 1068 ic_servaddr = server_id; 1072 1069 #ifdef IPCONFIG_DEBUG 1073 1070 printk("DHCP: Offered address %pI4 by server %pI4\n", 1074 - &ic_myaddr, &ic_servaddr); 1071 + &ic_myaddr, &b->iph.saddr); 1075 1072 #endif 1076 1073 /* The DHCP indicated server address takes 1077 1074 * precedence over the bootp header one if ··· 1116 1113 ic_dev = dev; 1117 1114 ic_myaddr = b->your_ip; 1118 1115 ic_servaddr = b->server_ip; 1116 + ic_addrservaddr = b->iph.saddr; 1119 1117 if (ic_gateway == NONE && b->relay_ip) 1120 1118 ic_gateway = b->relay_ip; 1121 1119 if (ic_nameservers[0] == NONE) ··· 1272 1268 printk("IP-Config: Got %s answer from %pI4, ", 1273 1269 ((ic_got_reply & IC_RARP) ? "RARP" 1274 1270 : (ic_proto_enabled & IC_USE_DHCP) ? "DHCP" : "BOOTP"), 1275 - &ic_servaddr); 1271 + &ic_addrservaddr); 1276 1272 pr_cont("my address is %pI4\n", &ic_myaddr); 1277 1273 1278 1274 return 0;