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

Lines Matching refs:__P

174 typedef void (*notify_func) __P((void *, int));

314 void (*init) __P((int unit));
316 void (*input) __P((int unit, u_char *pkt, int len));
318 void (*protrej) __P((int unit));
320 void (*lowerup) __P((int unit));
322 void (*lowerdown) __P((int unit));
324 void (*open) __P((int unit));
326 void (*close) __P((int unit, char *reason));
328 int (*printpkt) __P((u_char *pkt, int len,
329 void (*printer) __P((void *, char *, ...)),
332 void (*datainput) __P((int unit, u_char *pkt, int len));
338 void (*check_options) __P((void));
340 int (*demand_conf) __P((int unit));
342 int (*active_pkt) __P((u_char *pkt, int len));
359 void (*process_extra_options) __P((void));
361 void (*check_options) __P((void));
363 int (*connect) __P((void));
365 void (*disconnect) __P((void));
367 int (*establish_ppp) __P((int));
369 void (*disestablish_ppp) __P((int));
371 void (*send_config) __P((int, u_int32_t, int, int));
373 void (*recv_config) __P((int, u_int32_t, int, int));
375 void (*cleanup) __P((void));
377 void (*close) __P((void));
399 void set_ifunit __P((int)); /* set stuff that depends on ifunit */
400 void detach __P((void)); /* Detach from controlling tty */
401 void die __P((int)); /* Cleanup and exit */
402 void quit __P((void)); /* like die(1) */
403 void novm __P((char *)); /* Say we ran out of memory, and die */
404 void timeout __P((void (*func)(void *), void *arg, int s, int us));
406 void untimeout __P((void (*func)(void *), void *arg));
408 void record_child __P((int, char *, void (*) (void *), void *));
409 int device_script __P((char *cmd, int in, int out, int dont_wait));
411 pid_t run_program __P((char *prog, char **args, int must_exist,
414 void reopen_log __P((void)); /* (re)open the connection to syslog */
415 void update_link_stats __P((int)); /* Get stats at link termination */
416 void script_setenv __P((char *, char *, int)); /* set script env var */
417 void script_unsetenv __P((char *)); /* unset script env var */
418 void new_phase __P((int)); /* signal start of new phase */
419 void add_notifier __P((struct notifier **, notify_func, void *));
420 void remove_notifier __P((struct notifier **, notify_func, void *));
421 void notify __P((struct notifier *, int));
424 void tty_init __P((void));
427 void log_packet __P((u_char *, int, char *, int));
429 void print_string __P((char *, int, void (*) (void *, char *, ...),
431 int slprintf __P((char *, int, char *, ...)); /* sprintf++ */
432 int vslprintf __P((char *, int, char *, va_list)); /* vsprintf++ */
433 size_t strlcpy __P((char *, const char *, size_t)); /* safe strcpy */
434 size_t strlcat __P((char *, const char *, size_t)); /* safe strncpy */
436 void dbglog __P((char *, ...)); /* log a debug message */
437 void info __P((char *, ...)); /* log an informational message */
438 void notice __P((char *, ...)); /* log a notice-level message */
439 void warn __P((char *, ...)); /* log a warning message */
440 void error __P((char *, ...)); /* log an error message */
441 void fatal __P((char *, ...)); /* log an error message and die(1) */
442 void init_pr_log __P((char *, int)); /* initialize for using pr_log */
443 void pr_log __P((void *, char *, ...)); /* printer fn, output to syslog */
444 void end_pr_log __P((void)); /* finish up after using pr_log */
458 void link_required __P((int)); /* we are starting to use the link */
459 void link_terminated __P((int)); /* we are finished with the link */
460 void link_down __P((int)); /* the LCP layer has left the Opened state */
461 void link_established __P((int)); /* the link is up; authenticate now */
462 void start_networks __P((void)); /* start all the network control protos */
463 void np_up __P((int, int)); /* a network protocol has come up */
464 void np_down __P((int, int)); /* a network protocol has gone down */
465 void np_finished __P((int, int)); /* a network protocol no longer needs link */
466 void auth_peer_fail __P((int, int));
468 void auth_peer_success __P((int, int, char *, int));
470 void auth_withpeer_fail __P((int, int));
472 void auth_withpeer_success __P((int, int));
474 void auth_check_options __P((void));
476 void auth_reset __P((int)); /* check what secrets we have */
477 int check_passwd __P((int, char *, int, char *, int, char **));
479 int get_secret __P((int, char *, char *, char *, int *, int));
481 int auth_ip_addr __P((int, u_int32_t));
483 int bad_ip_adrs __P((u_int32_t));
487 void demand_conf __P((void)); /* config interface(s) for demand-dial */
488 void demand_block __P((void)); /* set all NPs to queue up packets */
489 void demand_unblock __P((void)); /* set all NPs to pass packets */
490 void demand_discard __P((void)); /* set all NPs to discard packets */
492 void demand_discard2 __P((void)); /* set all NPs to discard packets without errors */
493 void demand_rexmit __P((int)); /* retransmit saved frames for an NP */
494 int loop_chars __P((unsigned char *, int)); /* process chars from loopback */
495 int loop_frame __P((unsigned char *, int)); /* should we bring link up? */
499 void mp_check_options __P((void)); /* Check multilink-related options */
500 int mp_join_bundle __P((void)); /* join our link to an appropriate bundle */
501 char *epdisc_to_str __P((struct epdisc *)); /* string from endpoint discrim. */
502 int str_to_epdisc __P((struct epdisc *, char *)); /* endpt disc. from str */
506 void sys_init __P((void)); /* Do system-dependent initialization */
507 void sys_cleanup __P((void)); /* Restore system state before exiting */
508 int sys_check_options __P((void)); /* Check options specified */
509 void sys_close __P((void)); /* Clean up in a child before execing */
510 int ppp_available __P((void)); /* Test whether ppp kernel support exists */
511 int get_pty __P((int *, int *, char *, int)); /* Get pty master/slave */
512 int open_ppp_loopback __P((void)); /* Open loopback for demand-dialling */
513 int tty_establish_ppp __P((int)); /* Turn serial port into a ppp interface */
514 void tty_disestablish_ppp __P((int)); /* Restore port to normal operation */
515 void generic_disestablish_ppp __P((int dev_fd)); /* Restore device setting */
516 int generic_establish_ppp __P((int dev_fd)); /* Make a ppp interface */
517 void make_new_bundle __P((int, int, int, int)); /* Create new bundle */
518 int bundle_attach __P((int)); /* Attach link to existing bundle */
519 void cfg_bundle __P((int, int, int, int)); /* Configure existing bundle */
520 void clean_check __P((void)); /* Check if line was 8-bit clean */
521 void set_up_tty __P((int, int)); /* Set up port's speed, parameters, etc. */
522 void restore_tty __P((int)); /* Restore port's original parameters */
523 void setdtr __P((int, int)); /* Raise or lower port's DTR line */
524 void output __P((int, u_char *, int)); /* Output a PPP packet */
525 void wait_input __P((struct timeval *));
527 void add_fd __P((int)); /* Add fd to set to wait for */
528 void remove_fd __P((int)); /* Remove fd from set to wait for */
529 int read_packet __P((u_char *)); /* Read PPP packet */
530 int get_loop_output __P((void)); /* Read pkts from loopback */
531 void tty_send_config __P((int, u_int32_t, int, int));
533 void tty_set_xaccm __P((ext_accm));
535 void tty_recv_config __P((int, u_int32_t, int, int));
537 int ccp_test __P((int, u_char *, int, int));
539 void ccp_flags_set __P((int, int, int));
541 int ccp_fatal_error __P((int)); /* Test for fatal decomp error in kernel */
542 int get_idle_time __P((int, struct ppp_idle *));
544 int get_ppp_stats __P((int, struct pppd_stats *));
546 void netif_set_mtu __P((int, int)); /* Set PPP interface MTU */
547 int sifvjcomp __P((int, int, int, int));
549 int sifup __P((int)); /* Configure i/f up for one protocol */
550 int sifnpmode __P((int u, int proto, enum NPmode mode));
552 int sifdown __P((int)); /* Configure i/f down for one protocol */
553 int sifaddr __P((int, u_int32_t, u_int32_t, u_int32_t));
555 int cifaddr __P((int, u_int32_t, u_int32_t));
558 int sif6addr __P((int, eui64_t, eui64_t));
560 int cif6addr __P((int, eui64_t, eui64_t));
563 int sifdefaultroute __P((int, u_int32_t, u_int32_t));
565 int cifdefaultroute __P((int, u_int32_t, u_int32_t));
567 int sifproxyarp __P((int, u_int32_t));
569 int cifproxyarp __P((int, u_int32_t));
571 u_int32_t GetMask __P((u_int32_t)); /* Get appropriate netmask for address */
572 int lock __P((char *)); /* Create lock file for device */
573 int relock __P((int)); /* Rewrite lock file with new pid */
574 void unlock __P((void)); /* Delete previously-created lock file */
575 void logwtmp __P((const char *, const char *, const char *));
577 int get_host_seed __P((void)); /* Get host-dependent random number seed */
578 int have_route_to __P((u_int32_t)); /* Check if route to addr exists */
580 int set_filters __P((struct bpf_program *pass, struct bpf_program *active));
584 int sipxfaddr __P((int, unsigned long, unsigned char *));
585 int cipxfaddr __P((int));
587 int get_if_hwaddr __P((u_char *addr, char *name));
588 char *get_first_ethernet __P((void));
591 int parse_args __P((int argc, char **argv));
593 int options_from_file __P((char *filename, int must_exist, int check_prot,
596 int options_from_user __P((void)); /* Parse options from user's .ppprc */
597 int options_for_tty __P((void)); /* Parse options from /etc/ppp/options.tty */
598 int options_from_list __P((struct wordlist *, int privileged));
600 int getword __P((FILE *f, char *word, int *newlinep, char *filename));
602 void option_error __P((char *fmt, ...));
604 int int_option __P((char *, int *));
606 void add_options __P((option_t *)); /* Add extra options */
607 void check_options __P((void)); /* check values after all options parsed */
608 int remove_option __P((char *)); /* Disable the specified option */
609 int override_value __P((const char *, int, const char *));
611 void print_options __P((void (*) __P((void *, char *, ...)), void *));
614 int parse_dotted_ip __P((char *, u_int32_t *));
619 extern int (*new_phase_hook) __P((int));
620 extern int (*idle_time_hook) __P((struct ppp_idle *));
621 extern int (*holdoff_hook) __P((void));
622 extern int (*pap_check_hook) __P((void));
623 extern int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
626 extern void (*pap_logout_hook) __P((void));
627 extern int (*pap_passwd_hook) __P((char *user, char *passwd));
628 extern void (*ip_up_hook) __P((void));
629 extern void (*ip_down_hook) __P((void));
630 extern void (*ip_choose_hook) __P((u_int32_t *));