]> The Tcpdump Group git mirrors - tcpdump/commit
Apply the first step of the new way to fetch data with bounds checking
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 30 Apr 2018 16:02:43 +0000 (18:02 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 26 Mar 2019 20:06:06 +0000 (21:06 +0100)
commit176e182416d822df0f9d4695410479e8b17a07b3
tree60641fb99f35017f97332b1ff661e9001cfd384e
parent4154778a262b4a7449141535a99da4d13b4c8b2e
Apply the first step of the new way to fetch data with bounds checking

Add GET_{BE|HE|LE}_, GET_U_1, GET_S_1, GET_IPV4_TO_HOST_ORDER,
GET_IPV4_TO_NETWORK_ORDER macros and
get_{be|he|le}_, get_u_1, get_s_1, get_ipv4_to_host_order,
get_ipv4_to_network_order inline functions,
with setjmp/longjmp logic to do better and easier data fetch with
bounds checking.

Based on Guy Harris's idea and code.
extract.h
netdissect.h
print.c