Defines | Functions

fwprofiles.c File Reference

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)

Detailed Description

eurephia fwprofiles command, to manage firewall profiles.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2009-03-29

Definition in file fwprofiles.c.


Define Documentation

#define MODULE   "eurephia::fwProfiles"

Needed to define the active module before including argparser.h

Definition at line 40 of file fwprofiles.c.


Function Documentation

int addelete_profile ( eurephiaCTX ctx,
eurephiaSESSION sess,
eurephiaVALUES cfg,
int  argc,
char **  argv 
)

fwprofile add/delete mode. Registers or removes firewall profiles.

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

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

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

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

Parameters:
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.

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

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.

Parameters:
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
Returns:
returns 0 on success, otherwise 1.

Definition at line 152 of file fwprofiles.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines