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

Unit test for the header parser (OSI layers 3 and 4) More...

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

Functions

void test_tcp_syn ()
 Unit test using a TCP SYN packet.
 
void test_https_data ()
 Unit test using an HTTPS data packet.
 
void test_dns_ipv6 ()
 Unit test using a DNS message over IPv6.
 
int main (int argc, char const *argv[])
 

Detailed Description

Unit test for the header parser (OSI layers 3 and 4)

Date
2022-12-01

Function Documentation

◆ main()

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

Driver function for the unit tests.