tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

routing socket rouding?

I recently had occasion to figure out the routing socket interface.

There is a macro, historically ROUNDUP defined in various .c files,
RT_ROUNDUP in <net/route.h> in 5.1 and presumably later, which appears
to be designed around the undocumented (even in comments) assumption
that sizeof(long) is a power of two.

So, I'm curious: does anyone know what this macro turned into on a
system with sizeof(long) not a power of two but with anything like the
BSD routing socket, if such a system exists?

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index