batctl: Merge differences between v2010.0.0
PATCH 1/1 batctl: Merge differences between v2010.0.0
batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl.
--- batctl/Makefile | 2 +- batctl/README | 79 ++++++++++++++++++++++++++- batctl/allocate.h | 2 +- batctl/bat-hosts.c | 2 +- batctl/bat-hosts.h | 2 +- batctl/bisect.c | 2 +- batctl/bisect.h | 2 +- batctl/debug.c | 2 +- batctl/functions.c | 4 +- batctl/functions.h | 3 +- batctl/main.c | 2 +- batctl/main.h | 2 +- batctl/man/batctl.8 | 150 ++++++++++++++++++++------------------------------ batctl/ping.c | 2 +- batctl/ping.h | 2 +- batctl/tcpdump.c | 2 +- batctl/tcpdump.h | 2 +- batctl/traceroute.c | 2 +- batctl/traceroute.h | 2 +- batctl/vis.c | 4 +- batctl/vis.h | 4 +- batman/hash.c | 2 +- batman/hash.h | 2 +- batman/list-batman.c | 2 +- batman/list-batman.h | 2 +- 25 files changed, 166 insertions(+), 116 deletions(-)
batctl/Makefile +1 -1
@@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 BATMAN contributors +# Copyright (C) 2006-2010 BATMAN contributors # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public
batctl/README +78 -1
89 lines not on this page · raw message
batctl/allocate.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/bat-hosts.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/bat-hosts.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/bisect.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/bisect.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/debug.c +1 -1
@@ -100,4 +100,4 @@ int handle_debug_table(int argc, char **argv, char *file_path, void table_usage(debugfs_make_path (DEBUG_BATIF_PATH "/" , full_path,sizeof (full_path));return read_file (full_path, file_path, read_opt); -} +}
batctl/functions.c +2 -2
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
@@ -99,7 +99,7 @@ char *get_name_by_macstr(char *mac_str, int read_opt)return get_name_by_macaddr (mac_addr, read_opt); } -int check_proc_dir (char *dir) +static int check_proc_dir (char *dir) {struct stat st;
batctl/functions.h +1 -2
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
@@ -35,7 +35,6 @@ char *get_name_by_macaddr(struct ether_addr *mac_addr, int read_opt);char *get_name_by_macstr (char *mac_str,int read_opt);int read_file (char *dir,char *path,int read_opt);int write_file (char *dir,char *fname,char *arg1,char *arg2); -int check_proc_dir (char *dir);char *strchr_anyof (const char *s,const char *n);extern char *line_ptr;
batctl/main.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/main.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/man/batctl.8 +60 -90
182 lines not on this page · raw message
batctl/ping.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/ping.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/tcpdump.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]> *
batctl/tcpdump.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/traceroute.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/traceroute.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/vis.c +3 -1
@@ -1,4 +1,6 @@ -/* Copyright (C) 2009 B.A.T.M.A.N. contributors: +/* +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: +* * Andrew Lunn <[email protected]> * * This program is free software; you can redistribute it and/or
batctl/vis.h +3 -1
@@ -1,4 +1,6 @@ -/* Copyright (C) 2009 B.A.T.M.A.N. contributors: +/* +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: +* * Andrew Lunn <[email protected]> * * This program is free software; you can redistribute it and/or
batman/hash.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
batman/hash.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
batman/list-batman.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Marek Lindner *
batman/list-batman.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Marek Lindner *
Signature · 1 line
1.7.1
Quoted 7 lines · Sven Eckelmann
batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl.
Signed-off-by Sven Eckelmann <[email protected]>---
It seems that some changes from maint and master must be merged by hand. I will send an updated patch later.
Best regards,
Sven
PATCH v2 1/1 batctl: Merge differences between v2010.0.0
batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl.
--- batctl/Makefile | 2 +- batctl/README | 79 +++++++++++++++++++++++++++++++++++++++++++++++++- batctl/allocate.h | 2 +- batctl/bat-hosts.c | 2 +- batctl/bat-hosts.h | 2 +- batctl/bisect.c | 2 +- batctl/bisect.h | 2 +- batctl/debug.c | 2 +- batctl/functions.c | 4 +- batctl/functions.h | 3 +- batctl/main.c | 2 +- batctl/main.h | 2 +- batctl/man/batctl.8 | 10 +++--- batctl/ping.c | 2 +- batctl/ping.h | 2 +- batctl/tcpdump.c | 2 +- batctl/tcpdump.h | 2 +- batctl/traceroute.c | 2 +- batctl/traceroute.h | 2 +- batctl/vis.c | 4 ++- batctl/vis.h | 4 ++- batman/hash.c | 2 +- batman/hash.h | 2 +- batman/list-batman.c | 2 +- batman/list-batman.h | 2 +- 25 files changed, 111 insertions(+), 31 deletions(-)
batctl/Makefile +1 -1
@@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 BATMAN contributors +# Copyright (C) 2006-2010 BATMAN contributors # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public
batctl/README +78 -1
89 lines not on this page · raw message
batctl/allocate.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/bat-hosts.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/bat-hosts.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/bisect.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/bisect.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/debug.c +1 -1
@@ -100,4 +100,4 @@ int handle_debug_table(int argc, char **argv, char *file_path, void table_usage(debugfs_make_path (DEBUG_BATIF_PATH "/" , full_path,sizeof (full_path));return read_file (full_path, file_path, read_opt); -} +}
batctl/functions.c +2 -2
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
@@ -99,7 +99,7 @@ char *get_name_by_macstr(char *mac_str, int read_opt)return get_name_by_macaddr (mac_addr, read_opt); } -int check_proc_dir (char *dir) +static int check_proc_dir (char *dir) {struct stat st;
batctl/functions.h +1 -2
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
@@ -35,7 +35,6 @@ char *get_name_by_macaddr(struct ether_addr *mac_addr, int read_opt);char *get_name_by_macstr (char *mac_str,int read_opt);int read_file (char *dir,char *path,int read_opt);int write_file (char *dir,char *fname,char *arg1,char *arg2); -int check_proc_dir (char *dir);char *strchr_anyof (const char *s,const char *n);extern char *line_ptr;
batctl/main.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/main.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/man/batctl.8 +5 -5
@@ -56,16 +56,16 @@ protocol. .IP "\fBinterface\fP|\fBif\fP [\fBadd\fP|\fBdel iface(s)\fP]" If no parameter is given or the first parameter is neither "add" nor "del" the current interface settings are displayed. In order to add or delete interfaces specify "add" or "del" as first argument and append the interface names you wish to add or delete. .br -.IP "\fBoriginators\fP|\fBo\fP [\fB\-b\fP][\fB\-n\fP]" +.IP "\fBoriginators\fP|\fBo\fP [\fB\-w\fP][\fB\-n\fP]" Once started batctl will display the list of announced gateways in the network. Use the "\-w" option to let batctl refresh the list every second. If "\-n" is given batctl will not replace the MAC addresses with bat\-host names in the output. .br .IP "\fBinterval\fP|\fBit\fP [\fBorig_interval\fP]" If no parameter is given the current originator interval setting is displayed otherwise the parameter is used to set the originator interval. The interval is in units of milliseconds. .br .IP "\fBloglevel\fP|\fBll\fP [\fBlevel\fP]" -If no parameter is given the current log level settings are displayed otherwise the parameter is used to set the log level. Level 0 disables all logging. Level 1 enables messages related to routing / flooding / broadcasting. Level 2 enables messages related to route or hna added / changed / deleted. Level 3 enables all messages. The messages are sent to the kernel log. Use \fBdmesg\fP(1) to see them. Make sure to have debugging output enabled when compiling the module otherwise the output as well as the loglevel options won't be available. +If no parameter is given the current log level settings are displayed otherwise the parameter is used to set the log level. Level 0 disables all verbose logging. Level 1 enables messages related to routing / flooding / broadcasting. Level 2 enables messages related to route or hna added / changed / deleted. Level 3 enables all messages. The messages are sent to the kernel log. Use \fBdmesg\fP(1) to see them. Make sure to have debugging output enabled when compiling the module otherwise the output as well as the loglevel options won't be available. .br -.IP "\fBlog\fP|\fBl\fP [\fBlogfile\fP][\fB\-b\fP][\fB\-n\fP]\fP" +.IP "\fBlog\fP|\fBl\fP [\fBlogfile\fP][\fB\-w\fP][\fB\-n\fP]\fP" batctl will read the file logfile, or stdin if the logfile parameter is not given, applying filtering so only the B.A.T.M.A.N. Advanced messages are displayed. Once the end of the file has been reached batctl will exit unless the option "\-w" was specified which causes batctl to continue reading the file and print log output whenever new log data has been appended to the file. .br .IP "\fBgw_mode|gw\fP [\fBoff\fP|\fBclient\fP|\fBserver\fP] [\fBgw_class\fP]\fP"
@@ -114,10 +114,10 @@ chooses the gateway with the best link quality but switches to another gateway a Once started batctl will display the list of announced gateways in the network. Use the "\-w" option to let batctl refresh the list every second. If "\-n" was given batctl will not replace the mac addresses with bat\-host names in the output. .br .IP "\fBtranslocal\fP|\fBtl\fP [\fB\-w\fP][\fB\-n\fP]" -Display the local translation table. batctl will refresh the displayed table every second if the "\-w" option was given. Use "\-n" to let batctl not replace the MAC addresses with bat\-host names in the output. +Display the local translation table. batctl will refresh the list every second if the "\-w" option was given. Use "\-n" to let batctl not replace the MAC addresses with bat\-host names in the output. .br .IP "\fBtransglobal\fP|\fBtg\fP [\fB\-w\fP][\fB\-n\fP]" -Display the global translation table. batctl will refresh the displayed table every second if the "\-w" option was given. Use "\-n" to let batctl not replace the MAC addresses with bat\-host names in the output. +Display the global translation table. batctl will refresh the list every second if the "\-w" option was given. Use "\-n" to let batctl not replace the MAC addresses with bat\-host names in the output. .br .IP "\fBvis_mode|vm\fP [\fBmode\fP]\fP" If no parameter is given the current vis mode is displayed otherwise the parameter is used to set the vis mode.
batctl/ping.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/ping.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/tcpdump.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]> *
batctl/tcpdump.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/traceroute.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2007-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * Andreas Langer <[email protected]>, Marek Lindner <[email protected]> *
batctl/traceroute.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]> *
batctl/vis.c +3 -1
@@ -1,4 +1,6 @@ -/* Copyright (C) 2009 B.A.T.M.A.N. contributors: +/* +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: +* * Andrew Lunn <[email protected]> * * This program is free software; you can redistribute it and/or
batctl/vis.h +3 -1
@@ -1,4 +1,6 @@ -/* Copyright (C) 2009 B.A.T.M.A.N. contributors: +/* +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: +* * Andrew Lunn <[email protected]> * * This program is free software; you can redistribute it and/or
batman/hash.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
batman/hash.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
batman/list-batman.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Marek Lindner *
batman/list-batman.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2006-2009 B.A.T.M.A.N. contributors: +* Copyright (C) 2006-2010 B.A.T.M.A.N. contributors: * * Marek Lindner *
Signature · 1 line
1.7.1
Quoted 4 lines · On Sunday 20 June 2010 22:49:52 Sven Eckelmann wrote:
batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl.
Has been applied in revision 1715.
Thanks,
Marek