Skip to content

Commit

Permalink
Do not have separately named struct esp_hdr
Browse files Browse the repository at this point in the history
It's only ever used within struct pkt, so leave it there with the others.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 26, 2015
1 parent 3a5580b commit be16f4f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions openconnect-internal.h
Expand Up @@ -118,18 +118,16 @@

/****************************************************************************/

struct esp_hdr {
uint32_t spi;
uint32_t seq;
unsigned char iv[16];
unsigned char payload[];
};

struct pkt {
int len;
struct pkt *next;
union {
struct esp_hdr esp;
struct {
uint32_t spi;
uint32_t seq;
unsigned char iv[16];
unsigned char payload[];
} esp;
struct {
unsigned char pad[2];
unsigned char hdr[22];
Expand Down

0 comments on commit be16f4f

Please sign in to comment.