cvs: pear /PECL/netools netools.c
| From: | Tal Peer | Date: | Fri, 13 Dec 2002 13:07:23 +0000 |
| Subject: | cvs: pear /PECL/netools netools.c | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7876@lists.php.net to get a copy of this message | ||
tal Fri Dec 13 08:07:23 2002 EDT
Modified files:
/pear/PECL/netools netools.c
Log:
- Eliminate expensive hostname->ip resolve in hostname_to_mac
Index: pear/PECL/netools/netools.c
diff -u pear/PECL/netools/netools.c:1.6 pear/PECL/netools/netools.c:1.7
--- pear/PECL/netools/netools.c:1.6 Fri Dec 13 05:02:54 2002
+++ pear/PECL/netools/netools.c Fri Dec 13 08:07:23 2002
@@ -15,7 +15,7 @@
| Author: Tal Peer <tal@php.net> |
+----------------------------------------------------------------------+
- $Id: netools.c,v 1.6 2002/12/13 10:02:54 tal Exp $
+ $Id: netools.c,v 1.7 2002/12/13 13:07:23 tal Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -175,11 +175,9 @@
if (!arr) {
lcrzo_eths mac;
- lcrzo_ipl ip;
lcrzo_hs_init(hs, hostname);
- lcrzo_ipl_init_hs(hostname, &ip);
- err = lcrzo_eths_init_ipl(ip, mac);
+ err = lcrzo_eths_init_hs(hostname, mac);
if (err == LCRZO_ERR_OKUNRESOLVED) {
RETURN_FALSE;
} else {
@@ -187,11 +185,9 @@
}
} else {
lcrzo_etha mac;
- lcrzo_ipl ip;
lcrzo_hs_init(hs, hostname);
- lcrzo_ipl_init_hs(hostname, &ip);
- err = lcrzo_etha_init_ipl(ip, mac);
+ err = lcrzo_etha_init_hs(hostname, mac);
if (err == LCRZO_ERR_OKUNRESOLVED) {
RETURN_FALSE;
} else {