Open NobinPegasus opened 3 months ago
NobinPegasus @.***> writes:
bpf_trace_printk("VLAN ID[%d] = %u\n", i, vlans.id[i]);
bpf_trace_printk() takes the size of the format string as the second argument. You should be using the bpf_printk() macro which takes care of this and wraps the helper for you...
@tohojo I've replaced all bpf_trace_printk with bpf_printk. Still seeing the same issue
I've completed the assignment as mentioned in the solutions. Here's my C code:
Command used:
Why am I facing this error? How can I fix it?