Displaying 2 results from an estimated 2 matches for "tlv_len".
Did you mean:
iov_len
2019 Oct 03
1
[PATCH net-next] net, uapi: fix -Wpointer-arith warnings
...urn (void *)e + e->target_offset;
+ return (struct xt_entry_target *)((char *)e + e->target_offset);
}
/*
--- a/include/uapi/linux/tipc_config.h
+++ b/include/uapi/linux/tipc_config.h
@@ -309,7 +309,7 @@ static inline int TLV_SET(void *tlv, __u16 type, void *data, __u16 len)
tlv_ptr->tlv_len = htons(tlv_len);
if (len && data) {
memcpy(TLV_DATA(tlv_ptr), data, len);
- memset(TLV_DATA(tlv_ptr) + len, 0, TLV_SPACE(len) - tlv_len);
+ memset((char *)TLV_DATA(tlv_ptr) + len, 0, TLV_SPACE(len) - tlv_len);
}
return TLV_SPACE(len);
}
@@ -409,7 +409,7 @@ static inline int TC...
2012 Oct 12
9
[PATCH] Fits: tool to parse stream
...cked__));
+
+struct btrfs_cmd_header {
+ /* len excluding the header */
+ uint32_t len;
+ uint16_t cmd;
+ /* crc including the header with zero crc field */
+ uint32_t crc;
+} __attribute__ ((__packed__));
+
+struct btrfs_tlv_header {
+ uint16_t tlv_type;
+ /* len excluding the header */
+ uint16_t tlv_len;
+} __attribute__ ((__packed__));
+
+char *cmd_names[] = {
+ "UNSPEC",
+ "SUBVOL",
+ "SNAPSHOT",
+ "MKFILE",
+ "MKDIR",
+ "MKNOD",
+ "MKFIFO",
+ "MKSOCK",
+ "SYMLINK",
+ "RENAME",
+ "LINK",...