Skip to content

eBPF-based security platform

upatch: name the decoder manifest and constants as they are spelled now

Daniel Borkmann3aa1daf8dc8b
diff --git a/bpf/lib/decoder.h b/bpf/lib/decoder.h
index 4c6b74f3..d9a54737 100644
--- a/bpf/lib/decoder.h
+++ b/bpf/lib/decoder.h
@@ -18,10 +18,10 @@
struct decoder_manifest {
__u32 magic; /* DECODER_MANIFEST_MAGIC */
__u16 version; /* UPATCH_DECODER_VERSION */
- __u16 language; /* SHIRUDO_UPATCH_DECODER_LANG_* */
+ __u16 language; /* UPATCH_DECODER_LANG_* */
__u16 api_version;
__u16 input_format; /* UPATCH_DECODER_INPUT_MAP_V1 */
- __u16 export_signal; /* SHIRUDO_UPATCH_DECODER_EXPORT_* */
+ __u16 export_signal; /* UPATCH_DECODER_EXPORT_* */
__u16 reserved;
char upatch[64];
char map[16];
diff --git a/include/shirudo/upatch.h b/include/shirudo/upatch.h
index 3274c1a0..9746e75b 100644
--- a/include/shirudo/upatch.h
+++ b/include/shirudo/upatch.h
@@ -123,7 +123,7 @@ struct upatch_signed_trailer {
/*
* Decoders embedded inside the signature-covered data section. BPF
- * programs declare a shirudo_decoder_manifest in .rodata; shirudo-build
+ * programs declare a struct decoder_manifest in .rodata; shirudo-build
* resolves and embeds the decoder source before signing.
*/
#define DECODER_MANIFEST_MAGIC 0x44434544u /* "DECD" le */