Hi, nw_src and nw_dst are 32-bit unsigned integers , i.e., binary values of the IP address. This is how ofp_match is defined in OpenFlow. It might help to read the spec for the exact definition.
Regards KK 2011/9/23 Min-Hyup KANG <kang-min-h...@hanmail.net> > Hi All, > > > I would like to get dl_src, nw_src in void > lavi_hostflow::send_flow_list(const Flow& flow, etc) > > > So, I am printing some Flow values. > > > For example, I used print function to get dl_src, nw_src. > > > void lavi_hostflow::send_flow_list(const Flow& flow, > > const network::route& rte, > > const Msg_stream& stream, > > bool add) > > { > > ... > > ... > > std::cout<<"nw_src : "<<flow.nw_src<<std::endl; > > std::cout<<"nw_dst : "<<flow.nw_dst<<std::endl; > > std::cout<<"dl_src : "<<flow.dl_src<<std::endl; > > std::cout<<"dl_dst : "<<flow.dl_dst<<std::endl; > > } > > > and Below is outcome. > > As you can see, dl_src looks good, but nw_src isn't IP address.. > > To get IP src,dst Address, What should I do ? > > > ./nox_core > > ..... > > ..... > nw_src : 16885952 > nw_dst : 33663168 > dl_src : 00:0f:b0:72:1b:e3 > dl_dst : 00:0f:b0:6f:ea:e2 > ..... > ..... > > > > > > > > > > > > > > > > > > > > > > > Best Regards, > Min-Hyup KANG > > <kang-min-h...@hanmail.net> > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > >
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev