[Olsr-cvs] olsrd-current/src mpr_selector_set.c, 1.13, 1.14 mpr_selector_set.h, 1.12, 1.13
Andreas T�nnesen
(spam-protected)
Fri Dec 16 09:22:01 CET 2005
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7689
Modified Files:
mpr_selector_set.c mpr_selector_set.h
Log Message:
Added olsr_is_mpr function. Should have no impact on regular operation
Index: mpr_selector_set.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/mpr_selector_set.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** mpr_selector_set.h 29 May 2005 12:47:45 -0000 1.12
--- mpr_selector_set.h 16 Dec 2005 08:21:59 -0000 1.13
***************
*** 54,57 ****
--- 54,60 ----
+ olsr_bool
+ olsr_is_mpr(void);
+
olsr_u16_t
get_local_ansn(void);
Index: mpr_selector_set.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/mpr_selector_set.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** mpr_selector_set.c 27 Feb 2005 10:43:38 -0000 1.13
--- mpr_selector_set.c 16 Dec 2005 08:21:59 -0000 1.14
***************
*** 85,88 ****
--- 85,98 ----
/**
+ * Check if we(this node) is selected as a MPR by any
+ * neighbors. If the list is empty we are not MPR.
+ */
+ olsr_bool
+ olsr_is_mpr()
+ {
+ return ((mprs_list.next == &mprs_list) ? OLSR_FALSE : OLSR_TRUE);
+ }
+
+ /**
*Add a MPR selector to the MPR selector set
*
More information about the Olsr-cvs
mailing list