1/* $OpenBSD: packet.h,v 1.41 2004/05/11 19:01:43 deraadt Exp $ */ |
2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * Interface for the packet protocol functions. 8 * 9 * As far as I am concerned, the code I have written for this software --- 67 unchanged lines hidden (view full) --- 77int packet_remaining(void); 78void packet_send_ignore(int); 79void packet_add_padding(u_char); 80 81void tty_make_modes(int, struct termios *); 82void tty_parse_modes(int, int *); 83 84extern u_int max_packet_size; |
85int packet_set_maxsize(u_int); |
86#define packet_get_maxsize() max_packet_size 87 88/* don't allow remaining bytes after the end of the message */ 89#define packet_check_eom() \ 90do { \ 91 int _len = packet_remaining(); \ 92 if (_len > 0) { \ 93 logit("Packet integrity error (%d bytes remaining) at %s:%d", \ 94 _len ,__FILE__, __LINE__); \ 95 packet_disconnect("Packet integrity error."); \ 96 } \ 97} while (0) 98 99int packet_need_rekeying(void); 100void packet_set_rekey_limit(u_int32_t); 101 102#endif /* PACKET_H */ |