Skip to content

Commit eacec2c

Browse files
author
Alan Jowett
committed
Ensure that all comments are complete sentences as per guidelines
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
1 parent 6e47294 commit eacec2c

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

libs/execution_context/ebpf_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const NPI_MODULEID ebpf_general_helper_function_module_id = {
3838
static ebpf_pinning_table_t* _ebpf_core_map_pinning_table = NULL;
3939

4040
// Assume enabled until we can query it.
41-
// Extern variable defined in ebpf_core_jit.h
41+
// Extern variable defined in ebpf_core_jit.h.
4242
bool ebpf_platform_hypervisor_code_integrity_enabled = true;
4343
static bool _ebpf_platform_test_signing_enabled = true;
4444

tests/libs/util/socket_helper.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ _base_socket::~_base_socket() { clean_up_socket(socket); }
126126
void
127127
_base_socket::get_local_address(_Out_ PSOCKADDR& address, _Out_ int& address_length) const
128128
{
129-
// Query the current local address from the socket
129+
// Query the current local address from the socket.
130130
int error = getsockname(socket, (PSOCKADDR)&local_address, &local_address_size);
131131
if (error != 0) {
132132
FAIL("Failed to query local address of socket with error: " << WSAGetLastError());
133133
}
134134

135-
// Return the freshly queried address
135+
// Return the freshly queried address.
136136
address = (PSOCKADDR)&local_address;
137137
address_length = local_address_size;
138138
}
@@ -486,11 +486,11 @@ _datagram_server_socket::_datagram_server_socket(
486486
FAIL("datagram_client_socket class only supports sockets of type SOCK_DGRAM or SOCK_RAW and protocols of type "
487487
"IPPROTO_UDP, IPPROTO_IPV4 or IPPROTO_IPV6)");
488488

489-
// Enable redirect context for UDP sockets
489+
// Enable redirect context for UDP sockets.
490490
if (protocol == IPPROTO_UDP) {
491491
DWORD option_value = 1;
492492

493-
// Enable IPv4 redirect context only for IPv4 and Dual stack sockets
493+
// Enable IPv4 redirect context only for IPv4 and Dual stack sockets.
494494
if (family == IPv4 || family == Dual) {
495495
int result = setsockopt(
496496
socket,
@@ -503,7 +503,7 @@ _datagram_server_socket::_datagram_server_socket(
503503
}
504504
}
505505

506-
// Enable IPv6 redirect context only for IPv6 and Dual stack sockets
506+
// Enable IPv6 redirect context only for IPv6 and Dual stack sockets.
507507
if (family == IPv6 || family == Dual) {
508508
int result = setsockopt(
509509
socket,
@@ -533,15 +533,15 @@ _datagram_server_socket::post_async_receive()
533533
FAIL("WSACreateEvent failed with error: " << WSAGetLastError());
534534
}
535535

536-
// Set up WSAMSG structure for WSARecvMsg
536+
// Set up WSAMSG structure for WSARecvMsg.
537537
recv_msg.name = (LPSOCKADDR)&sender_address;
538538
recv_msg.namelen = sender_address_size;
539539
recv_msg.lpBuffers = &wsa_recv_buffer;
540540
recv_msg.dwBufferCount = 1;
541541
recv_msg.Control = wsa_control_buffer;
542542
recv_msg.dwFlags = 0;
543543

544-
// Post an asynchronous receive using WSARecvMsg to get ancillary data
544+
// Post an asynchronous receive using WSARecvMsg to get ancillary data.
545545
error = receive_message(socket, &recv_msg, nullptr, &overlapped, nullptr);
546546

547547
if (error != 0) {

tools/bpf2c/bpf_code_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ bpf_code_generator::parse_btf_maps_section(const unsafe_string& name)
522522
if (map.name.empty()) {
523523
map.name = "__anonymous_" + std::to_string(++anonymous_map_count);
524524
}
525-
// Skip the global variable maps as they are handled seperately.
525+
// Skip the global variable maps as they are handled separately.
526526
if (map.name == ".bss" || map.name == ".data" || map.name == ".rodata") {
527527
continue;
528528
}

tools/netsh/resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define EBPF_FILE_DESCRIPTION "eBPF for Windows Netsh Helper"
3737
#define EBPF_FILE_NAME "ebpfnetsh.dll"
3838

39-
// Next default values for new objects
39+
// Next default values for new objects.
4040
//
4141
#ifdef APSTUDIO_INVOKED
4242
#ifndef APSTUDIO_READONLY_SYMBOLS

undocked/tests/sample/ext/drv/sample_ext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ _sample_ebpf_extension_program_info_provider_detach_client(_In_ const void* prov
144144
static void
145145
_sample_ebpf_extension_program_info_provider_cleanup_binding_context(_Frees_ptr_ void* provider_binding_context);
146146

147-
// Sample eBPF extension Program Information NPI provider characteristics
147+
// Sample eBPF extension Program Information NPI provider characteristics.
148148

149149
const NPI_PROVIDER_CHARACTERISTICS _sample_ebpf_extension_program_info_provider_characteristics = {
150150
0,
@@ -227,7 +227,7 @@ _sample_ebpf_extension_hook_provider_detach_client(_In_ const void* provider_bin
227227
static void
228228
_sample_ebpf_extension_hook_provider_cleanup_binding_context(_Frees_ptr_ void* provider_binding_context);
229229

230-
// Sample eBPF extension Hook NPI provider characteristics
230+
// Sample eBPF extension Hook NPI provider characteristics.
231231
ebpf_attach_provider_data_t _sample_ebpf_extension_attach_provider_data = {
232232
EBPF_ATTACH_PROVIDER_DATA_HEADER, EBPF_PROGRAM_TYPE_SAMPLE_GUID, BPF_ATTACH_TYPE_SAMPLE, BPF_LINK_TYPE_UNSPEC};
233233

undocked/tests/sample/ext/drv/sample_ext_drv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
#define HELPER_DATA_1 1
2323
#define HELPER_DATA_2 2
2424

25-
// Driver global variables
25+
// Driver global variables.
2626
static DEVICE_OBJECT* _sample_ebpf_ext_driver_device_object;
2727
static BOOLEAN _sample_ebpf_ext_driver_unloading_flag = FALSE;
2828

2929
//
30-
// Pre-Declarations
30+
// Pre-Declarations.
3131
//
3232
static EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL _sample_ebpf_ext_driver_io_device_control;
3333
DRIVER_INITIALIZE DriverEntry;
@@ -124,7 +124,7 @@ _sample_ebpf_ext_driver_initialize_objects(
124124
status = WdfDeviceCreate(&device_initialize, WDF_NO_OBJECT_ATTRIBUTES, device);
125125

126126
if (!NT_SUCCESS(status)) {
127-
// do not free if any other call
127+
// Do not free if any other call
128128
// after WdfDeviceCreate fails.
129129
WdfDeviceInitFree(device_initialize);
130130
device_initialize = NULL;

undocked/tests/sample/ext/inc/sample_ext_ioctls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define SAMPLE_EBPF_EXT_DEVICE_WIN32_NAME L"\\\\.\\" SAMPLE_EBPF_EXT_DEVICE_BASE_NAME
1717

1818
//
19-
// IOCTL Codes
19+
// IOCTL Codes.
2020
//
2121

2222
typedef enum _sample_ebpf_ext_control_code

0 commit comments

Comments
 (0)