Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move logging functions to a new file, log.c | Stefano Brivio | 2022-10-14 | 1 | -0/+1 |
| | | | | | | | | Logging to file is going to add some further complexity that we don't want to squeeze into util.c. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> | ||||
* | conf, packet: Operands don't affect result, CWE-569 | Stefano Brivio | 2022-04-07 | 1 | -1/+3 |
| | | | | | | Reported by Coverity. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> | ||||
* | treewide: Invalid type in argument to printf format specifier, CWE-686 | Stefano Brivio | 2022-04-05 | 1 | -3/+3 |
| | | | | | | Harmless except for two bad debugging prints. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> | ||||
* | treewide: Mark constant references as const | Stefano Brivio | 2022-03-29 | 1 | -3/+3 |
| | | | | Signed-off-by: Stefano Brivio <sbrivio@redhat.com> | ||||
* | treewide: Packet abstraction with mandatory boundary checks | Stefano Brivio | 2022-03-29 | 1 | -0/+134 |
Implement a packet abstraction providing boundary and size checks based on packet descriptors: packets stored in a buffer can be queued into a pool (without storage of its own), and data can be retrieved referring to an index in the pool, specifying offset and length. Checks ensure data is not read outside the boundaries of buffer and descriptors, and that packets added to a pool are within the buffer range with valid offset and indices. This implies a wider rework: usage of the "queueing" part of the abstraction mostly affects tap_handler_{passt,pasta}() functions and their callees, while the "fetching" part affects all the guest or tap facing implementations: TCP, UDP, ICMP, ARP, NDP, DHCP and DHCPv6 handlers. Suggested-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> |