bool EtherCard::staticSetup (const uint8_t* my_ip, const uint8_t* gw_ip, const uint8_t* dns_ip) { if (my_ip != 0) copyIp(myip, my_ip); if (gw_ip != 0) setGwIp(gw_ip); if (dns_ip != 0) copyIp(dnsip, dns_ip); return true; }
bool EtherCard::staticSetup (const uint8_t* my_ip, const uint8_t* gw_ip, const uint8_t* dns_ip, const uint8_t* mask) { using_dhcp = false; if (my_ip != 0) copyIp(myip, my_ip); if (gw_ip != 0) setGwIp(gw_ip); if (dns_ip != 0) copyIp(dnsip, dns_ip); if(mask != 0) copyIp(netmask, mask); updateBroadcastAddress(); delaycnt = 0; //request gateway ARP lookup return true; }