Hi everyone,
I'm curently working on a FreeBSD module.
I have some experience in C programming, but not in kernel mode.
I have a strange behaviour, I need some explanation .
The module I am writing uses mbufs to log connections thanks to ip_input hooking.
When I use :
printf("%s->%s",ip->ip_src, ip->ip_dst);
The output is the same for both variables.
But, If I make two printf, one for ip_src and one for ip_dst both are different.
Why ?
This behaviour appears on every function, not only printf.
Thanks
Jeremie
I'm curently working on a FreeBSD module.
I have some experience in C programming, but not in kernel mode.
I have a strange behaviour, I need some explanation .
The module I am writing uses mbufs to log connections thanks to ip_input hooking.
When I use :
printf("%s->%s",ip->ip_src, ip->ip_dst);
The output is the same for both variables.
But, If I make two printf, one for ip_src and one for ip_dst both are different.
Why ?
This behaviour appears on every function, not only printf.
Thanks
Jeremie