I'd need to create a variable that keeps track of something happening in my function. So I don't want my variable to be initialized each time the function is called, I want it to stay.
I guess I can create a sysctl variable for that purpose. How do I do that ?
The thing is, the function is part of the linux TCP stack, and I don't know where the most global variable are declared. I'm a beginner in C programming & Linux.