summaryrefslogtreecommitdiff
path: root/sys/netinet/if_atm.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-19 06:37:39 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-19 06:37:39 +0000
commit70e4be3ea2932a4a2c3c8e85675ba6fe3eb8edcc (patch)
tree72015846dbf72703cf304b4efe000aafa7d8a2ca /sys/netinet/if_atm.c
parent1ec03c593543ff3451fb2102f094e2e24f111e46 (diff)
pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).
have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument. pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest. 3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr * (almost noone is using it anyways). benefit: the follwoing command now works. previously we need two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *. it was introduced by 4.3BSD-reno and never corrected. XXX is eon_rtrequest() change correct regarding to 3rd arg? eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno, so i do not have correct answer in the source code. someone with more clue about netiso-over-ip, please help.
Diffstat (limited to 'sys/netinet/if_atm.c')
-rw-r--r--sys/netinet/if_atm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/if_atm.c b/sys/netinet/if_atm.c
index a8022fabcf0..aec9db09c58 100644
--- a/sys/netinet/if_atm.c
+++ b/sys/netinet/if_atm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atm.c,v 1.7 1999/12/08 06:50:18 itojun Exp $ */
+/* $OpenBSD: if_atm.c,v 1.8 2001/01/19 06:37:37 itojun Exp $ */
/*
*
@@ -76,10 +76,10 @@
*/
void
-atm_rtrequest(req, rt, sa)
+atm_rtrequest(req, rt, info)
int req;
register struct rtentry *rt;
- struct sockaddr *sa;
+ struct rt_addrinfo *info;
{
register struct sockaddr *gate = rt->rt_gateway;
struct atm_pseudoioctl api;