Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.h
Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Lines | |||||
void rt_table_destroy(struct rib_head *); | void rt_table_destroy(struct rib_head *); | ||||
u_int rt_tables_get_gen(uint32_t table, sa_family_t family); | u_int rt_tables_get_gen(uint32_t table, sa_family_t family); | ||||
struct sockaddr *rtsock_fix_netmask(const struct sockaddr *dst, | struct sockaddr *rtsock_fix_netmask(const struct sockaddr *dst, | ||||
const struct sockaddr *smask, struct sockaddr_storage *dmask); | const struct sockaddr *smask, struct sockaddr_storage *dmask); | ||||
void rt_updatemtu(struct ifnet *); | void rt_updatemtu(struct ifnet *); | ||||
void rt_flushifroutes_af(struct ifnet *, int); | |||||
void rt_flushifroutes(struct ifnet *ifp); | void rt_flushifroutes(struct ifnet *ifp); | ||||
/* XXX MRT NEW VERSIONS THAT USE FIBs | /* XXX MRT NEW VERSIONS THAT USE FIBs | ||||
* For now the protocol indepedent versions are the same as the AF_INET ones | * For now the protocol indepedent versions are the same as the AF_INET ones | ||||
* but this will change.. | * but this will change.. | ||||
*/ | */ | ||||
int rtioctl_fib(u_long, caddr_t, u_int); | int rtioctl_fib(u_long, caddr_t, u_int); | ||||
int rib_lookup_info(uint32_t, const struct sockaddr *, uint32_t, uint32_t, | int rib_lookup_info(uint32_t, const struct sockaddr *, uint32_t, uint32_t, | ||||
struct rt_addrinfo *); | struct rt_addrinfo *); | ||||
void rib_free_info(struct rt_addrinfo *info); | void rib_free_info(struct rt_addrinfo *info); | ||||
/* New API */ | /* New API */ | ||||
void rib_flush_routes_family(int family); | |||||
struct nhop_object *rib_lookup(uint32_t fibnum, const struct sockaddr *dst, | struct nhop_object *rib_lookup(uint32_t fibnum, const struct sockaddr *dst, | ||||
uint32_t flags, uint32_t flowid); | uint32_t flags, uint32_t flowid); | ||||
#endif | #endif | ||||
#endif | #endif |