bbf: #902 - Add G.fast support to TR-181

This commit is contained in:
Jani Juvan 2020-12-14 11:22:49 +01:00
parent ffc89e9218
commit ae432c536d
5 changed files with 2084 additions and 82 deletions

View file

@ -70,6 +70,7 @@ libbbfdm_la_SOURCES += \
../dmtree/tr181/users.c \
../dmtree/tr181/dhcpv6.c \
../dmtree/tr181/dsl.c \
../dmtree/tr181/fast.c \
../dmtree/tr181/interfacestack.c \
../dmtree/tr181/usb.c \
../dmtree/tr181/datamodelversion.c \

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 iopsys Software Solutions AB
* Copyright (C) 2020 iopsys Software Solutions AB
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
@ -37,6 +37,7 @@
#include "dns.h"
#include "users.h"
#include "dsl.h"
#include "fast.h"
#include "dhcpv6.h"
#include "interfacestack.h"
#include "qos.h"
@ -88,6 +89,7 @@ DMOBJ tDeviceObj[] = {
{"IP", &DMREAD, NULL, NULL, "file:/etc/config/network", NULL, NULL, tIPObj, tIPParams, NULL, BBFDM_BOTH},
{"Ethernet", &DMREAD, NULL, NULL, "file:/etc/config/network", NULL, NULL, tEthernetObj, tEthernetParams, NULL, BBFDM_BOTH},
{"DSL", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, tDSLObj, tDSLParams, NULL, BBFDM_BOTH},
{"FAST", &DMREAD, NULL, NULL, "ubus:fast", NULL, NULL, tFASTObj, NULL, NULL, BBFDM_BOTH},
{"ATM", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, tATMObj, NULL, NULL, BBFDM_BOTH},
{"PTM", &DMREAD, NULL, NULL, "file:/etc/config/dsl", NULL, NULL, tPTMObj, NULL, NULL, BBFDM_BOTH},
{"DHCPv4", &DMREAD, NULL, NULL, "file:/lib/netifd/proto/dhcp.sh", NULL, NULL, tDHCPv4Obj, tDHCPv4Params, NULL, BBFDM_BOTH},

1014
dmtree/tr181/fast.c Normal file

File diff suppressed because it is too large Load diff

28
dmtree/tr181/fast.h Normal file
View file

@ -0,0 +1,28 @@
/*
* Copyright (C) 2020 iopsys Software Solutions AB
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation
*
* Author: Jani Juvan <jani.juvan@iopsys.eu>
*/
#ifndef __FAST_H
#define __FAST_H
#include <libbbf_api/dmcommon.h>
extern DMOBJ tFASTObj[];
extern DMLEAF tFASTParams[];
extern DMOBJ tFASTLineObj[];
extern DMLEAF tFASTLineParams[];
extern DMOBJ tFASTLineStatsObj[];
extern DMLEAF tFASTLineStatsParams[];
extern DMLEAF tFASTLineStatsTotalParams[];
extern DMLEAF tFASTLineStatsShowtimeParams[];
extern DMLEAF tFASTLineStatsLastShowtimeParams[];
extern DMLEAF tFASTLineStatsCurrentDayParams[];
extern DMLEAF tFASTLineStatsQuarterHourParams[];
#endif //__FAST_H

File diff suppressed because it is too large Load diff