Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

IpAddrSet.c File Reference

#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <netdb.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "util.h"
#include "mstring.h"
#include "parser.h"
#include "debug.h"
#include "IpAddrSet.h"

Go to the source code of this file.

Functions

IpAddrSetIpAddrSetCreate ()
void IpAddrSetDestroy (IpAddrSet *ipAddrSet)
void IpAddrSetPrint (char *prefix, IpAddrSet *ipAddrSet)
IpAddrSetIpAddrSetCopy (IpAddrSet *ipAddrSet)
int ParseIP (char *paddr, IpAddrSet *address_data)
IpAddrSetIpAddrSetParse (char *addr)
int IpAddrSetContains (IpAddrSet *ias, struct in_addr test_addr)

Variables

static char buffer [1024]


Function Documentation

int IpAddrSetContains IpAddrSet ias,
struct in_addr  test_addr
 

Definition at line 438 of file IpAddrSet.c.

References _IpAddrSet::addr_flags, EXCEPT_IP, index, _IpAddrSet::ip_addr, _IpAddrSet::netmask, _IpAddrSet::next, and NULL.

Referenced by Frag3Defrag().

IpAddrSet* IpAddrSetCopy IpAddrSet ipAddrSet  ) 
 

Definition at line 101 of file IpAddrSet.c.

References _IpAddrSet::addr_flags, _IpAddrSet::ip_addr, IpAddrSetDestroy(), _IpAddrSet::netmask, _IpAddrSet::next, and NULL.

IpAddrSet* IpAddrSetCreate  ) 
 

Definition at line 54 of file IpAddrSet.c.

References SnortAlloc().

void IpAddrSetDestroy IpAddrSet ipAddrSet  ) 
 

Definition at line 64 of file IpAddrSet.c.

References VarEntry::next, and _IpAddrSet::next.

Referenced by IpAddrSetCopy().

IpAddrSet* IpAddrSetParse char *  addr  ) 
 

Definition at line 342 of file IpAddrSet.c.

References DEBUG_CONFIGRULES, DEBUG_WRAP, EXCEPT_IP, FatalError(), file_line, file_name, index, mSplit(), mSplitFree(), _IpAddrSet::next, NULL, ParseIP(), SnortAlloc(), and VarGet().

Referenced by Frag3ParseArgs().

void IpAddrSetPrint char *  prefix,
IpAddrSet ipAddrSet
 

Definition at line 78 of file IpAddrSet.c.

References _IpAddrSet::addr_flags, buffer, EXCEPT_IP, _IpAddrSet::ip_addr, LogMessage(), _IpAddrSet::netmask, _IpAddrSet::next, and snprintf.

Referenced by Frag3PrintEngineConfig().

int ParseIP char *  paddr,
IpAddrSet address_data
 

Definition at line 152 of file IpAddrSet.c.

References _IpAddrSet::addr_flags, bcopy, EXCEPT_IP, FatalError(), file_line, file_name, _IpAddrSet::ip_addr, mSplit(), mSplitFree(), _IpAddrSet::netmask, netmasks, and strcasecmp.

Referenced by IpAddrSetParse(), PortscanIgnoreParseIP(), PortscanParseIP(), ProcessIP(), and ScanParseIp().


Variable Documentation

char buffer[1024] [static]
 

Definition at line 76 of file IpAddrSet.c.

Referenced by CSVEscape(), FindCodePage(), IpAddrSetPrint(), MapCodePoints(), print_thd_node(), and ProcessFileOption().


Generated on Sun May 14 14:51:23 2006 by  doxygen 1.4.2