Skip to content

Commit 64602ad

Browse files
authored
[DHCP relay]: Add patch to always undef VLAN_TCI_PRESENT so as not to treat VLAN-tagged packets differently (#1254)
1 parent ab2d066 commit 64602ad

5 files changed

+40
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 7fe46584c3d9cb6b1ecdee47ff5ac2b777f96ec6 Mon Sep 17 00:00:00 2001
2+
From: Joe LeVeque <[email protected]>
3+
Date: Wed, 20 Dec 2017 02:18:10 +0000
4+
Subject: [PATCH 1/4] Always undef VLAN_TCI_PRESENT so as not to treat
5+
VLAN-tagged packets differently
6+
7+
---
8+
configure.ac | 6 +++---
9+
1 file changed, 3 insertions(+), 3 deletions(-)
10+
11+
diff --git a/configure.ac b/configure.ac
12+
index 3f1415b..fcfeba0 100644
13+
--- a/configure.ac
14+
+++ b/configure.ac
15+
@@ -600,9 +600,9 @@ AC_CHECK_MEMBER(struct msghdr.msg_control,,
16+
#include <sys/socket.h>
17+
])
18+
19+
-AC_CHECK_MEMBER(struct tpacket_auxdata.tp_vlan_tci,
20+
- [AC_DEFINE([VLAN_TCI_PRESENT], [1], [tpacket_auxdata.tp_vlan_tci present])]
21+
- ,, [#include <linux/if_packet.h>])
22+
+#AC_CHECK_MEMBER(struct tpacket_auxdata.tp_vlan_tci,
23+
+# [AC_DEFINE([VLAN_TCI_PRESENT], [1], [tpacket_auxdata.tp_vlan_tci present])]
24+
+# ,, [#include <linux/if_packet.h>])
25+
26+
libbind=
27+
AC_ARG_WITH(libbind,
28+
--
29+
2.1.4
30+

src/isc-dhcp/patch/0001-Customizable-Option-82-circuit-ID-and-remote-ID-fiel.patch renamed to src/isc-dhcp/patch/0002-Customizable-Option-82-circuit-ID-and-remote-ID-fiel.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 284c87ff4b3873d0215904273fe3c86b07b4ba94 Mon Sep 17 00:00:00 2001
1+
From c2361e2bf24408cc21a4691c3897cc64c95372f1 Mon Sep 17 00:00:00 2001
22
From: Joe LeVeque <[email protected]>
33
Date: Mon, 11 Dec 2017 23:21:08 +0000
4-
Subject: [PATCH 1/3] Customizable Option 82 circuit ID and remote ID fields
4+
Subject: [PATCH 2/4] Customizable Option 82 circuit ID and remote ID fields
55

66
---
77
relay/dhcrelay.c | 182 ++++++++++++++++++++++++++++++++++++++++++++++---------

src/isc-dhcp/patch/0002-Support-for-obtaining-name-of-physical-interface-tha.patch renamed to src/isc-dhcp/patch/0003-Support-for-obtaining-name-of-physical-interface-tha.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From caad3e05c31c9fad8cda378ce95a1969def771a2 Mon Sep 17 00:00:00 2001
1+
From 236d4f1cb0afa2bee22f47a48b725427bfcb5a9c Mon Sep 17 00:00:00 2001
22
From: Joe LeVeque <[email protected]>
33
Date: Mon, 11 Dec 2017 23:39:10 +0000
4-
Subject: [PATCH 2/3] Support for obtaining name of physical interface that is
4+
Subject: [PATCH 3/4] Support for obtaining name of physical interface that is
55
a member of a bridge interface
66

77
---

src/isc-dhcp/patch/0003-Support-for-loading-port-alias-map-file-to-replace-p.patch renamed to src/isc-dhcp/patch/0004-Support-for-loading-port-alias-map-file-to-replace-p.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 3a42b497716375c9347b51c3a28c5e91e7cd4cf4 Mon Sep 17 00:00:00 2001
1+
From 1092578a8415b9d49182c2b9825753e96481246a Mon Sep 17 00:00:00 2001
22
From: Joe LeVeque <[email protected]>
33
Date: Tue, 12 Dec 2017 00:49:09 +0000
4-
Subject: [PATCH 3/3] Support for loading port alias map file to replace port
4+
Subject: [PATCH 4/4] Support for loading port alias map file to replace port
55
name with alias in circuit id
66

77
---

src/isc-dhcp/patch/series

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# This series applies on GIT commit ee3dffdda38a8cfc6ad2005d8d64a165d2a709ba
2-
0001-Customizable-Option-82-circuit-ID-and-remote-ID-fiel.patch
3-
0002-Support-for-obtaining-name-of-physical-interface-tha.patch
4-
0003-Support-for-loading-port-alias-map-file-to-replace-p.patch
2+
0001-Always-undef-VLAN_TCI_PRESENT-so-as-not-to-treat-VLA.patch
3+
0002-Customizable-Option-82-circuit-ID-and-remote-ID-fiel.patch
4+
0003-Support-for-obtaining-name-of-physical-interface-tha.patch
5+
0004-Support-for-loading-port-alias-map-file-to-replace-p.patch

0 commit comments

Comments
 (0)