From c746b02f8b3ee64e8673d728f97e066013e58a09 Mon Sep 17 00:00:00 2001 From: kerwenwwer Date: Sat, 6 Apr 2024 18:17:32 +0800 Subject: [PATCH] Fix typo: change 'Contorl' to 'Control' in main.go and bpf.c --- bpf/bpf.c | 6 ++---- main.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bpf/bpf.c b/bpf/bpf.c index e33b583..bb9469a 100644 --- a/bpf/bpf.c +++ b/bpf/bpf.c @@ -18,7 +18,7 @@ // #define DEBUG_TC // #define DEBUG_XDP -/* Contorl definition */ +/* Control definition */ #define MAX_TARGETS 64 // Max targets for broadcast #define MAX_SIZE 200 #define MTU 1500 @@ -68,7 +68,6 @@ struct { __uint(max_entries, 1024); } targets_map SEC(".maps"); // map for targets - /* BPF_MAP_TYPE_HASH for nodelist (Not use for now.) */ struct { __uint(type, BPF_MAP_TYPE_HASH); @@ -77,7 +76,6 @@ struct { __uint(max_entries, 1024); } nodelist_map SEC(".maps"); - /* BPF_MAP_TYPE_HASH for metadata store (Not use for now.) */ struct { __uint(type, BPF_MAP_TYPE_HASH); @@ -460,4 +458,4 @@ int xdp_sock_prog(struct xdp_md *ctx) { } // Basic license just for compiling the object code -char __license[] SEC("license") = "GPL"; \ No newline at end of file +char __license[] SEC("license") = "GPL"; \ No newline at end of file diff --git a/main.go b/main.go index f90d580..02707eb 100644 --- a/main.go +++ b/main.go @@ -229,7 +229,7 @@ func startDummyClient() error { } defer conn.Close() - log.Println("[Contorl]: Client is listening on UDP port 8000") + log.Println("[Control]: Client is listening on UDP port 8000") // Buffer for reading incoming packets buffer := make([]byte, 1024)