• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp-2.4.4/pppd/

Lines Matching refs:__P

201 typedef void (*notify_func) __P((void *, int));
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,
415 void (*printer) __P((void *, char *, ...)),
418 void (*datainput) __P((int unit, u_char *pkt, int len));
424 void (*check_options) __P((void));
426 int (*demand_conf) __P((int unit));
428 int (*active_pkt) __P((u_char *pkt, int len));
445 void (*process_extra_options) __P((void));
447 void (*check_options) __P((void));
449 int (*connect) __P((void));
451 void (*disconnect) __P((void));
453 int (*establish_ppp) __P((int));
455 void (*disestablish_ppp) __P((int));
457 void (*send_config) __P((int, u_int32_t, int, int));
459 void (*recv_config) __P((int, u_int32_t, int, int));
461 void (*cleanup) __P((void));
463 void (*close) __P((void));
473 void set_ifunit __P((int)); /* set stuff that depends on ifunit */
474 void detach __P((void)); /* Detach from controlling tty */
475 void die __P((int)); /* Cleanup and exit */
476 void quit __P((void)); /* like die(1) */
477 void novm __P((char *)); /* Say we ran out of memory, and die */
478 void timeout __P((void (*func)(void *), void *arg, int s, int us));
480 void untimeout __P((void (*func)(void *), void *arg));
482 void record_child __P((int, char *, void (*) (void *), void *));
483 pid_t safe_fork __P((int, int, int)); /* Fork & close stuff in child */
484 int device_script __P((char *cmd, int in, int out, int dont_wait));
486 pid_t run_program __P((char *prog, char **args, int must_exist,
489 void reopen_log __P((void)); /* (re)open the connection to syslog */
490 void print_link_stats __P((void)); /* Print stats, if available */
491 void reset_link_stats __P((int)); /* Reset (init) stats when link goes up */
492 void update_link_stats __P((int)); /* Get stats at link termination */
493 void script_setenv __P((char *, char *, int)); /* set script env var */
494 void script_unsetenv __P((char *)); /* unset script env var */
495 void new_phase __P((int)); /* signal start of new phase */
496 void add_notifier __P((struct notifier **, notify_func, void *));
497 void remove_notifier __P((struct notifier **, notify_func, void *));
498 void notify __P((struct notifier *, int));
499 int ppp_send_config __P((int, int, u_int32_t, int, int));
500 int ppp_recv_config __P((int, int, u_int32_t, int, int));
501 const char *protocol_name __P((int));
502 void remove_pidfiles __P((void));
503 void lock_db __P((void));
504 void unlock_db __P((void));
507 void tty_init __P((void));
510 void log_packet __P((u_char *, int, char *, int));
512 void print_string __P((char *, int, void (*) (void *, char *, ...),
514 int slprintf __P((char *, int, char *, ...)); /* sprintf++ */
515 int vslprintf __P((char *, int, char *, va_list)); /* vsprintf++ */
516 size_t strlcpy __P((char *, const char *, size_t)); /* safe strcpy */
517 size_t strlcat __P((char *, const char *, size_t)); /* safe strncpy */
518 void dbglog __P((char *, ...)); /* log a debug message */
519 void info __P((char *, ...)); /* log an informational message */
520 void notice __P((char *, ...)); /* log a notice-level message */
521 void warn __P((char *, ...)); /* log a warning message */
522 void error __P((char *, ...)); /* log an error message */
523 void fatal __P((char *, ...)); /* log an error message and die(1) */
524 void init_pr_log __P((char *, int)); /* initialize for using pr_log */
525 void pr_log __P((void *, char *, ...)); /* printer fn, output to syslog */
526 void end_pr_log __P((void)); /* finish up after using pr_log */
527 void dump_packet __P((const char *, u_char *, int));
529 ssize_t complete_read __P((int, void *, size_t));
533 void link_required __P((int)); /* we are starting to use the link */
534 void start_link __P((int)); /* bring the link up now */
535 void link_terminated __P((int)); /* we are finished with the link */
536 void link_down __P((int)); /* the LCP layer has left the Opened state */
537 void upper_layers_down __P((int));/* take all NCPs down */
538 void link_established __P((int)); /* the link is up; authenticate now */
539 void start_networks __P((int)); /* start all the network control protos */
540 void continue_networks __P((int)); /* start network [ip, etc] control protos */
541 void np_up __P((int, int)); /* a network protocol has come up */
542 void np_down __P((int, int)); /* a network protocol has gone down */
543 void np_finished __P((int, int)); /* a network protocol no longer needs link */
544 void auth_peer_fail __P((int, int));
546 void auth_peer_success __P((int, int, int, char *, int));
548 void auth_withpeer_fail __P((int, int));
550 void auth_withpeer_success __P((int, int, int));
552 void auth_check_options __P((void));
554 void auth_reset __P((int)); /* check what secrets we have */
555 int check_passwd __P((int, char *, int, char *, int, char **));
557 int get_secret __P((int, char *, char *, char *, int *, int));
559 int get_srp_secret __P((int unit, char *client, char *server, char *secret,
561 int auth_ip_addr __P((int, u_int32_t));
563 int auth_number __P((void)); /* check if remote number is authorized */
564 int bad_ip_adrs __P((u_int32_t));
568 void demand_conf __P((void)); /* config interface(s) for demand-dial */
569 void demand_block __P((void)); /* set all NPs to queue up packets */
570 void demand_unblock __P((void)); /* set all NPs to pass packets */
571 void demand_discard __P((void)); /* set all NPs to discard packets */
573 void demand_discard2 __P((void)); /* set all NPs to discard packets without errors */
574 void demand_rexmit __P((int)); /* retransmit saved frames for an NP */
575 int loop_chars __P((unsigned char *, int)); /* process chars from loopback */
576 int loop_frame __P((unsigned char *, int)); /* should we bring link up? */
580 void mp_check_options __P((void)); /* Check multilink-related options */
581 int mp_join_bundle __P((void)); /* join our link to an appropriate bundle */
582 void mp_exit_bundle __P((void)); /* have disconnected our link from bundle */
583 void mp_bundle_terminated __P((void));
584 char *epdisc_to_str __P((struct epdisc *)); /* string from endpoint discrim. */
585 int str_to_epdisc __P((struct epdisc *, char *)); /* endpt disc. from str */
594 void sys_init __P((void)); /* Do system-dependent initialization */
595 void sys_cleanup __P((void)); /* Restore system state before exiting */
596 int sys_check_options __P((void)); /* Check options specified */
597 void sys_close __P((void)); /* Clean up in a child before execing */
598 int ppp_available __P((void)); /* Test whether ppp kernel support exists */
599 int get_pty __P((int *, int *, char *, int)); /* Get pty master/slave */
600 int open_ppp_loopback __P((void)); /* Open loopback for demand-dialling */
601 int tty_establish_ppp __P((int)); /* Turn serial port into a ppp interface */
602 void tty_disestablish_ppp __P((int)); /* Restore port to normal operation */
603 void generic_disestablish_ppp __P((int dev_fd)); /* Restore device setting */
604 int generic_establish_ppp __P((int dev_fd)); /* Make a ppp interface */
605 void make_new_bundle __P((int, int, int, int)); /* Create new bundle */
606 int bundle_attach __P((int)); /* Attach link to existing bundle */
607 void cfg_bundle __P((int, int, int, int)); /* Configure existing bundle */
608 void destroy_bundle __P((void)); /* Tell driver to destroy bundle */
609 void clean_check __P((void)); /* Check if line was 8-bit clean */
610 void set_up_tty __P((int, int)); /* Set up port's speed, parameters, etc. */
611 void restore_tty __P((int)); /* Restore port's original parameters */
612 void setdtr __P((int, int)); /* Raise or lower port's DTR line */
613 void output __P((int, u_char *, int)); /* Output a PPP packet */
614 void wait_input __P((struct timeval *));
616 void add_fd __P((int)); /* Add fd to set to wait for */
617 void remove_fd __P((int)); /* Remove fd from set to wait for */
618 int read_packet __P((u_char *)); /* Read PPP packet */
619 int get_loop_output __P((void)); /* Read pkts from loopback */
620 void tty_send_config __P((int, u_int32_t, int, int));
622 void tty_set_xaccm __P((ext_accm));
624 void tty_recv_config __P((int, u_int32_t, int, int));
626 int ccp_test __P((int, u_char *, int, int));
628 void ccp_flags_set __P((int, int, int));
630 int ccp_fatal_error __P((int)); /* Test for fatal decomp error in kernel */
631 int get_idle_time __P((int, struct ppp_idle *));
633 int get_ppp_stats __P((int, struct pppd_stats *));
635 void netif_set_mtu __P((int, int)); /* Set PPP interface MTU */
636 int netif_get_mtu __P((int)); /* Get PPP interface MTU */
637 int sifvjcomp __P((int, int, int, int));
639 int sifup __P((int)); /* Configure i/f up for one protocol */
640 int sifnpmode __P((int u, int proto, enum NPmode mode));
642 int sifdown __P((int)); /* Configure i/f down for one protocol */
643 int sifaddr __P((int, u_int32_t, u_int32_t, u_int32_t));
645 int cifaddr __P((int, u_int32_t, u_int32_t));
648 int sif6addr __P((int, eui64_t, eui64_t));
650 int cif6addr __P((int, eui64_t, eui64_t));
653 int sifdefaultroute __P((int, u_int32_t, u_int32_t));
655 int cifdefaultroute __P((int, u_int32_t, u_int32_t));
657 int sifproxyarp __P((int, u_int32_t));
659 int cifproxyarp __P((int, u_int32_t));
661 u_int32_t GetMask __P((u_int32_t)); /* Get appropriate netmask for address */
662 int lock __P((char *)); /* Create lock file for device */
663 int relock __P((int)); /* Rewrite lock file with new pid */
664 void unlock __P((void)); /* Delete previously-created lock file */
665 void logwtmp __P((const char *, const char *, const char *));
667 int get_host_seed __P((void)); /* Get host-dependent random number seed */
668 int have_route_to __P((u_int32_t)); /* Check if route to addr exists */
670 int set_filters __P((struct bpf_program *pass, struct bpf_program *active));
674 int sipxfaddr __P((int, unsigned long, unsigned char *));
675 int cipxfaddr __P((int));
677 int get_if_hwaddr __P((u_char *addr, char *name));
678 char *get_first_ethernet __P((void));
681 int setipaddr __P((char *, char **, int)); /* Set local/remote ip addresses */
682 int parse_args __P((int argc, char **argv));
684 int options_from_file __P((char *filename, int must_exist, int check_prot,
687 int options_from_user __P((void)); /* Parse options from user's .ppprc */
688 int options_for_tty __P((void)); /* Parse options from /etc/ppp/options.tty */
689 int options_from_list __P((struct wordlist *, int privileged));
691 int getword __P((FILE *f, char *word, int *newlinep, char *filename));
693 void option_error __P((char *fmt, ...));
695 int int_option __P((char *, int *));
697 void add_options __P((option_t *)); /* Add extra options */
698 void check_options __P((void)); /* check values after all options parsed */
699 int override_value __P((const char *, int, const char *));
701 void print_options __P((void (*) __P((void *, char *, ...)), void *));
704 int parse_dotted_ip __P((char *, u_int32_t *));
709 extern int (*new_phase_hook) __P((int));
710 extern int (*idle_time_hook) __P((struct ppp_idle *));
711 extern int (*holdoff_hook) __P((void));
712 extern int (*pap_check_hook) __P((void));
713 extern int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
716 extern void (*pap_logout_hook) __P((void));
717 extern int (*pap_passwd_hook) __P((char *user, char *passwd));
718 extern int (*allowed_address_hook) __P((u_int32_t addr));
719 extern void (*ip_up_hook) __P((void));
720 extern void (*ip_down_hook) __P((void));
721 extern void (*ip_choose_hook) __P((u_int32_t *));
723 extern int (*chap_check_hook) __P((void));
724 extern int (*chap_passwd_hook) __P((char *user, char *passwd));
727 extern void (*snoop_recv_hook) __P((unsigned char *p, int len));
728 extern void (*snoop_send_hook) __P((unsigned char *p, int len));