mirror of
https://github.com/openharmony/kernel_common_modules_newip.git
synced 2026-07-20 00:53:31 -04:00
@@ -20,7 +20,12 @@ void ninet_ehashfn_hook(void *data, const struct sock *sk, u32 *ret)
|
||||
void ninet_gifconf_hook(void *data, struct net_device *dev,
|
||||
char __user *buf, int len, int size, int *ret)
|
||||
{
|
||||
*ret = ninet_gifconf(dev, buf, len, size);
|
||||
int done = ninet_gifconf(dev, buf + *ret, len - *ret, size);
|
||||
|
||||
if (done < 0)
|
||||
*ret = done;
|
||||
else
|
||||
*ret += done;
|
||||
}
|
||||
|
||||
int ninet_hooks_register(void)
|
||||
|
||||
Reference in New Issue
Block a user