This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCPnet: switching between PPP and Ethernet at runtime

Hello,

I have a couple questions regarding TCPnet that I would appreciate some assistance on:

1) I am using raw TCP/IP sockets and at runtime I need to be able to dictate which communication platform the sockets open on (Ethernet vs PPP). Is it possible to do this?

2) For some reason I am not getting any DNS servers assigned through my PPP connection. My PPP device is a GPRS modem. Is there a setting that I need to enable to make this happen?

I have been reading the product manual and cannot seem to find the answers in there -- however, if they are there and I just missed them, please feel free to point me to the correct sections. Any insight would be greatly appreciated!

Thank you,
Eric

Parents
  • Hi Per,

    You are right that netif_cfg is declared as a constant. However, I changed it away from being a constant (see the note in my previous post about that).

    Also, TogglePPP_DefGW( ) modifies netif_cfg by using its passed parameter in the "netif_cfg =" statement (third variable to the right of netif_cfg).

    What I am concerned about, in regards to stability, is that I have changed netif_cfg to no longer be a constant. So far everything is working fine though.

Reply
  • Hi Per,

    You are right that netif_cfg is declared as a constant. However, I changed it away from being a constant (see the note in my previous post about that).

    Also, TogglePPP_DefGW( ) modifies netif_cfg by using its passed parameter in the "netif_cfg =" statement (third variable to the right of netif_cfg).

    What I am concerned about, in regards to stability, is that I have changed netif_cfg to no longer be a constant. So far everything is working fine though.

Children