[mpls-linux-general] Error Help
Status: Beta
Brought to you by:
jleu
|
From: <m9...@cn...> - 2005-02-01 09:13:24
|
Hi James,
When I canceled "#if 0" of some parts of "ldp_vtysh.c", for example:=20
DEFUN(ldp_if_remote_tcp_port,
ldp_if_remote_tcp_port_cmd,
"remote-tcp-port <1-65535>",
"MPLS interface configuration\n"
"remote LDP port\n"
"port number\n")
{
struct interface *ifp =3D vty->index;
struct ldp_interface *li =3D (struct ldp_interface*)ifp->info;
struct ldp *ldp =3D li->ldp;
li->entity.remote_tcp_port =3D atoi(argv[0]);
if (!ldp) {
li->create_on_hold =3D MPLS_BOOL_TRUE;
return CMD_SUCCESS;
}
ldp_cfg_entity_set(ldp->h, &li->entity, LDP_ENTITY_CFG_REMOTE_TCP);
return CMD_SUCCESS;
}
When I compile it, there was an error:
ldp_vty.c:1555: error: structure has no member named `ldp'
Then I went to check "ldp_interface.h", I found that there actually has =
no this member in "struct ldp_interface".
Thanks.
Timothy
2005.02.01 |