Name of failed tests
====================
checkpatch master Makefile
checkpatch master Makefile.kbuild
checkpatch master bat_algo.h
checkpatch master bat_iv_ogm.c
checkpatch master bitarray.c
checkpatch master bitarray.h
checkpatch master bridge_loop_avoidance.c
checkpatch master bridge_loop_avoidance.h
checkpatch master debugfs.c
checkpatch master debugfs.h
checkpatch master distributed-arp-table.c
checkpatch master distributed-arp-table.h
checkpatch master fragmentation.c
checkpatch master fragmentation.h
checkpatch master gateway_client.c
checkpatch master gateway_client.h
checkpatch master gateway_common.c
checkpatch master gateway_common.h
checkpatch master hard-interface.c
checkpatch master hard-interface.h
checkpatch master hash.c
checkpatch master hash.h
checkpatch master icmp_socket.c
checkpatch master icmp_socket.h
checkpatch master main.c
checkpatch master main.h
checkpatch master network-coding.c
checkpatch master network-coding.h
checkpatch master originator.c
checkpatch master originator.h
checkpatch master packet.h
checkpatch master routing.c
checkpatch master routing.h
checkpatch master send.c
checkpatch master send.h
checkpatch master soft-interface.c
checkpatch master soft-interface.h
checkpatch master sysfs.c
checkpatch master sysfs.h
checkpatch master translation-table.c
checkpatch master translation-table.h
checkpatch master types.h
checkpatch next Makefile
checkpatch next Makefile.kbuild
checkpatch next bat_algo.h
checkpatch next bat_iv_ogm.c
checkpatch next bitarray.c
checkpatch next bitarray.h
checkpatch next bridge_loop_avoidance.c
checkpatch next bridge_loop_avoidance.h
checkpatch next debugfs.c
checkpatch next debugfs.h
checkpatch next distributed-arp-table.c
checkpatch next distributed-arp-table.h
checkpatch next fragmentation.c
checkpatch next fragmentation.h
checkpatch next gateway_client.c
checkpatch next gateway_client.h
checkpatch next gateway_common.c
checkpatch next gateway_common.h
checkpatch next hard-interface.c
checkpatch next hard-interface.h
checkpatch next hash.c
checkpatch next hash.h
checkpatch next icmp_socket.c
checkpatch next icmp_socket.h
checkpatch next main.c
checkpatch next main.h
checkpatch next network-coding.c
checkpatch next network-coding.h
checkpatch next originator.c
checkpatch next originator.h
checkpatch next packet.h
checkpatch next routing.c
checkpatch next routing.h
checkpatch next send.c
checkpatch next send.h
checkpatch next soft-interface.c
checkpatch next soft-interface.h
checkpatch next sysfs.c
checkpatch next sysfs.h
checkpatch next translation-table.c
checkpatch next translation-table.h
checkpatch next types.h
Output of different failed tests
================================
checkpatch master routing.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: routing.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: routing.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: routing.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1229 lines checked
checkpatch next Makefile:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: Makefile:15:
+# You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: Makefile:16:
+# along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#17: FILE: Makefile:17:
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 66 lines checked
checkpatch next Makefile.kbuild:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: Makefile.kbuild:15:
+# You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: Makefile.kbuild:16:
+# along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#17: FILE: Makefile.kbuild:17:
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 40 lines checked
checkpatch next bat_algo.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: bat_algo.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: bat_algo.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: bat_algo.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 25 lines checked
checkpatch next bat_iv_ogm.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: bat_iv_ogm.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: bat_iv_ogm.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: bat_iv_ogm.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1673 lines checked
checkpatch next bitarray.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: bitarray.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: bitarray.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: bitarray.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 95 lines checked
checkpatch next bitarray.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: bitarray.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: bitarray.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: bitarray.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 54 lines checked
checkpatch next bridge_loop_avoidance.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: bridge_loop_avoidance.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: bridge_loop_avoidance.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: bridge_loop_avoidance.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1694 lines checked
checkpatch next bridge_loop_avoidance.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: bridge_loop_avoidance.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: bridge_loop_avoidance.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: bridge_loop_avoidance.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 110 lines checked
checkpatch next debugfs.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: debugfs.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: debugfs.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: debugfs.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 465 lines checked
checkpatch next debugfs.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: debugfs.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: debugfs.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: debugfs.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 30 lines checked
checkpatch next distributed-arp-table.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: distributed-arp-table.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: distributed-arp-table.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: distributed-arp-table.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1198 lines checked
checkpatch next distributed-arp-table.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: distributed-arp-table.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: distributed-arp-table.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: distributed-arp-table.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 172 lines checked
checkpatch next fragmentation.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: fragmentation.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: fragmentation.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: fragmentation.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 491 lines checked
checkpatch next fragmentation.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: fragmentation.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: fragmentation.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: fragmentation.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 50 lines checked
checkpatch next gateway_client.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: gateway_client.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: gateway_client.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: gateway_client.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 821 lines checked
checkpatch next gateway_client.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: gateway_client.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: gateway_client.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: gateway_client.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 40 lines checked
checkpatch next gateway_common.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: gateway_common.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: gateway_common.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: gateway_common.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 243 lines checked
checkpatch next gateway_common.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: gateway_common.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: gateway_common.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: gateway_common.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 49 lines checked
checkpatch next hard-interface.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: hard-interface.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: hard-interface.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: hard-interface.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 696 lines checked
checkpatch next hard-interface.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: hard-interface.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: hard-interface.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: hard-interface.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 81 lines checked
checkpatch next hash.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: hash.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: hash.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: hash.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 78 lines checked
checkpatch next hash.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: hash.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: hash.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: hash.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 189 lines checked
checkpatch next icmp_socket.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: icmp_socket.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: icmp_socket.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: icmp_socket.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 385 lines checked
checkpatch next icmp_socket.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: icmp_socket.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: icmp_socket.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: icmp_socket.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 30 lines checked
checkpatch next main.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: main.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: main.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: main.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1214 lines checked
checkpatch next main.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: main.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: main.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: main.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 374 lines checked
checkpatch next network-coding.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: network-coding.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: network-coding.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: network-coding.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1905 lines checked
checkpatch next network-coding.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: network-coding.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: network-coding.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: network-coding.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 132 lines checked
checkpatch next originator.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: originator.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: originator.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: originator.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 632 lines checked
checkpatch next originator.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: originator.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: originator.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: originator.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 106 lines checked
checkpatch next packet.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: packet.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: packet.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: packet.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 444 lines checked
checkpatch next routing.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: routing.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: routing.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: routing.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1227 lines checked
checkpatch next routing.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: routing.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: routing.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: routing.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 61 lines checked
checkpatch next send.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: send.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: send.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: send.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 622 lines checked
checkpatch next send.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: send.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: send.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: send.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 91 lines checked
checkpatch next soft-interface.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: soft-interface.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: soft-interface.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: soft-interface.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1027 lines checked
checkpatch next soft-interface.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: soft-interface.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: soft-interface.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: soft-interface.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 36 lines checked
checkpatch next sysfs.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: sysfs.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: sysfs.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: sysfs.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 850 lines checked
checkpatch next sysfs.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: sysfs.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: sysfs.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: sysfs.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 52 lines checked
checkpatch next translation-table.c:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: translation-table.c:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: translation-table.c:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: translation-table.c:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 3567 lines checked
checkpatch next translation-table.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: translation-table.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: translation-table.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: translation-table.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 54 lines checked
checkpatch next types.h:
>>>>>>>>
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#14: FILE: types.h:14:
+ * You should have received a copy of the GNU General Public License$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#15: FILE: types.h:15:
+ * along with this program; if not, write to the Free Software$
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.
#16: FILE: types.h:16:
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA$
total: 0 errors, 0 warnings, 3 checks, 1133 lines checked
The following commit has been merged in the master branch:
commit 3c4f7ab60cc21e8fc65b234f3a6174fc19a93fee
Author: Antonio Quartulli <antonio(a)open-mesh.com>
Date: Sun Oct 13 02:50:19 2013 +0200
batman-adv: improve the TT component to support runtime flag changes
Some flags (i.e. the WIFI flag) may change after that the
related client has already been announced. However it is
useful to informa the rest of the network about this change.
Add a runtime-flag-switch detection mechanism and
re-announce the related TT entry to advertise the new flag
value.
This mechanism can be easily exploited by future flags that
may need the same treatment.
Signed-off-by: Antonio Quartulli <antonio(a)open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner(a)neomailbox.ch>
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index b0fe177..267780f 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -358,6 +358,13 @@ static void batadv_tt_local_event(struct batadv_priv *bat_priv,
goto del;
if (del_op_requested && !del_op_entry)
goto del;
+
+ /* this is a second add in the same originator interval. It
+ * means that flags have been changed: update them!
+ */
+ if (!del_op_requested && !del_op_entry)
+ entry->change.flags = flags;
+
continue;
del:
list_del(&entry->list);
@@ -482,6 +489,7 @@ bool batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr,
struct batadv_tt_orig_list_entry *orig_entry;
int hash_added, table_size, packet_size_max;
bool ret = false, roamed_back = false;
+ uint8_t remote_flags;
if (ifindex != BATADV_NULL_IFINDEX)
in_dev = dev_get_by_index(&init_net, ifindex);
@@ -596,8 +604,23 @@ check_roaming:
}
}
- ret = true;
+ /* store the current remote flags before altering them. This helps
+ * understanding is flags are changing or not
+ */
+ remote_flags = tt_local->common.flags & BATADV_TT_REMOTE_MASK;
+
+ if (batadv_is_wifi_netdev(in_dev))
+ tt_local->common.flags |= BATADV_TT_CLIENT_WIFI;
+ else
+ tt_local->common.flags &= ~BATADV_TT_CLIENT_WIFI;
+ /* if any "dynamic" flag has been modified, resend an ADD event for this
+ * entry so that all the nodes can get the new flags
+ */
+ if (remote_flags ^ (tt_local->common.flags & BATADV_TT_REMOTE_MASK))
+ batadv_tt_local_event(bat_priv, tt_local, BATADV_NO_FLAGS);
+
+ ret = true;
out:
if (in_dev)
dev_put(in_dev);
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index 04b6b0b..61297b6 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -36,6 +36,12 @@
#endif /* CONFIG_BATMAN_ADV_DAT */
/**
+ * BATADV_TT_REMOTE_MASK - bitmask selecting the flags that are sent over the
+ * wire only
+ */
+#define BATADV_TT_REMOTE_MASK 0x00FF
+
+/**
* struct batadv_hard_iface_bat_iv - per hard interface B.A.T.M.A.N. IV data
* @ogm_buff: buffer holding the OGM packet
* @ogm_buff_len: length of the OGM packet buffer
--
LinuxNextTracking
The following commit has been merged in the master branch:
commit 0eb01568f0b78f482eb2fd91d01e9eab344933aa
Author: Antonio Quartulli <antonio(a)open-mesh.com>
Date: Sun Oct 13 02:50:20 2013 +0200
batman-adv: include the sync-flags when compute the global/local table CRC
Flags covered by TT_SYNC_MASK are kept in sync among the
nodes in the network and therefore they have to be
considered while computing the global/local table CRC.
In this way a generic originator is able to understand if
its table contains the correct flags or not.
Bits from 4 to 7 in the TT flags fields are now reserved for
"synchronized" flags only.
This allows future developers to add more flags of this type
without breaking compatibility.
It's important to note that not all the remote TT flags are
synchronised. This comes from the fact that some flags are
used to inject an information once only.
Signed-off-by: Antonio Quartulli <antonio(a)open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner(a)neomailbox.ch>
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h
index 9fbcaac..843b96a 100644
--- a/net/batman-adv/packet.h
+++ b/net/batman-adv/packet.h
@@ -110,12 +110,13 @@ enum batadv_tt_data_flags {
/* BATADV_TT_CLIENT flags.
* Flags from BIT(0) to BIT(7) are sent on the wire, while flags from BIT(8) to
- * BIT(15) are used for local computation only
+ * BIT(15) are used for local computation only.
+ * Flags from BIT(4) to BIT(7) are kept in sync with the rest of the network.
*/
enum batadv_tt_client_flags {
BATADV_TT_CLIENT_DEL = BIT(0),
BATADV_TT_CLIENT_ROAM = BIT(1),
- BATADV_TT_CLIENT_WIFI = BIT(2),
+ BATADV_TT_CLIENT_WIFI = BIT(4),
BATADV_TT_CLIENT_NOPURGE = BIT(8),
BATADV_TT_CLIENT_NEW = BIT(9),
BATADV_TT_CLIENT_PENDING = BIT(10),
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 267780f..4add57d 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -1959,6 +1959,7 @@ static uint32_t batadv_tt_global_crc(struct batadv_priv *bat_priv,
struct batadv_tt_global_entry *tt_global;
struct hlist_head *head;
uint32_t i, crc_tmp, crc = 0;
+ uint8_t flags;
for (i = 0; i < hash->size; i++) {
head = &hash->table[i];
@@ -1997,6 +1998,13 @@ static uint32_t batadv_tt_global_crc(struct batadv_priv *bat_priv,
crc_tmp = crc32c(0, &tt_common->vid,
sizeof(tt_common->vid));
+
+ /* compute the CRC on flags that have to be kept in sync
+ * among nodes
+ */
+ flags = tt_common->flags & BATADV_TT_SYNC_MASK;
+ crc_tmp = crc32c(crc_tmp, &flags, sizeof(flags));
+
crc ^= crc32c(crc_tmp, tt_common->addr, ETH_ALEN);
}
rcu_read_unlock();
@@ -2022,6 +2030,7 @@ static uint32_t batadv_tt_local_crc(struct batadv_priv *bat_priv,
struct batadv_tt_common_entry *tt_common;
struct hlist_head *head;
uint32_t i, crc_tmp, crc = 0;
+ uint8_t flags;
for (i = 0; i < hash->size; i++) {
head = &hash->table[i];
@@ -2042,6 +2051,13 @@ static uint32_t batadv_tt_local_crc(struct batadv_priv *bat_priv,
crc_tmp = crc32c(0, &tt_common->vid,
sizeof(tt_common->vid));
+
+ /* compute the CRC on flags that have to be kept in sync
+ * among nodes
+ */
+ flags = tt_common->flags & BATADV_TT_SYNC_MASK;
+ crc_tmp = crc32c(crc_tmp, &flags, sizeof(flags));
+
crc ^= crc32c(crc_tmp, tt_common->addr, ETH_ALEN);
}
rcu_read_unlock();
@@ -3524,6 +3540,9 @@ int batadv_tt_init(struct batadv_priv *bat_priv)
{
int ret;
+ /* synchronized flags must be remote */
+ BUILD_BUG_ON(!(BATADV_TT_SYNC_MASK & BATADV_TT_REMOTE_MASK));
+
ret = batadv_tt_local_init(bat_priv);
if (ret < 0)
return ret;
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index 61297b6..3c21162 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -42,6 +42,12 @@
#define BATADV_TT_REMOTE_MASK 0x00FF
/**
+ * BATADV_TT_SYNC_MASK - bitmask of the flags that need to be kept in sync
+ * among the nodes. These flags are used to compute the global/local CRC
+ */
+#define BATADV_TT_SYNC_MASK 0x00F0
+
+/**
* struct batadv_hard_iface_bat_iv - per hard interface B.A.T.M.A.N. IV data
* @ogm_buff: buffer holding the OGM packet
* @ogm_buff_len: length of the OGM packet buffer
--
LinuxNextTracking
The following commit has been merged in the master branch:
commit 8257f55ae277dd94c015f7cf32f4afd1db59fe8d
Author: Antonio Quartulli <antonio(a)open-mesh.com>
Date: Mon Aug 19 18:39:59 2013 +0200
batman-adv: send GW_DEL event in case of soft-iface destruction
In case of soft_iface destruction send a GW DEL event to
userspace so that applications which are listening for GW
events are informed about the lost of connectivity and can
react accordingly.
Signed-off-by: Antonio Quartulli <antonio(a)open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner(a)neomailbox.ch>
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index c60d3ed..1ba8a55 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -28,6 +28,7 @@
#include "originator.h"
#include "hash.h"
#include "bridge_loop_avoidance.h"
+#include "gateway_client.h"
#include <linux/if_arp.h>
#include <linux/if_ether.h>
@@ -535,8 +536,12 @@ void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface,
dev_put(hard_iface->soft_iface);
/* nobody uses this interface anymore */
- if (!bat_priv->num_ifaces && autodel == BATADV_IF_CLEANUP_AUTO)
- batadv_softif_destroy_sysfs(hard_iface->soft_iface);
+ if (!bat_priv->num_ifaces) {
+ batadv_gw_check_client_stop(bat_priv);
+
+ if (autodel == BATADV_IF_CLEANUP_AUTO)
+ batadv_softif_destroy_sysfs(hard_iface->soft_iface);
+ }
netdev_upper_dev_unlink(hard_iface->net_dev, hard_iface->soft_iface);
hard_iface->soft_iface = NULL;
--
LinuxNextTracking