1
0

ctrlpacket.h 680 B

123456789101112131415161718
  1. /*
  2. * ctrlpacket.h
  3. *
  4. * Functions to parse and send pptp control packets.
  5. *
  6. * $Id: ctrlpacket.h,v 1.1.1.1 2002/06/21 08:51:58 fenix_nl Exp $
  7. */
  8. #ifndef _PPTPD_CTRLPACKET_H
  9. #define _PPTPD_CTRLPACKET_H
  10. int read_pptp_packet(int clientFd, unsigned char *packet, unsigned char *rply_packet, ssize_t * rply_size);
  11. size_t send_pptp_packet(int clientFd, unsigned char *packet, size_t packet_size);
  12. void make_echo_req_packet(unsigned char *rply_packet, ssize_t * rply_size, u_int32_t echo_id);
  13. void make_call_admin_shutdown(unsigned char *rply_packet, ssize_t * rply_size);
  14. void make_stop_ctrl_req(unsigned char *rply_packet, ssize_t * rply_size);
  15. #endif /* !_PPTPD_CTRLPACKET_H */