Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
oval_cmp_ip_address_impl.h File Reference

Detailed Description

Open Vulnerability and Assessment Language.

See more details at http://oval.mitre.org/

#include "common/util.h"
#include "oval_definitions.h"
#include "oval_types.h"

Go to the source code of this file.

Functions

oval_result_t oval_ipaddr_cmp (int af, const char *s1, const char *s2, oval_operation_t op)
 Compare two IP address or address sets (CIDR). More...
 

Variables

 OSCAP_HIDDEN_START
 
 OSCAP_HIDDEN_END
 

Function Documentation

oval_result_t oval_ipaddr_cmp ( int  af,
const char *  s1,
const char *  s2,
oval_operation_t  op 
)

Compare two IP address or address sets (CIDR).

The format of input string shall conform to ipv4_address types from oval:SimpleDatatypeEnumeration. This operation is not commutative, be aware of the order of operands.

Parameters
afInternet address family (AF_INET or AF_INET6)
s1ipv4 address as defined by state element
s2ipv4 address as captured from system (from syschar object)
optype of comparison operation
Returns
result of comparison as defined by OVAL specification