1
0

ctrlpacket.h 643 B

12345678910111213141516
  1. /*
  2. * ctrlpacket.h
  3. *
  4. * Functions to parse and send pptp control packets.
  5. */
  6. #ifndef _PPTPD_CTRLPACKET_H
  7. #define _PPTPD_CTRLPACKET_H
  8. int read_pptp_packet(int clientFd, void *packet, struct pptp_out_call_rply *rply_packet, ssize_t * rply_size);
  9. ssize_t send_pptp_packet(int clientFd, void *packet, size_t packet_size);
  10. void make_echo_req_packet(struct pptp_out_call_rply *rply_packet, ssize_t * rply_size, u_int32_t echo_id);
  11. void make_call_admin_shutdown(struct pptp_out_call_rply *rply_packet, ssize_t * rply_size);
  12. void make_stop_ctrl_req(struct pptp_out_call_rply *rply_packet, ssize_t * rply_size);
  13. #endif /* !_PPTPD_CTRLPACKET_H */