This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2SX: 求助:实现网关(gateway)配置支持

Part Number: TDA2SX


需要在TDA2x中,实现GateWay IP配置,查看了资料,在如下代码修改:

/*
* Add the default gateway. Since it is the default, the
* destination address and mask are both zero (we go ahead
* and show the assignment for clarity).
*/
bzero(&RT, sizeof(RT));
RT.IPDestAddr = 0;
RT.IPDestMask = 0;
RT.IPGateAddr = inet_addr(GatewayIP);

CfgAddEntry(hCfg, CFGTAG_ROUTE, 0, 0,
sizeof(CI_ROUTE), (UINT8 *)&RT, 0)

上述修改GateWayIP的值是可以正确的修改GateWay IP吗?还需要修改其他的地方吗?