From bdbec30a849807fb5e6841a38cfe0d168e5962b9 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 21 Dec 2023 12:06:05 +0100 Subject: seitan: Add netlink, sendto()/sendmsg(), iovec handling, demo with routes A bit rough at the moment, but it does the trick. Bonus: setsockopt() (with magic values only, not used in any demo yet). Signed-off-by: Stefano Brivio --- cooker/cooker.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cooker/cooker.h') diff --git a/cooker/cooker.h b/cooker/cooker.h index 9217c40..05a1f1b 100644 --- a/cooker/cooker.h +++ b/cooker/cooker.h @@ -35,13 +35,15 @@ struct size; * @d_num: Pointer to a list of numbers and their labels * @d_struct: Pointer to a struct description * @d_select: Pointer to description of a selector - * @d_arg_size: Position of argument whose pointed length is described + * @d_size: Position of argument whose pointed length is described + * @d_iovlen: Relative offset from pointed iovec field to corresponding iovlen */ union desc { struct num *d_num; struct field *d_struct; struct select *d_select; intptr_t d_size; + ptrdiff_t d_iovlen; }; /** @@ -110,6 +112,8 @@ enum flags { RBUF = BIT(5), /* Copy value from original call, ignore on return */ WBUF = BIT(6), + + IOV = BIT(7), }; #define TYPE_COUNT (TYPE_END - 1) -- cgit v1.2.3