Commit graph

68 commits

Author SHA1 Message Date
vdutta
720ebfa873 Build cpack release for downstream job 2022-06-10 14:31:42 +00:00
vdutta
2963a32f96 Update enabled parameter handling 2022-06-09 17:55:27 +05:30
Amin Ben Ramdhane
0fb8187f07 Ticket refs #7367: Firewall: Wrong default value for Device.Firewall.Chain.{i}.Rule.Protocol 2022-03-17 10:27:39 +00:00
suvendhu
889c15feeb Fix ticket#7333 fix cppcheck warnings 2022-02-22 18:24:19 +05:30
Amin Ben Ramdhane
8bc4d7159e Firewall: Define target as 'Accept' if it is coming from forwarding section otherwise 'Drop' when its option is empty 2022-02-16 12:17:06 +01:00
Amin Ben Ramdhane
080f7b4f85 Ticket refs #7333: fix warnings, code analysis and clean up the code
- Fix all errors catched by cppcheck threadsafety (cppcheck --error-exitcode=0 --addon=threadsafety bbf)
 - Fix some errors catched by cppcheck cert (cppcheck --error-exitcode=0 --addon=cert bbf)
 - Add new str-protected macros instead of using str functions directly to avoid crashes
2022-02-16 10:33:59 +00:00
sandeep
a640a15d29 bbf: Updated get/set functionality of "Device.Firewall.Level.{i}.PortMappingEnabled" parameter 2022-02-03 14:24:00 +01:00
Amin Ben Ramdhane
41c3384262 Ticket refs #6554: newly created IP.Interface.{i}. can not be used by Firewall rules 2022-02-03 13:13:59 +01:00
Amin Ben Ramdhane
c3ea9e5597 Ticket refs #6892: Parameters used for pathname reference cannot be set to empty 2022-01-10 10:20:03 +01:00
sverma
287c3897c3 bug-6674: enable/disable port-forwarding rule while corresponding zone port-forwarding enable/disable 2021-12-13 18:52:15 +01:00
Neeraj Bijalwan
2864ddeacd Add version in parameters 2021-11-03 09:30:12 +01:00
vdutta
689da88d95 Fix compilation warnings on gcc 11 2021-10-21 20:40:49 +05:30
Amin Ben Ramdhane
42bc8e95a7 Ticket refs #5773: improve and simplify handle instance in browser and add functions 2021-09-09 16:56:02 +00:00
Arun Muthusamy
3743c16d4b B#5548: Fix Firewall rule creation/expiry time 2021-07-21 04:33:40 +00:00
Amin Ben Ramdhane
5e97bdb5e4 bbf: add support for vendor extension 2021-03-25 16:06:31 +01:00
Amin Ben Ramdhane
f46d263952 Ticket refs #4374: fix object Add for the whole data model 2021-02-28 21:50:29 +01:00
Amin Ben Ramdhane
fcbe0daf80 Ticket refs #3392: implement Device.Firewall.Chain.{i}.Rule.{i}.ExpiryDate parameter 2021-02-19 15:43:41 +01:00
Amin Ben Ramdhane
23a556d273 Device.Firewall.Chain.{i}.Rule.{i}.: SourceInterface and DestInterface cannot be set to empty string 2021-02-19 10:57:46 +01:00
Amin Ben Ramdhane
cdad11d92d Ticket refs #4386: dm_validate_string in libbbf_api requires length of enumeration and pattern arrays to be hardcoded at caller
- use NULL-terminated arrays instead of providing length by the caller
2021-02-15 21:13:18 +01:00
Amin Ben Ramdhane
92d1f62cab bbf: cleanup
- fix flawfinder and cppcheck issues
 - remove all unused functions
