/* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * Copyright (C) 2019 iopsys Software Solutions AB * Author: Imen Bhiri * Author: Amin Ben Ramdhane */ #ifndef __DIAGNOSTIC__H #define __DIAGNOSTIC__H #define IPPING_PATH "/usr/share/bbfdm/functions/ipping_launch" #define NSLOOKUP_PATH "/usr/share/bbfdm/functions/nslookup_launch" #define TRACEROUTE_PATH "/usr/share/bbfdm/functions/traceroute_launch" #define UDPECHO_PATH "/usr/share/bbfdm/functions/udpecho_launch" #define SERVERSELECTION_PATH "/usr/share/bbfdm/functions/serverselection_launch" enum diagnostic_type { DOWNLOAD_DIAGNOSTIC = 1, UPLOAD_DIAGNOSTIC }; int cwmp_ip_ping_diagnostic(); int cwmp_start_diagnostic(int diagnostic_type); int cwmp_nslookup_diagnostic(); int cwmp_traceroute_diagnostic(); int cwmp_udp_echo_diagnostic(); int cwmp_serverselection_diagnostic(); #endif