|
|
@@ -307,6 +307,7 @@ static __always_inline char *get_header_val(struct map_bucket *map_value,u32 off
|
|
|
if (map_value->tophash[i] != 0 && map_value->keys[i].len == CW_HEADER_KEY_LENGTH) {
|
|
|
char current_header_key[CW_HEADER_KEY_LENGTH];
|
|
|
bpf_probe_read(current_header_key, sizeof(current_header_key), map_value->keys[i].str);
|
|
|
+ cw_bpf_debug("get_header_val str is %s",current_header_key);
|
|
|
if ((current_header_key[0] == CW_HEADER_KEY_VAL[0]
|
|
|
|| current_header_key[0] == CW_HEADER_KEY_UFIRST_VAL[0])
|
|
|
&& current_header_key[1] == CW_HEADER_KEY_UFIRST_VAL[1]
|