proxyv2.h (hitch-1.6.1) | : | proxyv2.h (hitch-1.7.0) | ||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
}__attribute__((packed)); | }__attribute__((packed)); | |||
struct pp2_hdr { | struct pp2_hdr { | |||
uint8_t sig[12]; | uint8_t sig[12]; | |||
uint8_t ver_cmd; | uint8_t ver_cmd; | |||
uint8_t fam; | uint8_t fam; | |||
uint16_t len; /* number of following bytes of the header */ | uint16_t len; /* number of following bytes of the header */ | |||
union pp2_addr addr; | union pp2_addr addr; | |||
}__attribute__((packed)); | }__attribute__((packed)); | |||
#define PP2_HDR_LEN 16 | ||||
const uint8_t PP2_SIG[12] = { | const uint8_t PP2_SIG[12] = { | |||
0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, | 0x0D, 0x0A, 0x0D, 0x0A, 0x00, 0x0D, | |||
0x0A, 0x51, 0x55, 0x49, 0x54, 0x0A | 0x0A, 0x51, 0x55, 0x49, 0x54, 0x0A | |||
}; | }; | |||
/* First octet past the magic marker, command and version */ | /* First octet past the magic marker, command and version */ | |||
#define PP2_CMD_LOCAL 0x00 | #define PP2_CMD_LOCAL 0x00 | |||
#define PP2_CMD_PROXY 0x01 | #define PP2_CMD_PROXY 0x01 | |||
#define PP2_CMD_MASK 0x0F | #define PP2_CMD_MASK 0x0F | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |