[Xorp-users] Reducing Xorp binary setup size ?

Ben Greear greearb at candelatech.com
Fri Mar 12 20:36:41 PST 2010


On 03/12/2010 10:36 AM, Ben Greear wrote:
> While getting xorp.ct to compile on BSD, I noticed that
> much of the Netlink logic is compiled in (and dummied out in places)
> even when the OS doesn't use netlink.
>
> Likely some space can be gained by completely #ifdef'ing out fea
> logic that is not used on a particular platform...
>
> I'll poke into that more a bit later...

I added patches to my xorp.ct tree that disables CLICK by default,
(scons enable_click=yes turns it back on).

I also compiled out the table/route get/set logic that wasn't being used
for particular platforms.

All together, this decreased on-disk size by about 300k.

I compile every protocol, and my entire tree is under 18MB, so I imagine you
can cut it down quite a bit.

We could probably do other patches to selectively disable the rest of the protocols
to allow more options for building.

Thanks,
Ben

>
> Thanks,
> Ben
>


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-users mailing list