I use of keil network component v 7.10
I use both ppp conection and ethernet interface ,i need to be able to choose which interface to use as gateway ,
currently I can select defult gateway in precompiling mode with PPP_DEFULT_GW value , but I need to change defulte gateway by user in runtime
Use netIF_SetDefault( NET_IF_CLASS_PPP | 0, netIF_VersionIP4 ) and netIF_SetDefault( NET_IF_CLASS_ETH | 0, netIF_VersionIP4 )
Wow, thank you very much brother, your method answered ...merc , merc