[mpls-linux-devel] neigh_table_find removed in 2.6.2
Status: Beta
Brought to you by:
jleu
From: Ramon C. <cas...@in...> - 2004-02-06 13:46:31
|
Hi, Little question here: neigh_table_find has been removed in 2.6.2 The original goal was to manage mpls_dsts but reusing the AF_INET AF_INET6 neighbour tables (lookup a neighbour and hold it in the mpls_dst) The problem is that now I don't see how we can do this... We should not access the neigh_tables list & lock directly. Maybe we should manage our own neighbours and a AF_MPLS neighbour table... I'm starting to think that this is the best approach, since we can even cache hh objects with ETH_P_MPLS_UC.... Thoughts? Maybe we should start bugging ne...@os... for comments. Regards, R. RFC: /* Set next hop MPLS attr */ memcpy(&md->md_nh,nh,sizeof(struct sockaddr)); /* * Lookup for the next hop (neighbour) in the AF_INET/AF_INET6 * neighbour table. (neigh_table_find removed in 2.6.2) */ tbl = neigh_table_find (....) /* * AF_INET neighbour keys are their addr. * Look for the neighbour (create if needed) * (neigh_lookup & neigh_create hold a ref) */ md->u.dst.neighbour = __neigh_lookup(tbl, data, dev, 1); // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Ramon Casellas - GET/ENST/INFRES/RHD/A508 - cas...@in... |