Re: [PATCH net 1/2] ipv4: mcast: getsockopt: do not overwrite past optlen
Breno Leitao <[email protected]>
| Newsgroups | org.kernel.vger.stable,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 11, 2026 at 06:51:27PM +0100, David Laight wrote: > I would suggest (again) that these changes be done starting with the syscall > 'glue' and adding an extra getsockopt_new() to the function call table(s). > Then changing the protocols one by one to provide the new function and > finally deleting the old entry. > That way each protocol code only needs changing once. Isn't this basically what we're doing today, without a new syscall? > I'd also wrap the copy_to_iter() in an inline function so that most code > doesn't have to care about the implementation. That sounds doable. What would this inline function look like? Would you mind sharing what you have in mind? Thanks for the discussion, --breno