Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/route.c
Show First 20 Lines • Show All 1,101 Lines • ▼ Show 20 Lines | if (rto == rt) { | ||||
/* | /* | ||||
* use the normal delete code to remove | * use the normal delete code to remove | ||||
* the first entry | * the first entry | ||||
*/ | */ | ||||
rn = rnh->rnh_deladdr(info->rti_info[RTAX_DST], | rn = rnh->rnh_deladdr(info->rti_info[RTAX_DST], | ||||
info->rti_info[RTAX_NETMASK], | info->rti_info[RTAX_NETMASK], | ||||
&rnh->head); | &rnh->head); | ||||
if (rn != NULL) { | |||||
*perror = 0; | *perror = 0; | ||||
} else { | |||||
*perror = ESRCH; | |||||
} | |||||
return (rn); | return (rn); | ||||
} | } | ||||
/* | /* | ||||
* if the entry is 2nd and on up | * if the entry is 2nd and on up | ||||
*/ | */ | ||||
if (rt_mpath_deldup(rto, rt) == 0) | if (rt_mpath_deldup(rto, rt) == 0) | ||||
panic ("rtrequest1: rt_mpath_deldup"); | panic ("rtrequest1: rt_mpath_deldup"); | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |