- clearing IP on interface initialization added

This commit is contained in:
Wiesner András 2024-10-30 11:09:00 +01:00
parent 8044d8a8b6
commit 5eccc7a58a

View File

@ -5,6 +5,7 @@
#include "eth_interface.h"
#include "dynmem.h"
#include "etherlib/prefab/conn_blocks/ethernet_connblock.h"
#include "etherlib/prefab/packet_parsers/ipv4_types.h"
#include "etherlib_options.h"
#include "utils.h"
@ -74,6 +75,11 @@ EthInterface *ethintf_new(EthIODef *io) {
ethIntf->interceptTxCb = NULL;
ethIntf->interceptRxCb = NULL;
ethIntf->ip = 0;
ethIntf->router = 0;
ethIntf->dns = 0;
ethIntf->netmask = IPv4_ANY_ADDR;
ethIntf->linkState = false;
ethintf_register(ethIntf);