Provide the IPv6 counterpart to the extended IPv4 rtalloc(9) KPI.
Sponsored by: Cisco Systems, Inc.
This commit is contained in:
parent
b680a383a8
commit
db566a23b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/multi-fibv6/head/; revision=230936
@ -445,3 +445,43 @@ in6_detachhead(void **head, int off)
|
||||
return (1);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Extended API for IPv6 FIB support.
|
||||
*/
|
||||
void
|
||||
in6_rtredirect(struct sockaddr *dst, struct sockaddr *gw, struct sockaddr *nm,
|
||||
int flags, struct sockaddr *src, u_int fibnum)
|
||||
{
|
||||
|
||||
rtredirect_fib(dst, gw, nm, flags, src, fibnum);
|
||||
}
|
||||
|
||||
int
|
||||
in6_rtrequest(int req, struct sockaddr *dst, struct sockaddr *gw,
|
||||
struct sockaddr *mask, int flags, struct rtentry **ret_nrt, u_int fibnum)
|
||||
{
|
||||
|
||||
return (rtrequest_fib(req, dst, gw, mask, flags, ret_nrt, fibnum));
|
||||
}
|
||||
|
||||
void
|
||||
in6_rtalloc(struct route_in6 *ro, u_int fibnum)
|
||||
{
|
||||
|
||||
rtalloc_ign_fib((struct route *)ro, 0ul, fibnum);
|
||||
}
|
||||
|
||||
void
|
||||
in6_rtalloc_ign(struct route_in6 *ro, u_long ignflags, u_int fibnum)
|
||||
{
|
||||
|
||||
rtalloc_ign_fib((struct route *)ro, ignflags, fibnum);
|
||||
}
|
||||
|
||||
struct rtentry *
|
||||
in6_rtalloc1(struct sockaddr *dst, int report, u_long ignflags, u_int fibnum)
|
||||
{
|
||||
|
||||
return (rtalloc1_fib(dst, report, ignflags, fibnum));
|
||||
}
|
||||
|
@ -792,6 +792,17 @@ void in6_ifaddloop(struct ifaddr *);
|
||||
|
||||
int in6_is_addr_deprecated __P((struct sockaddr_in6 *));
|
||||
int in6_src_ioctl __P((u_long, caddr_t));
|
||||
|
||||
/*
|
||||
* Extended API for IPv6 FIB support.
|
||||
*/
|
||||
void in6_rtredirect(struct sockaddr *, struct sockaddr *, struct sockaddr *,
|
||||
int, struct sockaddr *, u_int);
|
||||
int in6_rtrequest(int, struct sockaddr *, struct sockaddr *,
|
||||
struct sockaddr *, int, struct rtentry **, u_int);
|
||||
void in6_rtalloc(struct route_in6 *, u_int);
|
||||
void in6_rtalloc_ign(struct route_in6 *, u_long, u_int);
|
||||
struct rtentry *in6_rtalloc1(struct sockaddr *, int, u_long, u_int);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _NETINET6_IN6_VAR_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user