README for batman directory
David Rowe 18 October 2010

A patch to add several new debug modes:

1/ $ ./batmand -cd6

  [B.A.T.M.A.N. 0.3.2, MainIF/IP: wlan1/10.130.1.99, UT: 0d 0h11m]
  Originator    (#/255)     Nexthop     [outgoingIF] 
  10.130.1.40     (245)     10.130.1.40 [     wlan1]:
  10.130.1.1      (243)      10.130.1.1 [     wlan1]:
  10.130.1.10     (254)     10.130.1.10 [     wlan1]:
  10.130.1.30     (253)     10.130.1.30 [     wlan1]:
  10.130.1.250    (234)     10.130.1.40 [     wlan1]:

2/ $ ./batman -cd7

  [B.A.T.M.A.N. 0.3.2, MainIF/IP: wlan1/10.130.1.99, UT: 0d 0h 7m]
  Originator    (#/255)     Nexthop     [outgoingIF] 
  0   (10) 129 [     wlan1]: 129 (10)   1 ( 9)  10 ( 9)  40 ( 9)  30 ( 8) 199 ( 4) 
  129 (10) 129 [     wlan1]: 129 (10)  40 ( 9)   1 ( 9) 199 ( 4)  10 ( 9)  30 ( 8) 
  40  ( 9)  40 [     wlan1]:  40 ( 9)   1 ( 8)  10 ( 9) 129 ( 5)  30 ( 7) 199 ( 3) 
  199 ( 9)  10 [     wlan1]: 199 ( 4)  40 ( 8)   1 ( 8) 129 ( 4)  10 ( 9)  30 ( 8) 
  1   ( 9)   1 [     wlan1]:   1 ( 9) 129 ( 5)  30 ( 8)  10 ( 9)  40 ( 9) 199 ( 3) 
  10  (10)  10 [     wlan1]:  10 (10)   1 ( 8)  30 ( 8) 129 ( 4)  40 ( 9) 199 ( 4) 
  30  ( 9)  10 [     wlan1]:  30 ( 9)   1 ( 8) 129 ( 4)  40 ( 8)  10 ( 9) 199 ( 4) 

Notes:

1/ The debug output is generated in the file originator.c,
debug_orig() function.  The debug mode is sent from the batman
"client" to the batman "server" from the file init.c,
apply_init_args() function via a unix socket.

2/ The commands for testing Batman are:

  batman-0.3.2$ make
  batman-0.3.2$ sudo killall batmand
  batman-0.3.2$ sudo ./batmand -r1 --disable-client-nat  wlan1
  batman-0.3.2$ sudo ./batmand -cd1

