<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi, i'm writing a plugin for
knowing which host were elected as "gateway" by OLSR.<br>
<br>
I saw in the source code that OLSR uses the rtentry structure to set
the gateway (kernel_routes.c) but i didn't found any structure telling
me if a host is a gateway or not.<br>
In the "neighbor_entry" structure (neighbor_table.h) i.e. there's a
boolean "is_mpr", but no "is_gateway" :-)<br>
<br>
Is there's any way to know -from a plugin- which gateway was set? Or
shall I just parse the routing table?<br>
<br>
<br>
Thanks,<br>
   Piero, Italy<br>
</font>
</body>
</html>