Debian Codegraph @

src/mock_libnet.c

raw symbols SCIP
1 #cxx . . $ `<file>/src/mock_libnet.c`/include<libnet.h>
2 #include"config.h"cxx . . $ `<file>/config.h`/
3
4 #define UNUSEDcxx . . $ `src/mock_libnet.c:4:9`!(x) (void)(x)
5 int mock_libnet_null_okcxx . . $ mock_libnet_null_ok. = 1;
6 int mock_libnet_lo_okcxx . . $ mock_libnet_lo_ok. = 1;
7
8 void
9 libnet_destroycxx . . $ libnet_destroy(961861a23fb8b12e).(libnet_tcxx . . $ libnet_t#* l)
10 {
11 freecxx . . $ free(5d22bdacc48458e8).(l);
12 }
13
14 #if HAVE_LIBNET_INIT_CONSTcxx . . $ `config.h:59:9`!
15 #define LIBNET_INIT_CONSTcxx . . $ `src/mock_libnet.c:15:9`! const
16 #else
17 #define LIBNET_INIT_CONST
18 #endif
19
20 libnet_tcxx . . $ libnet_t#*
21 libnet_initcxx . . $ libnet_init(63d133db71a793f0).(int injection_type, LIBNET_INIT_CONSTcxx . . $ `src/mock_libnet.c:15:9`! char *device, char *err_buf)
22 {
23 UNUSEDcxx . . $ `src/mock_libnet.c:4:9`!(injection_type);
24 UNUSEDcxx . . $ `src/mock_libnet.c:4:9`!(err_buf);
25 if (device == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
26 if (mock_libnet_null_okcxx . . $ mock_libnet_null_ok.) {
27 return malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(libnet_tcxx . . $ libnet_t#));
28 }
29 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
30 }
31 if (!strcmpcxx . . $ strcmp(5ae29d726ae57f88).(device, "bad")) {
32 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
33 }
34 if (!strcmpcxx . . $ strcmp(5ae29d726ae57f88).(device, "good")) {
35 return malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(libnet_tcxx . . $ libnet_t#));
36 }
37 if (mock_libnet_lo_okcxx . . $ mock_libnet_lo_ok. && !strcmpcxx . . $ strcmp(5ae29d726ae57f88).(device, "lo")) {
38 return malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(libnet_tcxx . . $ libnet_t#));
39 }
40 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
41 }
42
43 /* ---- Emacs Variables ----
44 * Local Variables:
45 * c-basic-offset: 8
46 * indent-tabs-mode: nil
47 * End:
48 *
49 * vim: ts=8 sw=8
50 */