tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Changing the default subnet route.
Hi,
On Sat, Dec 13, 2008 at 7:06 PM, Roy Marples <roy%marples.name@localhost> wrote:
> Index: sys/netinet/in.c
> ===================================================================
> RCS file: /cvsroot/src/sys/netinet/in.c,v
> retrieving revision 1.128
> diff -u -p -r1.128 in.c
> --- sys/netinet/in.c 7 Nov 2008 00:20:18 -0000 1.128
> +++ sys/netinet/in.c 13 Dec 2008 23:56:43 -0000
> @@ -1006,6 +1006,11 @@ in_addprefix(struct in_ifaddr *target, i
> error = rtinit(&target->ia_ifa, RTM_ADD, flags);
> if (error == 0)
> target->ia_flags |= IFA_ROUTE;
> + else if (error == EEXIST)
> + /*
> + * the fact the route already exists is not an error.
> + */
> + error = 0;
> return error;
> }
Is there any reason this couldn't be special-cased from userland ?
From a quick view at the code, the error code is not critical in
in_ifinit(), and the only implication of the error is that
pfil_run_hooks() is not called in in_control().
Thanks
- Arnaud
Home |
Main Index |
Thread Index |
Old Index