Re: [mpls-linux-general] Help on ldp
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2005-01-18 15:00:28
|
I believe I answered this question last time you posted it.
"There is no need to include advanced configuration commands when
the basics do not work.
I'm not sure what you mean by 'struct ldp seems unfinished'. The
main parts of the ldp control structures are in ldp-portable not in
the 'quagga-wrapper'."
On Tue, Jan 18, 2005 at 08:53:57PM +0800, ?????x wrote:
> Hi James,
>
> 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? Could you give me some hint, maybe I can help to test ldp code.
>
>
> ldp_vty.c - 0.310
>
> 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 = vty->index;
> struct mpls_interface *mi = (struct mpls_interface*)ifp->info;
> struct ldp_interface *li = mi->ldp;
>
>
> ldp_vty.c - 0.800
>
> 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 = vty->index;
> struct ldp_interface *li = (struct ldp_interface*)ifp->info;
> struct ldp *ldp = 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
--
James R. Leu
jl...@mi...
|