2 * OLSR ad-hoc routing table management protocol
3 * Copyright (C) 2004 Thomas Lopatic (thomas@lopatic.de)
5 * This file is part of the olsr.org OLSR daemon.
7 * olsr.org is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * olsr.org is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with olsr.org; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * $Id: lq_packet.h,v 1.2 2004/11/05 20:58:10 tlopatic Exp $
26 #define LQ_HELLO_MESSAGE 5
27 #define LQ_TC_MESSAGE 6
29 // deserialized OLSR header
36 union olsr_ip_addr orig;
42 // serialized IPv4 OLSR header
55 // serialized IPv6 OLSR header
62 unsigned char orig[16];
68 // deserialized LQ_HELLO
70 struct lq_hello_neighbor
75 double neigh_link_quality;
76 union olsr_ip_addr addr;
77 struct lq_hello_neighbor *next;
80 struct lq_hello_message
82 struct olsr_common comm;
85 struct lq_hello_neighbor *neigh;
88 // serialized LQ_HELLO
90 struct lq_hello_info_header
97 struct lq_hello_header
104 // deserialized LQ_TC
106 struct lq_tc_neighbor
109 union olsr_ip_addr main;
110 struct lq_tc_neighbor *next;
115 struct olsr_common comm;
116 union olsr_ip_addr from;
118 struct lq_tc_neighbor *neigh;
129 void olsr_output_lq_hello(void *para);
131 void olsr_output_lq_tc(void *para);
133 void olsr_input_lq_hello(union olsr_message *ser, struct interface *inif,
134 union olsr_ip_addr *from);
136 void olsr_input_lq_tc(union olsr_message *ser, struct interface *inif,
137 union olsr_ip_addr *from);