1 |
/* |
/* |
2 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
3 |
* Copyright (C) 2000, 2001 Free Software Foundation, Inc. |
* Copyright (C) 2000,2001,2002 Free Software Foundation, Inc. |
4 |
* |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
167 |
|
|
168 |
if (gw && ! inet_aton (gw, &arptable[ARP_GATEWAY].ipaddr)) |
if (gw && ! inet_aton (gw, &arptable[ARP_GATEWAY].ipaddr)) |
169 |
return 0; |
return 0; |
170 |
|
|
171 |
|
/* Clear out the ARP entry. */ |
172 |
|
grub_memset (arptable[ARP_GATEWAY].node, 0, ETH_ALEN); |
173 |
|
|
174 |
if (svr && ! inet_aton (svr, &arptable[ARP_SERVER].ipaddr)) |
if (svr && ! inet_aton (svr, &arptable[ARP_SERVER].ipaddr)) |
175 |
return 0; |
return 0; |
176 |
|
|
177 |
|
/* Likewise. */ |
178 |
|
grub_memset (arptable[ARP_SERVER].node, 0, ETH_ALEN); |
179 |
|
|
180 |
if (ip || sm) |
if (ip || sm) |
181 |
{ |
{ |