Smart Home firewall
Profile-based Smart Home firewall
Functions
packet_utils.c File Reference

Unit tests for the packet utilities. More...

#include <stdlib.h>
#include <string.h>
#include "packet_utils.h"
#include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
Include dependency graph for packet_utils.c:

Functions

void test_hexstr_to_payload ()
 Unit test for the function hexstr_to_payload.
 
void test_mac_hex_to_str ()
 Unit test for the function mac_hex_to_str.
 
void test_mac_str_to_hex ()
 Unit test for the function mac_str_to_hex.
 
void test_ipv4_net_to_str ()
 Unit test for the function ipv4_net_to_str.
 
void test_ipv4_str_to_net ()
 Unit test for the function ipv4_str_to_net.
 
void test_ipv4_hex_to_str ()
 Unit test for the function ipv4_hex_to_str.
 
void test_ipv4_str_to_hex ()
 Unit test for the function ipv4_str_to_hex.
 
void test_ipv6_net_to_str ()
 Unit test for the function ipv6_net_to_str.
 
void test_ipv6_str_to_net ()
 Unit test for the function ipv6_str_to_net.
 
void test_ip_net_to_str ()
 Unit test for the function ip_net_to_str.
 
void test_ip_str_to_net ()
 Unit test for the function ip_str_to_net.
 
void test_compare_ipv6 ()
 Unit test for the function compare_ipv6.
 
void test_compare_ip ()
 Unit test for the function compare_ip.
 
int main (int argc, char const *argv[])
 

Detailed Description

Unit tests for the packet utilities.

Date
2022-09-13

Function Documentation

◆ main()

int main ( int  argc,
char const *  argv[] 
)

Test suite entry point.