aboutgitcodelistschat:MatrixIRC
path: root/cooker/cooker.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-12-21 12:06:05 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-12-21 12:45:36 +0100
commitbdbec30a849807fb5e6841a38cfe0d168e5962b9 (patch)
tree210949d96b4d764235c1c5b81ad2eebb61681f95 /cooker/cooker.h
parentc72c2493de8990c3a3b4780ec1429a3c359c121e (diff)
downloadseitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.tar
seitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.tar.gz
seitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.tar.bz2
seitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.tar.lz
seitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.tar.xz
seitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.tar.zst
seitan-bdbec30a849807fb5e6841a38cfe0d168e5962b9.zip
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 <sbrivio@redhat.com>
Diffstat (limited to 'cooker/cooker.h')
-rw-r--r--cooker/cooker.h6
1 files changed, 5 insertions, 1 deletions
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)