Developers adding global variables.
Robert Watson
rwatson at FreeBSD.org
Sun Aug 3 10:32:17 UTC 2008
On Sun, 3 Aug 2008, Julian Elischer wrote:
> If you are adding globals to the networking code, (or if you have added soem
> globals in the last few months, could you make sure that I am aware of them?
>
> marko Zec and I are trying to keep teh Vimage tree in perforce in sync with
> -current but there is noo automatic way that we would be noticfied of the
> sudden appearance of a new global variable in the networking code.
>
> Today I noticed tcp_do_ecn and tcp_ecn_maxretries but only because of their
> proximity to another change.
While not a universal solution, one technique you could use to catch things
like this is to compare the set of symbols in a !virtualization kernel with
those in a virtualization kernels, perhaps using nm(1), and compare that
difference set over time. Not perfect, but it would allow you to look for
things that have been missed.
FWIW, I have no immediate plans to add any global variables to the network
stack.
Robert N M Watson
Computer Laboratory
University of Cambridge
More information about the freebsd-net
mailing list