Commit graph

56 commits

Author SHA1 Message Date
AKP
ab1c764902 Do not omit argument name
This caused compilation to fail on the VM.
2023-11-12 01:25:55 +00:00
AKP
322904f6ea
Formatting 2023-11-12 00:56:44 +00:00
AKP
1ae1950e3d
Add submission script 2023-11-12 00:54:43 +00:00
AKP
b0012511ca
Fix to use IPv6 loopback addresses 2023-11-11 21:01:47 +00:00
AKP
784dd1ca22
Complete client implementation 2023-11-11 20:51:19 +00:00
AKP
eb32875748
Initial client implementation 2023-11-11 19:50:43 +00:00
AKP
2b91931c34 Use a comma instead of a null byte for separating IPs and ports
This was making the client difficult to write as it's not possible
to use any of the string functions to copy the full payload across.
2023-11-11 19:49:41 +00:00
AKP
19776081b8
Remove all server memory leaks on shutdown 2023-11-11 18:50:19 +00:00
AKP
c4b7495852 Fix memory leaks caused by abandoned threads 2023-11-11 18:41:13 +00:00
AKP
496e08f9d9
Ensure that ending ports are checked when starting ports are equal 2023-11-11 18:19:22 +00:00
AKP
7a87f6fe34
Implement delete 2023-11-11 18:08:25 +00:00
AKP
2df60b71eb
Update form_message.py 2023-11-11 17:45:44 +00:00
AKP
7945e25fef
Stop retaining pointers to stack variables 2023-11-11 17:16:24 +00:00
AKP
f2d1ccd779 Fix certain ports being denied sometimes due to memory reuse and faulty bounds checks 2023-11-11 17:11:27 +00:00
AKP
181d75abd0 Update handlers.c 2023-11-11 17:05:12 +00:00
AKP
f006ea0470
Add L handler among other cursed things 2023-11-11 16:45:42 +00:00
AKP
e89075bd0d
Add semifunctional check endpoint 2023-11-11 15:31:11 +00:00
AKP
930108dec2
Add functional rule add code 2023-11-11 14:24:20 +00:00
AKP
2f8ab6c8e3
Add new rules to the frame thing magic watsit 2023-11-11 13:52:16 +00:00
AKP
591549bcff
pragma once deez nuts 2023-11-11 12:52:09 +00:00
AKP
3a4edb3fd5 Use size_t where appropriate 2023-11-11 12:20:20 +00:00
AKP
d105ab32c3
Add hashbang header to mock.py 2023-11-11 12:20:01 +00:00
AKP
2692a17f4d What is this 2023-11-11 12:06:00 +00:00
AKP
abc3732e0e
Debug logging 2023-11-02 17:34:40 +00:00
AKP
91bcde20e5
Return response to incoming connections 2023-11-02 17:30:19 +00:00
AKP
04513fb2b6
Implement graceful shutdown 2023-11-02 17:29:13 +00:00
AKP
34e77a7c39
Receive connections 2023-11-02 16:42:23 +00:00
AKP
6bd93b93b0
Initial server receiving 2023-11-01 13:36:33 +00:00
AKP
672d883974
Move some files around for easier reuse 2023-10-30 14:56:38 +00:00
AKP
5942c4e98e
Generalise Makefile 2023-10-30 14:49:03 +00:00
AKP
21d520b717
Initial commit for assignment 2 2023-10-30 14:44:43 +00:00
5989c0f79c Update README.md 2023-10-11 11:40:31 +00:00
76f63f3e78 Update firewall-rules/README.md 2023-10-11 11:39:24 +00:00
cd81035bf8 Update README.md 2023-10-11 11:38:52 +00:00
5e797f6ab7 Add firewall-rules/README.md 2023-10-11 11:38:14 +00:00
4669327d24 Add assignment 1 problem statement 2023-10-11 11:37:28 +00:00
AKP
be3eece61c
Alter 5 files
Add `.clang-format`
Update `checkPacket.c`
Update `parser.c`
Update `readFirewall.c`
Update `types.c`
2023-10-08 19:35:23 +01:00
AKP
c9e2c11fb3 Revert "Reformat code"
This reverts commit 03aa84720a.
2023-10-08 19:25:14 +01:00
AKP
03aa84720a Reformat code 2023-10-08 19:21:01 +01:00
AKP
96490bd41c Silence parser warning about ParseState_done being unchecked 2023-10-08 19:08:23 +01:00
AKP
aa99b0b0bf
Rename checkFirewall to checkPacket 2023-10-08 19:06:10 +01:00
AKP
087ac26c84
Optionally read from stdin 2023-10-08 19:01:34 +01:00
AKP
e514846c98
Move test data 2023-10-08 19:01:05 +01:00
AKP
c3ef9bffe0 Add firewall rule checking 2023-10-08 18:19:19 +01:00
AKP
cca3460d21
Add parse_port function 2023-10-06 23:30:31 +01:00
AKP
21b8037bd6
Refactor for reuse of file parsing logic 2023-10-06 23:24:14 +01:00
AKP
e95a1607dd
Docs 2023-10-06 23:03:37 +01:00
AKP
7715c9da29
Fix test cases 2023-10-06 23:02:04 +01:00
AKP
b9e9411554
Optimize error text printing 2023-10-06 23:01:40 +01:00
AKP
91b17efc5c
Do value checking in parser 2023-10-06 23:01:09 +01:00