Re: PATCH for NET=n

Matti Aarnio (matti.aarnio@tele.fi)
Tue, 30 Dec 1997 19:58:18 +0200 (EET)


...
> Speaking of CONFIG_NET, small change is needed to compile kernel
> without net support.
>
> In file net/core/sock.c, #ifdef is needed around one case statement:
>
> case SO_BINDTODEVICE:
> ...
>
> in line 290 (at least in 2.1.76).
>
> Problems arise from ip_rt_put() and ip_route_output() functions, which
> appear as undefined in the last linking stage of kernel building.

Only the ip_route_output() needs conditionalizing.
The ip_rt_put() is a set of __inline__ routines, which
are just 1-2 statements long each.

> I'm leaving to more clever heads to decide what #ifdef to apply. :)
>
> Regards!
> --
> Posted by Zlatko Calusic E-mail: <Zlatko.Calusic@CARNet.hr>

/Matti Aarnio <matti.aarnio@tele.fi>