Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1476431 Details for
Bug 1618377
lldpad: Support DSCP selectors in APP TLVs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Packaging patch
0001-Support-DSCP-APP-selectors-BZ-1618377.patch (text/plain), 3.26 KB, created by
Petr Machata
on 2018-08-16 14:23:41 UTC
(
hide
)
Description:
Packaging patch
Filename:
MIME Type:
Creator:
Petr Machata
Created:
2018-08-16 14:23:41 UTC
Size:
3.26 KB
patch
obsolete
>From 9c1bec86cb578b1ed5d2b23a8f5f7b36a030f819 Mon Sep 17 00:00:00 2001 >From: Petr Machata <pmachata@gmail.com> >Date: Thu, 16 Aug 2018 16:14:34 +0200 >Subject: [PATCH] Support DSCP APP selectors (BZ 1618377) > >Signed-off-by: Petr Machata <pmachata@gmail.com> >--- > lldpad.spec | 9 +++++- > open-lldp-v1.0.1-28-support-DSCP-selectors.patch | 39 ++++++++++++++++++++++++ > 2 files changed, 47 insertions(+), 1 deletion(-) > create mode 100644 open-lldp-v1.0.1-28-support-DSCP-selectors.patch > >diff --git a/lldpad.spec b/lldpad.spec >index b63181c..18053e4 100644 >--- a/lldpad.spec >+++ b/lldpad.spec >@@ -7,7 +7,7 @@ > > Name: lldpad > Version: 1.0.1 >-Release: 11.git%{checkout}%{?dist} >+Release: 12.git%{checkout}%{?dist} > Summary: Intel LLDP Agent > Group: System Environment/Daemons > License: GPLv2 >@@ -41,6 +41,10 @@ Patch25: open-lldp-v1.0.1-25-l2_linux_packet-correctly-process-return-value-of-g > Patch26: open-lldp-v1.0.1-26-lldpad-system-capability-incorrect-advertised-as-sta.patch > Patch27: open-lldp-v1.0.1-27-fix-build-warnings.patch > >+# https://bugzilla.redhat.com/show_bug.cgi?id=1618377 >+# https://github.com/intel/openlldp/pull/9 >+Patch28: open-lldp-v1.0.1-28-support-DSCP-selectors.patch >+ > BuildRequires: automake autoconf libtool > BuildRequires: flex >= 2.5.33 > BuildRequires: kernel-headers >= 2.6.32 >@@ -113,6 +117,9 @@ rm -f %{buildroot}%{_libdir}/liblldp_clif.la > %{_libdir}/liblldp_clif.so > > %changelog >+* Thu Aug 16 2018 Petr Machata <pmachata@gmail.com> - 1.0.1-12.git036e314 >+- Add open-lldp-v1.0.1-28-support-DSCP-selectors.patch (BZ 1618377) >+ > * Tue Jul 24 2018 Adam Williamson <awilliam@redhat.com> - 1.0.1-11.git036e314 > - Rebuild for new libconfig > >diff --git a/open-lldp-v1.0.1-28-support-DSCP-selectors.patch b/open-lldp-v1.0.1-28-support-DSCP-selectors.patch >new file mode 100644 >index 0000000..b0e83b5 >--- /dev/null >+++ b/open-lldp-v1.0.1-28-support-DSCP-selectors.patch >@@ -0,0 +1,39 @@ >+From c8e438d610bc8af109c19479ee0f568b271d4030 Mon Sep 17 00:00:00 2001 >+From: Petr Machata <petrm@mellanox.com> >+Date: Mon, 9 Jul 2018 21:43:41 +0300 >+Subject: [PATCH] lldpad: Support DSCP selectors in APP TLV's >+ >+The P802.1Qcd/D2.1 standard draft introduces a new APP TLV: DSCP, with >+selector value of 5. Don't reject APP TLV's with selector 5, and >+sanitize the PID value to not be out of bounds for DSCP. >+ >+Signed-off-by: Petr Machata <petrm@mellanox.com> >+--- >+ lldp_8021qaz_cmds.c | 7 ++++++- >+ 1 file changed, 6 insertions(+), 1 deletion(-) >+ >+diff --git a/lldp_8021qaz_cmds.c b/lldp_8021qaz_cmds.c >+index 8cb225e..e017e2a 100644 >+--- a/lldp_8021qaz_cmds.c >++++ b/lldp_8021qaz_cmds.c >+@@ -1290,7 +1290,7 @@ static int _set_arg_app(struct cmd *cmd, char *args, char *arg_value, >+ obuf_len - strlen(obuf) - 2); >+ goto err; >+ } >+- if (sel < 1 || sel > 4) { >++ if (sel < 1 || sel > 5) { >+ strncat(obuf, ": selector out of range", >+ obuf_len - strlen(obuf) - 2); >+ goto err; >+@@ -1305,6 +1305,11 @@ static int _set_arg_app(struct cmd *cmd, char *args, char *arg_value, >+ obuf_len - strlen(obuf) - 2); >+ goto err; >+ } >++ if (sel == 5 && pid > 63) { >++ strncat(obuf, ": DSCP > 63", >++ obuf_len - strlen(obuf) - 2); >++ goto err; >++ } >+ >+ free(parse); >+ >-- >2.14.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1618377
: 1476431