Lines Matching refs:__P
201 typedef void (*notify_func) __P((void *, int));
202 typedef void (*printer_func) __P((void *, char *, ...));
400 void (*init) __P((int unit));
402 void (*input) __P((int unit, u_char *pkt, int len));
404 void (*protrej) __P((int unit));
406 void (*lowerup) __P((int unit));
408 void (*lowerdown) __P((int unit));
410 void (*open) __P((int unit));
412 void (*close) __P((int unit, char *reason));
414 int (*printpkt) __P((u_char *pkt, int len, printer_func printer,
417 void (*datainput) __P((int unit, u_char *pkt, int len));
423 void (*check_options) __P((void));
425 int (*demand_conf) __P((int unit));
427 int (*active_pkt) __P((u_char *pkt, int len));
444 void (*process_extra_options) __P((void));
446 void (*check_options) __P((void));
448 int (*connect) __P((void));
450 void (*disconnect) __P((void));
452 int (*establish_ppp) __P((int));
454 void (*disestablish_ppp) __P((int));
456 void (*send_config) __P((int, u_int32_t, int, int));
458 void (*recv_config) __P((int, u_int32_t, int, int));
460 void (*cleanup) __P((void));
462 void (*close) __P((void));
487 void set_ifunit __P((int)); /* set stuff that depends on ifunit */
488 void detach __P((void)); /* Detach from controlling tty */
489 void die __P((int)); /* Cleanup and exit */
490 void quit __P((void)); /* like die(1) */
491 void novm __P((char *)); /* Say we ran out of memory, and die */
492 void timeout __P((void (*func)(void *), void *arg, int s, int us));
494 void untimeout __P((void (*func)(void *), void *arg));
496 void record_child __P((int, char *, void (*) (void *), void *, int));
497 pid_t safe_fork __P((int, int, int)); /* Fork & close stuff in child */
498 int device_script __P((char *cmd, int in, int out, int dont_wait));
500 pid_t run_program __P((char *prog, char **args, int must_exist,
503 void reopen_log __P((void)); /* (re)open the connection to syslog */
504 void print_link_stats __P((void)); /* Print stats, if available */
505 void reset_link_stats __P((int)); /* Reset (init) stats when link goes up */
506 void update_link_stats __P((int)); /* Get stats at link termination */
507 void script_setenv __P((char *, char *, int)); /* set script env var */
508 void script_unsetenv __P((char *)); /* unset script env var */
509 void new_phase __P((int)); /* signal start of new phase */
510 void add_notifier __P((struct notifier **, notify_func, void *));
511 void remove_notifier __P((struct notifier **, notify_func, void *));
512 void notify __P((struct notifier *, int));
513 int ppp_send_config __P((int, int, u_int32_t, int, int));
514 int ppp_recv_config __P((int, int, u_int32_t, int, int));
515 const char *protocol_name __P((int));
516 void remove_pidfiles __P((void));
517 void lock_db __P((void));
518 void unlock_db __P((void));
521 void tty_init __P((void));
524 void log_packet __P((u_char *, int, char *, int));
526 void print_string __P((char *, int, printer_func, void *));
528 int slprintf __P((char *, int, char *, ...)); /* sprintf++ */
529 int vslprintf __P((char *, int, char *, va_list)); /* vsprintf++ */
531 size_t strlcpy __P((char *, const char *, size_t)); /* safe strcpy */
532 size_t strlcat __P((char *, const char *, size_t)); /* safe strncpy */
534 void dbglog __P((char *, ...)); /* log a debug message */
535 void info __P((char *, ...)); /* log an informational message */
536 void notice __P((char *, ...)); /* log a notice-level message */
537 void warn __P((char *, ...)); /* log a warning message */
538 void error __P((char *, ...)); /* log an error message */
539 void fatal __P((char *, ...)); /* log an error message and die(1) */
540 void init_pr_log __P((const char *, int)); /* initialize for using pr_log */
541 void pr_log __P((void *, char *, ...)); /* printer fn, output to syslog */
542 void end_pr_log __P((void)); /* finish up after using pr_log */
543 void dump_packet __P((const char *, u_char *, int));
545 ssize_t complete_read __P((int, void *, size_t));
549 void link_required __P((int)); /* we are starting to use the link */
550 void start_link __P((int)); /* bring the link up now */
551 void link_terminated __P((int)); /* we are finished with the link */
552 void link_down __P((int)); /* the LCP layer has left the Opened state */
553 void upper_layers_down __P((int));/* take all NCPs down */
554 void link_established __P((int)); /* the link is up; authenticate now */
555 void start_networks __P((int)); /* start all the network control protos */
556 void continue_networks __P((int)); /* start network [ip, etc] control protos */
557 void np_up __P((int, int)); /* a network protocol has come up */
558 void np_down __P((int, int)); /* a network protocol has gone down */
559 void np_finished __P((int, int)); /* a network protocol no longer needs link */
560 void auth_peer_fail __P((int, int));
562 void auth_peer_success __P((int, int, int, char *, int));
564 void auth_withpeer_fail __P((int, int));
566 void auth_withpeer_success __P((int, int, int));
568 void auth_check_options __P((void));
570 void auth_reset __P((int)); /* check what secrets we have */
571 int check_passwd __P((int, char *, int, char *, int, char **));
573 int get_secret __P((int, char *, char *, char *, int *, int));
575 int get_srp_secret __P((int unit, char *client, char *server, char *secret,
577 int auth_ip_addr __P((int, u_int32_t));
579 int auth_number __P((void)); /* check if remote number is authorized */
580 int bad_ip_adrs __P((u_int32_t));
584 void demand_conf __P((void)); /* config interface(s) for demand-dial */
585 void demand_block __P((void)); /* set all NPs to queue up packets */
586 void demand_unblock __P((void)); /* set all NPs to pass packets */
587 void demand_discard __P((void)); /* set all NPs to discard packets */
588 void demand_rexmit __P((int)); /* retransmit saved frames for an NP */
589 int loop_chars __P((unsigned char *, int)); /* process chars from loopback */
590 int loop_frame __P((unsigned char *, int)); /* should we bring link up? */
594 void mp_check_options __P((void)); /* Check multilink-related options */
595 int mp_join_bundle __P((void)); /* join our link to an appropriate bundle */
596 void mp_exit_bundle __P((void)); /* have disconnected our link from bundle */
597 void mp_bundle_terminated __P((void));
598 char *epdisc_to_str __P((struct epdisc *)); /* string from endpoint discrim. */
599 int str_to_epdisc __P((struct epdisc *, char *)); /* endpt disc. from str */
608 void sys_init __P((void)); /* Do system-dependent initialization */
609 void sys_cleanup __P((void)); /* Restore system state before exiting */
610 int sys_check_options __P((void)); /* Check options specified */
611 void sys_close __P((void)); /* Clean up in a child before execing */
612 int ppp_available __P((void)); /* Test whether ppp kernel support exists */
613 int get_pty __P((int *, int *, char *, int)); /* Get pty master/slave */
614 int open_ppp_loopback __P((void)); /* Open loopback for demand-dialling */
615 int tty_establish_ppp __P((int)); /* Turn serial port into a ppp interface */
616 void tty_disestablish_ppp __P((int)); /* Restore port to normal operation */
617 void generic_disestablish_ppp __P((int dev_fd)); /* Restore device setting */
618 int generic_establish_ppp __P((int dev_fd)); /* Make a ppp interface */
619 void make_new_bundle __P((int, int, int, int)); /* Create new bundle */
620 int bundle_attach __P((int)); /* Attach link to existing bundle */
621 void cfg_bundle __P((int, int, int, int)); /* Configure existing bundle */
622 void destroy_bundle __P((void)); /* Tell driver to destroy bundle */
623 void clean_check __P((void)); /* Check if line was 8-bit clean */
624 void set_up_tty __P((int, int)); /* Set up port's speed, parameters, etc. */
625 void restore_tty __P((int)); /* Restore port's original parameters */
626 void setdtr __P((int, int)); /* Raise or lower port's DTR line */
627 void output __P((int, u_char *, int)); /* Output a PPP packet */
628 void wait_input __P((struct timeval *));
630 void add_fd __P((int)); /* Add fd to set to wait for */
631 void remove_fd __P((int)); /* Remove fd from set to wait for */
632 int read_packet __P((u_char *)); /* Read PPP packet */
633 int get_loop_output __P((void)); /* Read pkts from loopback */
634 void tty_send_config __P((int, u_int32_t, int, int));
636 void tty_set_xaccm __P((ext_accm));
638 void tty_recv_config __P((int, u_int32_t, int, int));
640 int ccp_test __P((int, u_char *, int, int));
642 void ccp_flags_set __P((int, int, int));
644 int ccp_fatal_error __P((int)); /* Test for fatal decomp error in kernel */
645 int get_idle_time __P((int, struct ppp_idle *));
647 int get_ppp_stats __P((int, struct pppd_stats *));
649 void netif_set_mtu __P((int, int)); /* Set PPP interface MTU */
650 int netif_get_mtu __P((int)); /* Get PPP interface MTU */
651 int sifvjcomp __P((int, int, int, int));
653 int sifup __P((int)); /* Configure i/f up for one protocol */
654 int sifnpmode __P((int u, int proto, enum NPmode mode));
656 int sifdown __P((int)); /* Configure i/f down for one protocol */
657 int sifaddr __P((int, u_int32_t, u_int32_t, u_int32_t));
659 int cifaddr __P((int, u_int32_t, u_int32_t));
663 int sif6up __P((int)); /* Configure i/f up for IPv6 */
664 int sif6down __P((int)); /* Configure i/f down for IPv6 */
665 int sif6addr __P((int, eui64_t, eui64_t));
667 int cif6addr __P((int, eui64_t, eui64_t));
670 int sifdefaultroute __P((int, u_int32_t, u_int32_t));
672 int cifdefaultroute __P((int, u_int32_t, u_int32_t));
674 int sifproxyarp __P((int, u_int32_t));
676 int cifproxyarp __P((int, u_int32_t));
678 u_int32_t GetMask __P((u_int32_t)); /* Get appropriate netmask for address */
679 int lock __P((char *)); /* Create lock file for device */
680 int relock __P((int)); /* Rewrite lock file with new pid */
681 void unlock __P((void)); /* Delete previously-created lock file */
682 void logwtmp __P((const char *, const char *, const char *));
684 int get_host_seed __P((void)); /* Get host-dependent random number seed */
685 int have_route_to __P((u_int32_t)); /* Check if route to addr exists */
687 int set_filters __P((struct bpf_program *pass, struct bpf_program *active));
691 int sipxfaddr __P((int, unsigned long, unsigned char *));
692 int cipxfaddr __P((int));
694 int get_if_hwaddr __P((u_char *addr, char *name));
695 char *get_first_ethernet __P((void));
698 int setipaddr __P((char *, char **, int)); /* Set local/remote ip addresses */
699 int parse_args __P((int argc, char **argv));
701 int options_from_file __P((char *filename, int must_exist, int check_prot,
704 int options_from_user __P((void)); /* Parse options from user's .ppprc */
705 int options_for_tty __P((void)); /* Parse options from /etc/ppp/options.tty */
706 int options_from_list __P((struct wordlist *, int privileged));
708 int getword __P((FILE *f, char *word, int *newlinep, char *filename));
710 void option_error __P((char *fmt, ...));
712 int int_option __P((char *, int *));
714 void add_options __P((option_t *)); /* Add extra options */
715 void check_options __P((void)); /* check values after all options parsed */
716 int override_value __P((const char *, int, const char *));
718 void print_options __P((printer_func, void *));
721 int parse_dotted_ip __P((char *, u_int32_t *));
726 extern int (*new_phase_hook) __P((int));
727 extern int (*idle_time_hook) __P((struct ppp_idle *));
728 extern int (*holdoff_hook) __P((void));
729 extern int (*pap_check_hook) __P((void));
730 extern int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
733 extern void (*pap_logout_hook) __P((void));
734 extern int (*pap_passwd_hook) __P((char *user, char *passwd));
735 extern int (*allowed_address_hook) __P((u_int32_t addr));
736 extern void (*ip_up_hook) __P((void));
737 extern void (*ip_down_hook) __P((void));
738 extern void (*ip_choose_hook) __P((u_int32_t *));
739 extern void (*ipv6_up_hook) __P((void));
740 extern void (*ipv6_down_hook) __P((void));
742 extern int (*chap_check_hook) __P((void));
743 extern int (*chap_passwd_hook) __P((char *user, char *passwd));
744 extern void (*multilink_join_hook) __P((void));
747 extern void (*snoop_recv_hook) __P((unsigned char *p, int len));
748 extern void (*snoop_send_hook) __P((unsigned char *p, int len));