On Tue, 2006-04-11 at 08:29 -0400, Peter Memishian wrote: > Further, suppose > there is a version mismatch (m_ident does not match) -- then how does > mac_register() know the size of the mac_register_t that was allocated by > mac_alloc() so that it can properly free it? By having mac_alloc() store > the actual size that the driver allocated in the mac_register_t?
I just wanted to point out; mac_alloc() always allocates a mac_register_t of size "sizeof (mac_register_t)", and that's compiled into the mac module. The mac module always knows the correct size, so I don't think this would be an issue. It's the driver that never really knows the true size of the structure. -Seb _______________________________________________ networking-discuss mailing list [email protected]
