Use a macro to calculate the iovec length