Hi all

I have some questions related to the ENVI.

First, packet flow is started by 'send add flow' from the lavi.
and it is ended by 'send remove flow' from the lavi.

But I test the packet flow using the ping command, and stop the ping test
but packet flow doesn't stop. It continues.
I want to stop the packet flow. How can I this?

Second, below link is related my question.
http://www.mail-archive.com/[email protected]/msg02856.html

When does handle_flow_route event occur?
kk yap said that the answer is when there is a flow mod to the host.
Flow mod is modifications message to the flow table from the controller.
But if client send udp or tcp packet, controller set up the flow table
using the flow mod, but handle_flow_route event is not called.

In  lavitest_showflow.cc, I didn't check the icmp type. So handle_flow_route
always return CONTINUE

Disposition lavitest_showflow::handle_flow_route(const Event& e)
  {
    const Flow_route_event& fre = assert_cast<const Flow_route_event&>(e);

    //Check for ICMP type
    if (ntohs(fre.flow.dl_type) == 0x0800 &&  fre.flow.nw_proto == 1 &&
ntohl(fre.flow.nw_src) < ntohl(fre.flow.nw_dst))

    {
      VLOG_DBG(lg, "Got ICMP flow %s", fre.flow.to_string().c_str());
      return CONTINUE;
    }

    return STOP;
  }

But I couldn't solve the above problem.

Third, Is there a component to detect host? Is hosttracker right?
But If I use the hosttracker in NOX argument, Host is not detected.
So Host is not shown in ENVI. it just show the switch.
How I could show the host in ENVI?

Thanks a lot!

Regards
Hyogi

Reply via email to