ns-allinone-2.35/ns-2.35/aomdv/aomdv_rtable.cc
bool
aomdv_rt_entry::new_disjoint_path(nsaddr_t nexthop, nsaddr_t lasthop)
{
  AOMDV_Path *path = rt_path_list.lh_first;

  for(; path; path = path->path_link.le_next) {
    if ( (path->nexthop == nexthop) || (path->lasthop == lasthop) )
      return false;
  }
  return true;

}
/* Returns true if no path exists (for this route entry) which has 'nexthop' as next hop or 'lasthop' as last hop.*/
Returns true if no path exists (for this route entry) which has 'nexthop' as next hop or 'lasthop' as last hop.
Returns true if no path exists ( for this route entry ) which has ' nexthop ' as next hop or ' lasthop ' as last hop .
bool
aomdv_rt_entry::new_disjoint_path(nsaddr_t nexthop, nsaddr_t lasthop)
{
  AOMDV_Path *path = rt_path_list.lh_first;
  for(; path; path = path->path_link.le_next) {
    if ( (path->nexthop == nexthop) || (path->lasthop == lasthop) )
      return false;
  }
  return true;
}
bool aomdv_rt_entry :: new_disjoint_path ( nsaddr_t nexthop , nsaddr_t lasthop ) { AOMDV_Path * path = rt_path_list . lh_first ; for ( ; path ; path = path -> path_link . le_next ) { if ( ( path -> nexthop == nexthop ) || ( path -> lasthop == lasthop ) ) return false ; } return true ; }
Returns true if no path exists (for this route entry) which has 'nexthop' as next hop or 'lasthop' as last hop.
Returns true if no path exists ( for this route entry ) which has ' nexthop ' as next hop or ' lasthop ' as last hop .