mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Kernel socket missing err_hook fix
Thanks to Tim Weippert for bugreport.
This commit is contained in:
@@ -911,6 +911,12 @@ krt_sock_hook(sock *sk, int size UNUSED)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
krt_sock_err_hook(sock *sk, int e UNUSED)
|
||||
{
|
||||
krt_sock_hook(sk, 0);
|
||||
}
|
||||
|
||||
static sock *
|
||||
krt_sock_open(pool *pool, void *data, int table_id)
|
||||
{
|
||||
@@ -932,6 +938,7 @@ krt_sock_open(pool *pool, void *data, int table_id)
|
||||
sk = sk_new(pool);
|
||||
sk->type = SK_MAGIC;
|
||||
sk->rx_hook = krt_sock_hook;
|
||||
sk->err_hook = krt_sock_err_hook;
|
||||
sk->fd = fd;
|
||||
sk->data = data;
|
||||
|
||||
|
Reference in New Issue
Block a user