version 1.86, 2007/02/17 22:34:10 |
version 1.87, 2007/03/04 06:03:18 |
Line 293 rtalloc1(const struct sockaddr *dst, int |
|
Line 293 rtalloc1(const struct sockaddr *dst, int |
|
} else { |
} else { |
rtstat.rts_unreach++; |
rtstat.rts_unreach++; |
miss: if (report) { |
miss: if (report) { |
memset((caddr_t)&info, 0, sizeof(info)); |
memset((void *)&info, 0, sizeof(info)); |
info.rti_info[RTAX_DST] = dst; |
info.rti_info[RTAX_DST] = dst; |
rt_missmsg(msgtype, &info, 0, err); |
rt_missmsg(msgtype, &info, 0, err); |
} |
} |
|
|
rtstat.rts_badredirect++; |
rtstat.rts_badredirect++; |
else if (stat != NULL) |
else if (stat != NULL) |
(*stat)++; |
(*stat)++; |
memset((caddr_t)&info, 0, sizeof(info)); |
memset((void *)&info, 0, sizeof(info)); |
info.rti_info[RTAX_DST] = dst; |
info.rti_info[RTAX_DST] = dst; |
info.rti_info[RTAX_GATEWAY] = gateway; |
info.rti_info[RTAX_GATEWAY] = gateway; |
info.rti_info[RTAX_NETMASK] = netmask; |
info.rti_info[RTAX_NETMASK] = netmask; |
Line 463 rtdeletemsg(struct rtentry *rt) |
|
Line 463 rtdeletemsg(struct rtentry *rt) |
|
* deleted. That will allow the information being reported to |
* deleted. That will allow the information being reported to |
* be accurate (and consistent with route_output()). |
* be accurate (and consistent with route_output()). |
*/ |
*/ |
memset((caddr_t)&info, 0, sizeof(info)); |
memset((void *)&info, 0, sizeof(info)); |
info.rti_info[RTAX_DST] = rt_key(rt); |
info.rti_info[RTAX_DST] = rt_key(rt); |
info.rti_info[RTAX_NETMASK] = rt_mask(rt); |
info.rti_info[RTAX_NETMASK] = rt_mask(rt); |
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; |
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; |
Line 509 rtflushclone(struct radix_node_head *rnh |
|
Line 509 rtflushclone(struct radix_node_head *rnh |
|
* Routing table ioctl interface. |
* Routing table ioctl interface. |
*/ |
*/ |
int |
int |
rtioctl(u_long req, caddr_t data, struct lwp *l) |
rtioctl(u_long req, void *data, struct lwp *l) |
{ |
{ |
return (EOPNOTSUPP); |
return (EOPNOTSUPP); |
} |
} |
Line 761 rt_setgate( struct rtentry *rt0, const s |
|
Line 761 rt_setgate( struct rtentry *rt0, const s |
|
struct rtentry *rt = rt0; |
struct rtentry *rt = rt0; |
|
|
if (rt->rt_gateway == NULL || glen > ROUNDUP(rt->rt_gateway->sa_len)) { |
if (rt->rt_gateway == NULL || glen > ROUNDUP(rt->rt_gateway->sa_len)) { |
old = (caddr_t)rt_key(rt); |
old = (void *)rt_key(rt); |
R_Malloc(new, caddr_t, dlen + glen); |
R_Malloc(new, void *, dlen + glen); |
if (new == NULL) |
if (new == NULL) |
return 1; |
return 1; |
Bzero(new, dlen + glen); |
Bzero(new, dlen + glen); |