From 3b93d91e053095016edae2deb44d2a9f82da90a6 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Wed, 29 May 2024 18:38:56 +0200 Subject: [PATCH] cleanup(driver): fix some comments Signed-off-by: Andrea Terzolo --- driver/modern_bpf/helpers/store/auxmap_store_params.h | 4 ++-- test/drivers/event_class/event_class.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/driver/modern_bpf/helpers/store/auxmap_store_params.h b/driver/modern_bpf/helpers/store/auxmap_store_params.h index 840247ec93..721ddf0fb3 100644 --- a/driver/modern_bpf/helpers/store/auxmap_store_params.h +++ b/driver/modern_bpf/helpers/store/auxmap_store_params.h @@ -707,8 +707,8 @@ static __always_inline void auxmap__store_socktuple_param(struct auxiliary_map * /* Pack the tuple info: * - socket family * - src_ipv4 - * - dest_ipv4 * - src_port + * - dest_ipv4 * - dest_port */ push__u8(auxmap->data, &auxmap->payload_pos, socket_family_to_scap(socket_family)); @@ -759,8 +759,8 @@ static __always_inline void auxmap__store_socktuple_param(struct auxiliary_map * /* Pack the tuple info: * - socket family * - src_ipv6 - * - dest_ipv6 * - src_port + * - dest_ipv6 * - dest_port */ push__u8(auxmap->data, &auxmap->payload_pos, socket_family_to_scap(socket_family)); diff --git a/test/drivers/event_class/event_class.cpp b/test/drivers/event_class/event_class.cpp index a37c24d1d1..66df573353 100644 --- a/test/drivers/event_class/event_class.cpp +++ b/test/drivers/event_class/event_class.cpp @@ -747,8 +747,8 @@ void event_test::assert_tuple_unix_param(int param_num, uint8_t desired_family, assert_address_family(desired_family, 0); /* Here we have the two pointers: - * - source OS pointer. * - destination OS pointer. + * - source OS pointer. * but we cannot make assertions on that. */ @@ -1002,4 +1002,4 @@ bool event_test::is_ext4_fs(int fd) } #endif return false; -} \ No newline at end of file +}