version 1.35.2.1, 2003/09/16 21:20:26 |
version 1.36, 2003/04/01 10:10:23 |
|
|
void tty_make_modes(int, struct termios *); |
void tty_make_modes(int, struct termios *); |
void tty_parse_modes(int, int *); |
void tty_parse_modes(int, int *); |
|
|
extern u_int max_packet_size; |
extern int max_packet_size; |
u_int packet_set_maxsize(u_int); |
int packet_set_maxsize(int); |
#define packet_get_maxsize() max_packet_size |
#define packet_get_maxsize() max_packet_size |
|
|
/* don't allow remaining bytes after the end of the message */ |
/* don't allow remaining bytes after the end of the message */ |
|
|
do { \ |
do { \ |
int _len = packet_remaining(); \ |
int _len = packet_remaining(); \ |
if (_len > 0) { \ |
if (_len > 0) { \ |
logit("Packet integrity error (%d bytes remaining) at %s:%d", \ |
log("Packet integrity error (%d bytes remaining) at %s:%d", \ |
_len ,__FILE__, __LINE__); \ |
_len ,__FILE__, __LINE__); \ |
packet_disconnect("Packet integrity error."); \ |
packet_disconnect("Packet integrity error."); \ |
} \ |
} \ |