10
10
* By default, these IDs are in the 5.10 kernel with kmesh kernel patches.
11
11
*/
12
12
13
+ #define bpf_km_header_strnstr_num 175
14
+ #define bpf_km_header_strncmp_num 176
15
+ #define bpf_parse_header_msg_num 177
16
+
13
17
/*
14
18
* Description
15
19
* Look for the string corresponding to the key in the results of the
19
23
* If found, return 1; otherwise, return 0.
20
24
*/
21
25
static long (* bpf_km_header_strnstr )(
22
- struct bpf_sock_addr * ctx , const char * key , int key_sz , const char * subptr , int subptr_sz ) = (void * )175 ;
26
+ struct bpf_sock_addr * ctx , const char * key , int key_sz , const char * subptr , int subptr_sz ) = (void * )bpf_km_header_strnstr_num ;
23
27
24
28
/*
25
29
* Description
@@ -31,7 +35,7 @@ static long (*bpf_km_header_strnstr)(
31
35
* If the strings are same, return 0.
32
36
*/
33
37
static long (* bpf_km_header_strncmp )(const char * key , int key_sz , const char * target , int target_sz , int opt ) =
34
- (void * )176 ;
38
+ (void * )bpf_km_header_strncmp_num ;
35
39
36
40
/*
37
41
* Description
@@ -43,4 +47,4 @@ static long (*bpf_km_header_strncmp)(const char *key, int key_sz, const char *ta
43
47
* A HTTP PROTO TYPE is returned on success.
44
48
* **PROTO_UNKNOW** is returned if failure.
45
49
*/
46
- static long (* bpf_parse_header_msg )(struct bpf_sock_addr * ctx ) = (void * )177 ;
50
+ static long (* bpf_parse_header_msg )(struct bpf_sock_addr * ctx ) = (void * )bpf_parse_header_msg_num ;
0 commit comments