#include "plugin.h"#include "duplicate_set.h"#include "parser.h"

Go to the source code of this file.
Defines | |
| #define | MESSAGE_TYPE 132 |
| #define | PARSER_TYPE MESSAGE_TYPE |
| #define | EMISSION_INTERVAL 10 |
| #define | EMISSION_JITTER 25 |
| #define | MDNS_VALID_TIME 1800 |
| #define | PLUGIN_NAME "OLSRD MDNS plugin" |
| #define | PLUGIN_NAME_SHORT "OLSRD MDNS" |
| #define | PLUGIN_VERSION "1.0.0 (" __DATE__ " " __TIME__ ")" |
| #define | PLUGIN_COPYRIGHT " (C) Ninux.org" |
| #define | PLUGIN_AUTHOR " Saverio Proto (zioproto@gmail.com)" |
| #define | MOD_DESC PLUGIN_NAME " " PLUGIN_VERSION "\n" PLUGIN_COPYRIGHT "\n" PLUGIN_AUTHOR |
| #define | PLUGIN_INTERFACE_VERSION 5 |
Functions | |
| void | DoMDNS (int sd, void *x, unsigned int y) |
| void | BmfPError (const char *format,...) __attribute__((format(printf |
| void union olsr_ip_addr * | MainAddressOf (union olsr_ip_addr *ip) |
| int | InitMDNS (struct interface *skipThisIntf) |
| void | CloseMDNS (void) |
| void | olsr_mdns_gen (unsigned char *packet, int len) |
| void | olsr_parser (struct olsr_message *, struct interface *, union olsr_ip_addr *, enum duplicate_status) |
| #define EMISSION_JITTER 25 |
Definition at line 53 of file mdns.h.
Referenced by name_init().
| #define MDNS_VALID_TIME 1800 |
Definition at line 54 of file mdns.h.
Referenced by olsr_mdns_gen().
| #define MESSAGE_TYPE 132 |
Definition at line 50 of file mdns.h.
Referenced by add_signature(), olsr_mdns_gen(), olsr_namesvc_gen(), olsr_obamp_gen(), olsr_parser(), and validate_packet().
| #define MOD_DESC PLUGIN_NAME " " PLUGIN_VERSION "\n" PLUGIN_COPYRIGHT "\n" PLUGIN_AUTHOR |
| #define PARSER_TYPE MESSAGE_TYPE |
Definition at line 51 of file mdns.h.
Referenced by InitMDNS(), InitOBAMP(), and name_init().
| void BmfPError | ( | const char * | format, | |
| ... | ||||
| ) |
| void CloseMDNS | ( | void | ) |
Definition at line 465 of file mdns.c.
References CloseBmfNetworkInterfaces().
Referenced by olsr_plugin_exit().

| void DoMDNS | ( | int | sd, | |
| void * | x, | |||
| unsigned int | y | |||
| ) |
| int InitMDNS | ( | struct interface * | skipThisIntf | ) |
Definition at line 444 of file mdns.c.
References CreateBmfNetworkInterfaces(), olsr_parser(), olsr_parser_add_function(), and PARSER_TYPE.
Referenced by olsrd_plugin_init().

| void union olsr_ip_addr* MainAddressOf | ( | union olsr_ip_addr * | ip | ) | [write] |
| void olsr_mdns_gen | ( | unsigned char * | packet, | |
| int | len | |||
| ) |
Definition at line 180 of file mdns.c.
References get_msg_seqno(), olsr_message::hopcnt, ifn, MAX_TTL, MDNS_VALID_TIME, MESSAGE_TYPE, MSEC_PER_SEC, my_MDNS_TTL, net_outbuffer_push(), net_output(), olsr_cnf, OLSR_FOR_ALL_INTERFACES, olsr_put_msg_hdr(), olsr_message::originator, pkt_put_u16(), olsr_config::router_id, olsr_message::seqno, olsr_message::size, olsr_message::ttl, olsr_message::type, and olsr_message::vtime.
Referenced by BmfPacketCaptured().

| void olsr_parser | ( | struct olsr_message * | , | |
| struct interface * | , | |||
| union olsr_ip_addr * | , | |||
| enum | duplicate_status | |||
| ) |
1.6.3