[Olsr-dev] IP and OLSR
Airton Ishimori
(spam-protected)
Sun May 15 19:38:12 CEST 2011
Saverio,
Thanks for your reply. I will look the mDNS implementation as you suggested.
And, I'm curious if I could to use the getsocktopt() function and pass to it
the IP_TOS
option to get the type of service information from ip header.
thanks,
---
scolfield
On Sun, May 15, 2011 at 14:10, ZioPRoTo (Saverio Proto)
<(spam-protected)>wrote:
> > I need to get the Type field (TCP or UDP) of the header of the Internet
> > Protocol (IP).
> > Have some example that how can I get this field from OLSR?
> > I want to get Type field of traffic packets on the network. I would like
> to
> > modify
> > or add this "knowledge" to OLSR.
>
> You need an extra socket to sniff the traffic packets and get the
> information out. A raw socket will do this job. You could implement
> this in a plugin.
>
> I suggest to look into the mDNS plugin code as an example
>
> regards
>
> Saverio
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20110515/ad854a55/attachment.html>
More information about the Olsr-dev
mailing list