Skip to content

Commit 7b0f8e7

Browse files
committed
docsis: add diplexer config
1 parent cd91179 commit 7b0f8e7

File tree

3 files changed

+44
-10
lines changed

3 files changed

+44
-10
lines changed

SOURCES/docsis_dialplan.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,20 +159,20 @@ diff --git a/src/docsis_common.h b/src/docsis_common.h
159159
index a3aeefe..b94460e 100644
160160
--- a/src/docsis_common.h
161161
+++ b/src/docsis_common.h
162-
@@ -32,11 +32,11 @@
162+
@@ -25,10 +25,10 @@
163+
#define _DOCSIS_COMMON_H
163164

164-
165-
#ifndef NUM_IDENTIFIERS
166-
-#define NUM_IDENTIFIERS 1427
165+
/* needed in docsis_symtable.h */
166+
-#define NUM_IDENTIFIERS 1539
167167
+#define NUM_IDENTIFIERS 9000
168-
#endif /* NUM_IDENTIFIERS, needed in docsis_symtable.h */
169168

170169
#define MAXINT 2000000000
171170
-#define TLV_VSIZE 1024
172171
+#define TLV_VSIZE 16384
173172
#define TRUE 1
174173
#define FALSE 0
175174

175+
176176
diff --git a/src/docsis_decode.c b/src/docsis_decode.c
177177
index b0a5b77..f4e6ce5 100644
178178
--- a/src/docsis_decode.c

SOURCES/docsis_edge.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/src/docsis_common.h b/src/docsis_common.h
2+
index 424418e..3e626da 100644
3+
--- a/src/docsis_common.h
4+
+++ b/src/docsis_common.h
5+
@@ -25,7 +25,7 @@
6+
#define _DOCSIS_COMMON_H
7+
8+
/* needed in docsis_symtable.h */
9+
-#define NUM_IDENTIFIERS 1536
10+
+#define NUM_IDENTIFIERS 1539
11+
12+
#define MAXINT 2000000000
13+
#define TLV_VSIZE 1024
14+
diff --git a/src/docsis_symtable.h b/src/docsis_symtable.h
15+
index bb2b070..b8a1d76 100644
16+
--- a/src/docsis_symtable.h
17+
+++ b/src/docsis_symtable.h
18+
@@ -106,6 +106,9 @@ symbol_type symtable[NUM_IDENTIFIERS] = {
19+
{ 271, "EnergyManagementCapabilities", 44, 144, (encode_hexstr), (decode_hexstr), 4, 4 }, /* TLV 5.44 MULPIv3.0-I24 Annex C.1.3.1.43 */
20+
{ 272, "CDOCSISCapabilityEncoding", 45, 144, (encode_hexstr), (decode_hexstr), 0, 0 }, /* TLV 5.45 MULPIv3.0-I24 Annex C.1.3.1.44 */
21+
{ 273, "CMSTATUSACK", 46, 144, (encode_uchar), (decode_uchar), 0, 1 }, /* TLV 5.46 MULPIv3.0-I24 Annex C.1.3.1.45 */
22+
+{ 1536, "DownstreamLowerBandEdgeSupport", 54, 144, (encode_hexstr), (decode_hexstr), 0, 1 }, /* TLV 5.54 MULPIv3.1-I25 Annex C.1.3.1.53 */
23+
+{ 1537, "DownstreamUpperBandEdgeSupport", 55, 144, (encode_hexstr), (decode_hexstr), 0, 1 }, /* TLV 5.55 MULPIv3.1-I25 Annex C.1.3.1.54 */
24+
+{ 1538, "DiplexerUpperBandEdgeSupport", 56, 144, (encode_uchar), (decode_uchar), 0, 4 }, /* TLV 5.56 MULPIv3.1-I25 Annex C.1.3.1.55 */
25+
{ 4, "CmMic", 6, 0, (encode_nothing), (decode_md5), 0, 0 }, /* TLV 6 MULPIv3.0-I24 Annex C.1.1.5 */
26+
{ 5, "CmtsMic", 7, 0, (encode_nothing), (decode_md5), 0, 0 }, /* TLV 7 MULPIv3.0-I24 Annex C.1.1.6 */
27+
{ 14, "SwUpgradeFilename", 9, 0, (encode_string), (decode_string), 0, 0 }, /* TLV 9 MULPIv3.0-I24 Annex C.1.2.3 */

SPECS/docsis.spec

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Name: docsis
2-
Version: 0.9.8.r393.gd7c9643
3-
Release: 2
2+
Version: 0.9.8.r402.g24c9f9f
3+
Release: 1
44
Summary: Human-readable text to binary configuration file converter
55

66
Group: Applications/Communications
77
License: GPLv2
88
URL: http://docsis.sourceforge.net
9-
Source: https://github.com/rlaager/%{name}/archive/d7c9643.tar.gz
10-
Patch: docsis_dialplan.patch
9+
Source: https://github.com/rlaager/%{name}/archive/24c9f9f.tar.gz
10+
Patch0: docsis_edge.patch
11+
Patch1: docsis_dialplan.patch
1112

1213
BuildRequires: autoconf automake libtool glib2-devel bison flex net-snmp-devel
1314

@@ -17,7 +18,7 @@ text configuration file. This tool is fully compliant with the following specs:
1718
CM-SP-eRouter-I12, DPoE-SP-DEMARCv1.0-I04, CM-SP-L2VPN-I13, CM-SP-MULPIv3.0-I24
1819

1920
%prep
20-
%autosetup -p1 -n docsis-d7c9643a66bff27278cf9096e7e4a6b7c0427142
21+
%autosetup -p1 -n docsis-24c9f9f8cbcaa5e55fe0d6ce189d1e56c3cc5c94
2122
sed -i 's/\[gm4 gnum4 m4\], \[notfound\],\[/\[gm4 gnum4 m4\], \[notfound\],\[\/usr\/bin:/' configure.ac
2223

2324
%build
@@ -37,6 +38,12 @@ cp mibs/*.txt %{buildroot}%{_datarootdir}/snmp/mibs
3738
%{_datarootdir}/snmp/mibs/*.txt
3839

3940
%changelog
41+
* Mon Jan 27 2025 Ole Ernst <ole.ernst@nmsprime.com> - 0.9.8.r402.g24c9f9f-1
42+
- Bump to latest commit
43+
- Add C.1.3.1.53 Downstream Lower Band Edge Configuration
44+
- Add C.1.3.1.54 Downstream Upper Band Edge Configuration
45+
- Add C.1.3.1.55 Diplexer Upstream Upper Band Edge Configuration
46+
4047
* Tue Nov 08 2022 Ole Ernst <ole.ernst@nmsprime.com> - 0.9.8.r393.gd7c9643-2
4148
- Fix compiling with Almalinux 9
4249

0 commit comments

Comments
 (0)