eurephia fwprofiles command, to manage firewall profiles. More...
#include <stdio.h>#include <string.h>#include <assert.h>#include <libxml/tree.h>#include <eurephia_nullsafe.h>#include <eurephia_context.h>#include <eurephia_log.h>#include <eurephia_xml.h>#include <eurephia_values_struct.h>#include <eurephiadb_session_struct.h>#include <eurephiadb_mapping.h>#include <eurephiadb_driver.h>#include <eurephia_values.h>#include "../argparser.h"#include "../xsltparser.h"
Include dependency graph for fwprofiles.c:Go to the source code of this file.
Defines | |
| #define | MODULE "eurephia::fwProfiles" |
Functions | |
| void | display_fwprofiles_help (int page) |
| void | help_fwProfiles () |
| int | help_fwProfiles2 (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
| int | list_profiles (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
| int | addelete_profile (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
| int | cmd_fwProfiles (eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) |
eurephia fwprofiles command, to manage firewall profiles.
Definition in file fwprofiles.c.
| #define MODULE "eurephia::fwProfiles" |
Needed to define the active module before including argparser.h
Definition at line 40 of file fwprofiles.c.
| int addelete_profile | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
fwprofile add/delete mode. Registers or removes firewall profiles.
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 246 of file fwprofiles.c.
Here is the call graph for this function:| int cmd_fwProfiles | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
Main function for the fwprofiles command
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 350 of file fwprofiles.c.
Here is the call graph for this function:| void display_fwprofiles_help | ( | int | page | ) |
Help screens for the fwprofiles command
| page | which help screen to display |
Definition at line 60 of file fwprofiles.c.
Here is the caller graph for this function:| void help_fwProfiles | ( | ) |
Help screen wrapper. Used by cmd_Help()
Definition at line 110 of file fwprofiles.c.
Here is the call graph for this function:| int help_fwProfiles2 | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
Help screen wrapper for the fwprofile help function.
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 127 of file fwprofiles.c.
Here is the call graph for this function:| int list_profiles | ( | eurephiaCTX * | ctx, | |
| eurephiaSESSION * | sess, | |||
| eurephiaVALUES * | cfg, | |||
| int | argc, | |||
| char ** | argv | |||
| ) |
fwprofiles list mode. Lists all registered firewall profiles.
| ctx | eurephiaCTX | |
| sess | eurephiaSESSION of the current logged in user | |
| cfg | eurephiaVALUES struct of the current configuration | |
| argc | argument count for the eurephiadm command | |
| argv | argument table for the eurephiadm command |
Definition at line 152 of file fwprofiles.c.
Here is the call graph for this function:
1.7.1