diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-07 12:40:16 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-11-07 09:53:45 +0100 |
commit | f6d8dc235553761a2541f7a6b782488160db03a7 (patch) | |
tree | bd91d104ba900c99cc9dbabdc277e95bf628d845 /udp.h | |
parent | 732e24937618f5848e182dc8a38eb170cf079394 (diff) | |
download | passt-f6d8dc235553761a2541f7a6b782488160db03a7.tar passt-f6d8dc235553761a2541f7a6b782488160db03a7.tar.gz passt-f6d8dc235553761a2541f7a6b782488160db03a7.tar.bz2 passt-f6d8dc235553761a2541f7a6b782488160db03a7.tar.lz passt-f6d8dc235553761a2541f7a6b782488160db03a7.tar.xz passt-f6d8dc235553761a2541f7a6b782488160db03a7.tar.zst passt-f6d8dc235553761a2541f7a6b782488160db03a7.zip |
pif: Pass originating pif to tap handler functions
For now, packets passed to the various *_tap_handler() functions always
come from the single "tap" interface. We want to allow the possibility to
broaden that in future. As preparation for that, have the code in tap.c
pass the pif id of the originating interface to each of those handler
functions.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.h')
-rw-r--r-- | udp.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,7 +10,8 @@ void udp_sock_handler(const struct ctx *c, union epoll_ref ref, uint32_t events, const struct timespec *now); -int udp_tap_handler(struct ctx *c, int af, const void *saddr, const void *daddr, +int udp_tap_handler(struct ctx *c, uint8_t pif, int af, + const void *saddr, const void *daddr, const struct pool *p, int idx, const struct timespec *now); int udp_sock_init(const struct ctx *c, int ns, sa_family_t af, const void *addr, const char *ifname, in_port_t port); |