Hi,
I am simulating wired-cum-wireless network using Ns2 . I
had configured Mobile IP . Now i had implemented my own Agent and
attached to Base station and Mobile node. Now i have the problem while
executing tcl file .
The problem is within the C++ file of my Agent.
*The Purpose of My Agent is *
1)Base Station BROADCAST the packets
2)Mobile Node should receive the packets and acknowledge them.
In the
"*int RegAgent::command (int argc, const char *const* argv) *"
function , am sending the packets .
i used the code as follows.
hdr_IP* hdrip= HDR_IP(pkt);
hdrip->daddr()=IP_BROADCAST;
hdrip->dport()=0;
*The ERROR* is
void recv(packer *, handle *) function in the Agent is *not recieving the
incoming packet*.
----------------------------------------------------------------------------------
if i remove the code
"
hdr_IP* hdrip= HDR_IP(pkt);
hdrip->daddr()=IP_BROADCAST;
hdrip->dport()=0; "
from the " *int RegAgent::command (int argc, const char *const* argv) * "
function and just send the packet .
The* ERROR* is
While executing the TCL file...........
---classifier::no-slot{} default handle(tcl\lib\ns-lib.tcl)-------------
_o216 : no target for slot -1
_o216 type :: classifier /port/Reserve
content dump:
classifier _o216,
0 offset
0 shift
2147483647 mask
4 slots()
slot 0: _o219 (CMUTrace/Recev)
slot 2: _o337 (CMUTrace/Recev)
slot 3: _o353 (CMUTrace/Recev)
slot 255: _o234 (CMUTrace/Recev)
------Finished standard no-slot[] default handle-------------------
I dont know why this error is coming , Kindly give me a solution...
Thanks and regards,
prathap