Skip to content

Commit

Permalink
Merge pull request contiki-os#2692 from pjonsson/psock-struct-padding
Browse files Browse the repository at this point in the history
psock: avoid padding in psock
  • Loading branch information
nfi authored Oct 7, 2023
2 parents 8e6d82c + 79aa3ad commit 318f478
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions os/net/ipv6/psock.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,21 @@ struct psock_buf {
* elements.
*/
struct psock {
struct pt pt, psockpt; /* Protothreads - one that's using the psock
functions, and one that runs inside the
psock functions. */
const uint8_t *sendptr; /* Pointer to the next data to be sent. */
uint8_t *readptr; /* Pointer to the next data to be read. */

uint8_t *bufptr; /* Pointer to the buffer used for buffering
incoming data. */

uint16_t sendlen; /* The number of bytes left to be sent. */
uint16_t readlen; /* The number of bytes left to be read. */

struct psock_buf buf; /* The structure holding the state of the
input buffer. */
unsigned int bufsize; /* The size of the input buffer. */


uint16_t sendlen; /* The number of bytes left to be sent. */
uint16_t readlen; /* The number of bytes left to be read. */

struct pt pt, psockpt; /* Protothreads - one that's using the psock
functions, and one that runs inside the
psock functions. */
unsigned char state; /* The state of the protosocket. */
};

Expand Down

0 comments on commit 318f478

Please sign in to comment.