Monero
Loading...
Searching...
No Matches
testportlistingparse.c File Reference
#include <string.h>
#include <stdio.h>
#include "portlistingparse.h"
Include dependency graph for testportlistingparse.c:

Classes

struct  port_mapping

Macros

#define PORT_MAPPINGS_COUNT   3

Functions

int test (const char *portListingXml, int portListingXmlLen, const struct port_mapping *ref, int count)
int main (void)

Variables

const char test_document []
const struct port_mapping port_mappings [PORT_MAPPINGS_COUNT]

Macro Definition Documentation

◆ PORT_MAPPINGS_COUNT

#define PORT_MAPPINGS_COUNT   3

Function Documentation

◆ main()

int main ( void )

◆ test()

int test ( const char * portListingXml,
int portListingXmlLen,
const struct port_mapping * ref,
int count )

Variable Documentation

◆ port_mappings

const struct port_mapping port_mappings[PORT_MAPPINGS_COUNT]
Initial value:
= {
{347, 12345, 12345, "134.231.2.11", "192.168.1.137", "TCP", "dooom A", 1},
{346, 2345, 2349, "202.233.2.1", "192.168.1.137", "TCP", "dooom", 1},
{0, 5002, 4001, "", "192.168.1.123", "UDP", "xxx", 1}
}

◆ test_document

const char test_document[]