Click here to Skip to main content
15,946,316 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C
netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
while(1){
netif_set_default(&gnetif);

if (netif_is_link_up(&gnetif))
{ netif_set_up(&gnetif);
break;
}
else
{  netif_set_down(&gnetif);
}
netif_set_link_callback(&gnetif, ethernet_link_status_updated);
}


What I have tried:

I am using open source ethernet code and i am having trouble while connecting. Also when I connect i see my desired output with ARPlines does that mean my connection is lost than connected again or is it just for affirmation for the connection?
Posted
Updated 11-Jul-24 2:54am
v2
Comments
jeron1 11-Jul-24 10:14am    
What is ARPlines? Maybe you expand more on what exactly you are expecting to happen during/after the connection.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900