Fix: Tunnel creation does not work when the length of the hostname is odd. (revert fix: Add a uint16_t control buffer type, as a union)
This commit is contained in:
parent
ec1507a6c2
commit
9e78f1af54
2 changed files with 40 additions and 44 deletions
5
l2tpns.h
5
l2tpns.h
|
|
@ -247,10 +247,7 @@ typedef struct controls // control message
|
|||
{
|
||||
struct controls *next; // next in queue
|
||||
uint16_t length; // length
|
||||
union {
|
||||
uint8_t buf[MAXCONTROL];
|
||||
uint16_t buf16[MAXCONTROL/2];
|
||||
} __attribute__ ((__transparent_union__));
|
||||
uint8_t buf[MAXCONTROL];
|
||||
}
|
||||
controlt;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue