[mpls-linux-general] A question of ldp-portable-0.800
Status: Beta
Brought to you by:
jleu
|
From: <m9...@cn...> - 2005-01-06 15:07:06
|
Hi,
I have a question between ldp-portable-0.310 and ldp-portable-0.800.
The programmer uses "struct mpls_interface" in ldp-portable-0.310 patch =
file, but "stuct ldp_interface" in ldp-portable-0.800 patch file.
It seems that there is no data member named ldp in ldp_interface.h, so =
all related commands in ldp_vty.c were marked by #if 0.
Why to change that?=20
ldp_vty.c - 0.310=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 mpls_interface *mi =3D (struct mpls_interface*)ifp->info;
struct ldp_interface *li =3D mi->ldp;
ldp_vty.c - 0.800=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;
ldp_interface.h - there is no data member named ldp
struct ldp_interface {
struct interface *ifp;
struct connected *connected;
struct l2cc_interface *l2cc;
ldp_entity entity;
ldp_if iff;
mpls_bool configured;
mpls_bool admin_up;
mpls_bool create_on_hold;
int labelspace;
};
Thanks.
Timothy
2005.01.06 |