-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path0001-fix-when-vlan-crc-is-00000000.patch
60 lines (57 loc) · 2.05 KB
/
0001-fix-when-vlan-crc-is-00000000.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From 57756bf8ff39784639fd5299a118af17cbdf5d36 Mon Sep 17 00:00:00 2001
From: lemoer <git@irrelefant.net>
Date: Mon, 23 Apr 2018 02:55:52 +0200
Subject: [PATCH] batman-adv: fix when vlan crc == 0x00000000
---
.../routing/0005-batman-adv-add-patch.patch | 41 ++++++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 patches/packages/routing/0005-batman-adv-add-patch.patch
diff --git a/patches/packages/routing/0005-batman-adv-add-patch.patch b/patches/packages/routing/0005-batman-adv-add-patch.patch
new file mode 100644
index 00000000..7d92a1c2
--- /dev/null
+++ b/patches/packages/routing/0005-batman-adv-add-patch.patch
@@ -0,0 +1,41 @@
+From: lemoer <git@irrelefant.net>
+Date: Mon, 23 Apr 2018 02:53:20 +0200
+Subject: batman-adv: add patch
+
+diff --git a/batman-adv/patches/1004-fix-bug-when-vlan-crc-00000000.patch b/batman-adv/patches/1004-fix-bug-when-vlan-crc-00000000.patch
+new file mode 100644
+index 0000000000000000000000000000000000000000..9a2bf34fab5f760fd4ffea649c7c248012d5d13a
+--- /dev/null
++++ b/batman-adv/patches/1004-fix-bug-when-vlan-crc-00000000.patch
+@@ -0,0 +1,31 @@
++From f23a9d3f375dcf8e57197480ac260baf06738074 Mon Sep 17 00:00:00 2001
++From: root <root@sn07.s.ffh.zone>
++Date: Mon, 23 Apr 2018 02:24:43 +0200
++Subject: [PATCH] batman-adv: fix bug when vlan crc is 0x00000000
++
++---
++ net/batman-adv/translation-table.c | 8 ++++++--
++ 1 file changed, 6 insertions(+), 2 deletions(-)
++
++diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
++index 7615f237..677dc5eb 100644
++--- a/net/batman-adv/translation-table.c
+++++ b/net/batman-adv/translation-table.c
++@@ -3007,8 +3007,12 @@ static bool batadv_tt_global_check_crc(struct batadv_orig_node *orig_node,
++
++ vlan = batadv_orig_node_vlan_get(orig_node,
++ ntohs(tt_vlan_tmp->vid));
++- if (!vlan)
++- return false;
+++ if (!vlan) {
+++ if (tt_vlan_tmp->crc == 0x00000000)
+++ continue;
+++ else
+++ return false;
+++ }
++
++ crc = vlan->tt.crc;
++ batadv_orig_node_vlan_put(vlan);
++--
++2.11.0
++
--
2.16.2