ROUTE - access routing tables

Hi,

How do I access and modify the routing tables? The doco for ROUTE says how
to open the special socket, but is pretty vague about sending messages to
it.

To open the socket:
fd = socket (PF_ROUTE, SOCK_RAW, AF_UNSPEC);

How then do I compile, send and receive messages?

Regards