secgateway/Platform/user/configm/config-server/include/LTE_config.h

53 lines
1.2 KiB
C

#ifndef LTE_CONFIG_H_
#define LTE_CONFIG_H_
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <pthread.h>
#define INIT_CMD "/etc/ppp/ppp-4G init"
#define START_CMD "/etc/ppp/ppp-4G start"
#define STOP_CMD "/etc/ppp/ppp-4G stop"
#define RESTART_CMD "/etc/ppp/ppp-4G restart"
#define STATUS_CMD "/etc/ppp/ppp-4G status"
#define file_path "/var/run/ppp0.pid"
#define GETPID "pgrep pppd"
#define START 1
#define STOP 2
#define STATUS 3
#define RESULT_LENGTH 60
#define ACTION_LENGTH 10
#define STATUS_LENGTH 15
#define STARTING 1
#define STOPPED 2
#define CONNECTED 3
#define START_FAIL 4
ret_code LTE_config_chk(uint source, uint *config_type,
pointer input, int *input_len,
pointer output, int *output_len);
ret_code LTE_config_proc(uint source, uint config_type,
pointer input, int input_len,
pointer output, int *output_len);
ret_code LTE_config_get_all(uint source,
pointer output, int *output_len);
#endif