[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] Node getInterfaces
Hi Haobu,
I went through the files suggested by you (~ns/net-interface.{cc,h}) but I
did not see that NetworkInterface class being hooked to Tcl, as I did not
see a NetworkInterfaceClass that would extend TclClass.
Also I did not find anyother C++ class that can uses the NetworkInterface
class.
Can you tell me how can I use the NetworkInterface class to get a list of
all the links emanating from a node. I am interested in getting events
like a interface down/up, interface added/deleted.
I would appreciate any help in this regard.
regards,
Sudhin.
On Mon, 1 May 2000, Haobo Yu wrote:
> these are probably old interfaces that should be removed. See tcl/interface
> (or a similar name) for the tcl files and ~ns/net-interface.{cc,h}.
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]]On Behalf Of Sudhindra
> > Suresh Bengeri
> > Sent: Thursday, April 27, 2000 11:15 AM
> > To: [email protected]
> > Subject: [ns] Node getInterfaces
> >
> >
> > Hi ns-users,
> >
> > I have a question about the interfaces (again):
> >
> > when I call the getInterfaces instproc of the Node class, I get an error
> >
> > can't read "ifaces_": no such variable.
> >
> > In the file ns-node.tcl, which imples that Node
> > attachInterfaces/addInterface is not being called.
> >
> > Is this the default behavoir? If I have to call attachInterfaces myself
> > how do I get the interface list. I could not find attachInterfaces being
> > called in any of the tcl/lib, tcl/ex, tcl/test tcl/rtglib dirs. Does it
> > mean there is some other way creating the interface list.
> >
> > Thanks in anticipation.
> >
> > Regards,
> > Sudhin.
> >
> > ****************** Sudhindra Suresh Bengeri *******************
> > School: | Home: |
> > Dept. of Computer Science | 2502, Avent Ferry Rd |
> > NCSU, Raleigh, NC. | Apt #206, Raleigh, NC - 27606 |
> > Ph. 919 515 7135(TA room) | Ph. 919 838 8746 |
> > web page: http://www4.ncsu.edu/~ssbenger
> >
> >
>
>
****************** Sudhindra Suresh Bengeri *******************
School: | Home: |
Dept. of Computer Science | 2502, Avent Ferry Rd |
NCSU, Raleigh, NC. | Apt #206, Raleigh, NC - 27606 |
Ph. 919 515 7135(TA room) | Ph. 919 838 8746 |
my web projection: http://www4.ncsu.edu/~ssbenger