diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-08-11 15:12:21 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-08-13 17:29:51 +0200 |
commit | 34016444534120f2fa5a049675815843d041bc16 (patch) | |
tree | 2b61ca5998e756c0b8b8b316171941619bc01dcb /conf.c | |
parent | e26282b67d013f775eacd8603fa5ec1397dec714 (diff) | |
download | passt-34016444534120f2fa5a049675815843d041bc16.tar passt-34016444534120f2fa5a049675815843d041bc16.tar.gz passt-34016444534120f2fa5a049675815843d041bc16.tar.bz2 passt-34016444534120f2fa5a049675815843d041bc16.tar.lz passt-34016444534120f2fa5a049675815843d041bc16.tar.xz passt-34016444534120f2fa5a049675815843d041bc16.tar.zst passt-34016444534120f2fa5a049675815843d041bc16.zip |
epoll: Generalize epoll_ref to cover things other than sockets
The epoll_ref type includes fields for the IP protocol of a socket, and the
socket fd. However, we already have a few things in the epoll which aren't
protocol sockets, and we may have more in future. Rename these fields to
an abstract "fd type" and file descriptor for more generality.
Similarly, rather than using existing IP protocol numbers for the type,
introduce our own number space. For now these just correspond to the
supported protocols, but we'll expand on that in future.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
0 files changed, 0 insertions, 0 deletions