2021-02-10 17:31:55 +01:00
Amin Ben Ramdhane
9c70a16884 bbf: add the missing pattern => "^$" 2021-02-01 15:55:51 +01:00
Amin Ben Ramdhane
1afaa474e6 Firewall: show DestMask and SourceMask values with the format 'IPAddress/Prefix' instead of '/Prefix' 2021-01-28 16:47:13 +01:00
Amin Ben Ramdhane
bd92aa3b86 Ticket refs #4281: Device.Firewall.Chain.{i}.Rule.{i}. invalid IPPrefix value of DestMask and SourceMask parameters 2021-01-28 10:47:44 +01:00
Sukru Senli
b569a78b65 firewall: add support for Rule.{i}.Log parameter 2021-01-22 13:26:50 +01:00
Amin Ben Ramdhane
d87298f760 Firewall: implement CreationDate parameter 2021-01-15 16:47:17 +01:00
Amin Ben Ramdhane
64fbc65737 Firewall: Fix Static Code Analysis 2021-01-15 16:19:47 +01:00
Amin Ben Ramdhane
cf552c33c3 Firewall: fix get/set of SourceInterface and DestInterface after implementing SourceAllInterfaces and DestAllInterfaces 2021-01-15 15:49:37 +01:00
Amin Ben Ramdhane
7a7c01fec7 Revert "Firewall: set SourceAllInterfaces and DestAllInterfaces => do nothing if the current value is equal to the settable value"
This reverts commit ccecc9cd28.
2021-01-15 11:42:04 +01:00
Amin Ben Ramdhane
ccecc9cd28 Firewall: set SourceAllInterfaces and DestAllInterfaces => do nothing if the current value is equal to the settable value 2021-01-15 10:18:13 +01:00
Sukru Senli
28bf165bfe firewall: add SourceAllInterfaces and DestAllInterfaces parameters 2021-01-14 21:17:54 +01:00
Amin Ben Ramdhane
b9a12b057b remove tr064 feature and cleanup 2020-12-16 10:03:25 +01:00
Amin Ben Ramdhane
44b6c08273 Fix add method based on the latest changes
update_instance: read config and type section from the passed section
2020-12-07 21:59:00 +01:00
Amin Ben Ramdhane
5d10fba083 bbf: improve and cleanup the code
- update_instance_alias: read config and type section from the passed section in handle_update_instance
 - remove append_dot_to_string() function
2020-12-06 22:18:18 +01:00
Amin Ben Ramdhane
18643f29b3 bbf: enhance the code
- remove unused argument from dmuci_add_section() and dmuci_add_section_bbfdm() functions
 - use snprintf instead of dmasptintf
 - change function name: add_list_paramameter -> add_list_parameter
2020-11-23 10:58:48 +01:00
Omar Kallel
c8de221c11 Ticket refs #3725: bbf: remove unnecessary arguments from object/parameter definition 2020-11-17 16:21:11 +01:00
Amin Ben Ramdhane
8ba74d624b bbf: add unique_keys argument to the comment
-  change (const char *[]) -> LIST_KEY
2020-10-17 14:54:33 +01:00
Amin Ben Ramdhane
5839164c29 TR-181: Fixed invalid int && unsignedInt && hexBinary parameter values 2020-10-17 14:08:40 +01:00
Amin Ben Ramdhane
a07102c32b Get_schema: add the missing unique keys for TR181 and TR104
- Update JSON files for tr181 and tr104
- Update the generator
2020-10-14 16:33:02 +01:00
Shubham Sharma
a9fc190ed1 get_schema: Get unique keys from multi instance objects
- As per TR181, there could be one or more unique keys for each
   multi-instance object. Added support to get the unique keys
   associated with the multi-instance object.
 - Changes for generate_source_code.sh to have unique keys as
   extra object parameter.
2020-10-13 10:51:47 +01:00
Amin Ben Ramdhane
027d8fb599 bbf: save diagnostics data under '/etc/bbfdm/dmmap_diagnostics' instead of '/vat/state/cwmp' 2020-09-28 10:08:13 +01:00
Omar Kallel
92cdf363f5 Ticket refs #3228: QEMU - ICWMP is segfaulting 2020-09-21 17:48:26 +01:00
Amin Ben Ramdhane
3a807945f9 Update bbf generator and json files 2020-09-03 14:17:04 +01:00
Amin Ben Ramdhane
9b2fdc3562 Ticket refs #2845: fix add object issues 2020-08-31 10:22:31 +01:00
Amin Ben Ramdhane
f9d2c345f1 Ticket refs #2974: Referenced objects have trailing dot 2020-08-26 11:26:33 +01:00
Amin Ben Ramdhane
bbecdd7444 Ticket refs #2845: bbf: add support the case uci config is updated manually 2020-08-22 16:37:32 +01:00
Amin Ben Ramdhane
712071eaaf Ticker refs #2909: TR-181: some DHCP and Firewall objects are missing Alias parameter 2020-07-10 10:57:20 +01:00
Omar Kallel
9b8c23ee30 Enhance separation between libbbf_api and libbbfdm for list_enabled_lw_notify variable && fix warnings 2020-06-23 11:39:55 +01:00
Sukru Senli
6bca198934 firewall: default value and uci mapping fixes 2020-06-13 14:50:20 +02:00
Amin Ben Ramdhane
41fdc02419 Ticket refs #2746: TR-181: IPv6Prefix validation is not working 2020-06-13 00:32:02 +01:00
Daniel Danzberger
4d67121a68 Revert "change strcat->strncat"
This reverts commit c0a476dec0.
2020-04-22 10:08:39 +02:00