Home | History | Annotate | Download | only in net

Lines Matching refs:sppp

265 	u_char protoidx;	/* index into state table in struct sppp */
273 void (*Up)(struct sppp *, void *);
274 void (*Down)(struct sppp *, void *);
275 void (*Open)(struct sppp *, void *);
276 void (*Close)(struct sppp *, void *);
277 void (*TO)(struct sppp *, void *);
279 void (*tlu)(struct sppp *);
280 void (*tld)(struct sppp *);
281 void (*tls)(const struct cp *, struct sppp *);
282 void (*tlf)(const struct cp *, struct sppp *);
283 void (*scr)(struct sppp *);
284 void (*screply)(const struct cp *, struct sppp *, u_char,
289 (*parse_confreq)(struct sppp *, struct lcp_header *, int,
291 void (*parse_confrej)(struct sppp *, struct lcp_header *, int);
292 void (*parse_confnak)(struct sppp *, struct lcp_header *, int);
301 static struct sppp *spppq;
355 static bool sppp_debug_enabled(struct sppp *sp);
359 static void sppp_cp_init(const struct cp *, struct sppp *);
360 static void sppp_cp_fini(const struct cp *, struct sppp *);
361 static void sppp_cp_input(const struct cp *, struct sppp *,
363 static void sppp_cp_input(const struct cp *, struct sppp *,
365 static void sppp_cp_send(struct sppp *, u_short, u_char,
368 static void sppp_cp_change_state(const struct cp *, struct sppp *, int);
370 sppp_wq_create(struct sppp *, const char *, pri_t, int, int);
371 static void sppp_wq_destroy(struct sppp *, struct workqueue *);
373 void (*)(struct sppp *, void *), void *);
379 static void sppp_auth_send(const struct cp *, struct sppp *,
381 static int sppp_auth_role(const struct cp *, struct sppp *);
382 static void sppp_auth_to_event(struct sppp *, void *);
383 static void sppp_auth_screply(const struct cp *, struct sppp *,
385 static void sppp_up_event(struct sppp *, void *);
386 static void sppp_down_event(struct sppp *, void *);
387 static void sppp_open_event(struct sppp *, void *);
388 static void sppp_close_event(struct sppp *, void *);
389 static void sppp_to_event(struct sppp *, void *);
390 static void sppp_rcr_event(struct sppp *, void *);
391 static void sppp_rca_event(struct sppp *, void *);
392 static void sppp_rcn_event(struct sppp *, void *);
393 static void sppp_rtr_event(struct sppp *, void *);
394 static void sppp_rta_event(struct sppp *, void *);
395 static void sppp_rxj_event(struct sppp *, void *);
397 static void sppp_null(struct sppp *);
398 static void sppp_tls(const struct cp *, struct sppp *);
399 static void sppp_tlf(const struct cp *, struct sppp *);
400 static void sppp_screply(const struct cp *, struct sppp *,
402 static void sppp_ifdown(struct sppp *, void *);
404 static void sppp_lcp_init(struct sppp *);
405 static void sppp_lcp_up(struct sppp *, void *);
406 static void sppp_lcp_down(struct sppp *, void *);
407 static void sppp_lcp_open(struct sppp *, void *);
409 sppp_lcp_confreq(struct sppp *, struct lcp_header *, int,
411 static void sppp_lcp_confrej(struct sppp *, struct lcp_header *, int);
412 static void sppp_lcp_confnak(struct sppp *, struct lcp_header *, int);
413 static void sppp_lcp_tlu(struct sppp *);
414 static void sppp_lcp_tld(struct sppp *);
415 static void sppp_lcp_tls(const struct cp *, struct sppp *);
416 static void sppp_lcp_tlf(const struct cp *, struct sppp *);
417 static void sppp_lcp_scr(struct sppp *);
418 static void sppp_lcp_check_and_close(struct sppp *);
419 static int sppp_cp_check(struct sppp *, u_char);
421 static void sppp_ipcp_init(struct sppp *);
422 static void sppp_ipcp_open(struct sppp *, void *);
423 static void sppp_ipcp_close(struct sppp *, void *);
425 sppp_ipcp_confreq(struct sppp *, struct lcp_header *, int,
427 static void sppp_ipcp_confrej(struct sppp *, struct lcp_header *, int);
428 static void sppp_ipcp_confnak(struct sppp *, struct lcp_header *, int);
429 static void sppp_ipcp_tlu(struct sppp *);
430 static void sppp_ipcp_tld(struct sppp *);
431 static void sppp_ipcp_scr(struct sppp *);
433 static void sppp_ipv6cp_init(struct sppp *);
434 static void sppp_ipv6cp_open(struct sppp *, void *);
436 sppp_ipv6cp_confreq(struct sppp *, struct lcp_header *, int,
438 static void sppp_ipv6cp_confrej(struct sppp *, struct lcp_header *, int);
439 static void sppp_ipv6cp_confnak(struct sppp *, struct lcp_header *, int);
440 static void sppp_ipv6cp_tlu(struct sppp *);
441 static void sppp_ipv6cp_tld(struct sppp *);
442 static void sppp_ipv6cp_scr(struct sppp *);
444 static void sppp_pap_input(struct sppp *, struct mbuf *);
445 sppp *);
446 static void sppp_pap_tlu(struct sppp *);
447 static void sppp_pap_scr(struct sppp *);
449 static void sppp_chap_input(struct sppp *, struct mbuf *);
450 static void sppp_chap_init(struct sppp *);
451 static void sppp_chap_open(struct sppp *, void *);
452 static void sppp_chap_tlu(struct sppp *);
453 static void sppp_chap_scr(struct sppp *);
454 static void sppp_chap_rcv_challenge_event(struct sppp *, void *);
467 static int sppp_params(struct sppp *, u_long, void *);
469 static void sppp_get_ip_addrs(struct sppp *, uint32_t *, uint32_t *, uint32_t *);
470 static void sppp_set_ip_addrs(struct sppp *);
471 static void sppp_clear_ip_addrs(struct sppp *);
474 static void sppp_phase_network(struct sppp *);
478 static void sppp_get_ip6_addrs(struct sppp *, struct in6_addr *,
481 static void sppp_set_ip6_addr(struct sppp *, const struct in6_addr *);
482 static void sppp_gen_ip6_addr(struct sppp *, const struct in6_addr *);
484 static void sppp_suggest_ip6_addr(struct sppp *, struct in6_addr *);
487 static void sppp_notify_up(struct sppp *);
488 static void sppp_notify_down(struct sppp *);
489 static void sppp_notify_tls_wlocked(struct sppp *);
490 static void sppp_notify_tlf_wlocked(struct sppp *);
492 static void sppp_notify_con_wlocked(struct sppp *);
494 static void sppp_notify_con(struct sppp *);
496 static void sppp_notify_chg_wlocked(struct sppp *);
593 sppp_debug_enabled(struct sppp *sp)
606 sppp_change_phase(struct sppp *sp, int phase)
641 struct sppp *sp = (struct sppp *)ifp;
805 struct sppp *sp = (struct sppp *) ifp;
1049 struct sppp *sp = (struct sppp *) ifp;
1115 struct sppp **q, *p, *sp = (struct sppp *) ifp;
1158 struct sppp *sp = (struct sppp *) ifp;
1173 struct sppp *sp = (struct sppp *) ifp;
1191 struct sppp *sp = (struct sppp *) ifp;
1223 struct sppp *sp = (struct sppp *) ifp;
1381 sppp_cp_send(struct sppp *sp, u_short proto, u_char type,
1454 struct sppp *sp = xsp;
1462 struct sppp *sp = xsp;
1470 struct sppp *sp = xsp;
1478 struct sppp *sp = xsp;
1486 struct sppp *sp = xsp;
1492 sppp_cp_init(const struct cp *cp, struct sppp *sp)
1527 sppp_cp_fini(const struct cp *cp, struct sppp *sp)
1557 sppp_cp_input(const struct cp *cp, struct sppp *sp, struct mbuf *m)
1780 sppp_up_event(struct sppp *sp, void *xcp)
1811 sppp_down_event(struct sppp *sp, void *xcp)
1858 sppp_open_event(struct sppp *sp, void *xcp)
1899 sppp_close_event(struct sppp *sp, void *xcp)
1945 sppp_to_event(struct sppp *sp, void *xcp)
2003 sppp_rcr_update_state(const struct cp *cp, struct sppp *sp,
2102 sppp_rcr_event(struct sppp *sp, void *xcp)
2151 sppp_rca_event(struct sppp *sp, void *xcp)
2197 sppp_rcn_event(struct sppp *sp, void *xcp)
2262 sppp_rtr_event(struct sppp *sp, void *xcp)
2304 sppp_rta_event(struct sppp *sp, void *xcp)
2341 sppp_rxj_event(struct sppp *sp, void *xcp)
2373 sppp_cp_change_state(const struct cp *cp, struct sppp *sp, int newstate)
2405 sppp_lcp_init(struct sppp *sp)
2431 sppp_lcp_up(struct sppp *sp, void *xcp)
2464 sppp_lcp_down(struct sppp *sp, void *xcp)
2502 sppp_lcp_open(struct sppp *sp, void *xcp)
2542 sppp_lcp_confreq(struct sppp *sp, struct lcp_header *h, int origlen,
2912 sppp_lcp_confrej(struct sppp *sp, struct lcp_header *h, int len)
3002 sppp_lcp_confnak(struct sppp *sp, struct lcp_header *h, int len)
3095 sppp_lcp_tlu(struct sppp *sp)
3174 sppp_lcp_tld(struct sppp *sp)
3227 sppp_lcp_tls(const struct cp *cp __unused, struct sppp *sp)
3240 sppp_lcp_tlf(const struct cp *cp __unused, struct sppp *sp)
3263 sppp_lcp_scr(struct sppp *sp)
3308 sppp_cp_check(struct sppp *sp, u_char cp_flags)
3323 sppp_lcp_check_and_close(struct sppp *sp)
3364 sppp_ipcp_init(struct sppp *sp)
3376 sppp_ipcp_open(struct sppp *sp, void *xcp)
3440 sppp_ipcp_close(struct sppp *sp, void *xcp)
3466 sppp_ipcp_confreq(struct sppp *sp, struct lcp_header *h, int origlen,
3703 sppp_ipcp_confrej(struct sppp *sp, struct lcp_header *h, int len)
3776 sppp_ipcp_confnak(struct sppp *sp, struct lcp_header *h, int len)
3880 sppp_ipcp_tlu(struct sppp *sp)
3904 sppp_ipcp_tld(struct sppp *sp)
3918 sppp_ipcp_scr(struct sppp *sp)
3986 sppp_ipv6cp_init(struct sppp *sp)
3998 sppp_ipv6cp_open(struct sppp *sp, void *xcp)
4039 sppp_ipv6cp_confreq(struct sppp *sp, struct lcp_header *h, int origlen,
4273 sppp_ipv6cp_confrej(struct sppp *sp, struct lcp_header *h, int len)
4335 sppp_ipv6cp_confnak(struct sppp *sp, struct lcp_header *h, int len)
4446 sppp_ipv6cp_tlu(struct sppp *sp)
4460 sppp_ipv6cp_tld(struct sppp *sp)
4472 sppp_ipv6cp_scr(struct sppp *sp)
4504 sppp_ipv6cp_init(struct sppp *sp)
4511 sppp_ipv6cp_open(struct sppp *sp, void *xcp)
4518 sppp_ipv6cp_confreq(struct sppp *sp, struct lcp_header *h,
4527 sppp_ipv6cp_confrej(struct sppp *sp, struct lcp_header *h,
4535 sppp_ipv6cp_confnak(struct sppp *sp, struct lcp_header *h,
4543 sppp_ipv6cp_tlu(struct sppp *sp)
4550 sppp_ipv6cp_tld(struct sppp *sp)
4557 sppp_ipv6cp_scr(struct sppp *sp)
4592 sppp_chap_input(struct sppp *sp, struct mbuf *m)
4869 sppp_chap_init(struct sppp *sp)
4881 sppp_chap_open(struct sppp *sp, void *xcp)
4894 sppp_chap_tlu(struct sppp *sp)
4940 sppp_chap_scr(struct sppp *sp)
4978 sppp_chap_rcv_challenge_event(struct sppp *sp, void *xcp)
5023 sppp_pap_input(struct sppp *sp, struct mbuf *m)
5194 sppp_pap_init(struct sppp *sp)
5202 sppp_pap_tlu(struct sppp *sp)
5218 sppp_pap_scr(struct sppp *sp)
5262 sppp_auth_send(const struct cp *cp, struct sppp *sp,
5356 sppp_auth_role(const struct cp *cp, struct sppp *sp)
5373 sppp_auth_to_event(struct sppp *sp, void *xcp)
5417 sppp_auth_screply(const struct cp *cp, struct sppp *sp, u_char ctype,
5455 struct sppp *sp;
5556 sppp_get_ip_addrs(struct sppp *sp, uint32_t *src, uint32_t *dst, uint32_t *srcmask)
5596 sppp_set_ip_addrs(struct sppp *sp)
5671 sppp_clear_ip_addrs(struct sppp *sp)
5738 sppp_get_ip6_addrs(struct sppp *sp, struct in6_addr *src, struct in6_addr *dst,
5784 sppp_gen_ip6_addr(struct sppp *sp, struct in6_addr *addr)
5793 sppp_set_ip6_addr(struct sppp *sp, const struct in6_addr *src)
5838 sppp_suggest_ip6_addr(struct sppp *sp, struct in6_addr *suggest)
5864 sppp_params(struct sppp *sp, u_long cmd, void *data)
6237 sppp_phase_network(struct sppp *sp)
6455 sppp_null(struct sppp *unused)
6461 sppp_tls(const struct cp *cp, struct sppp *sp)
6471 sppp_tlf(const struct cp *cp, struct sppp *sp)
6489 sppp_screply(const struct cp *cp, struct sppp *sp, u_char type,
6517 sppp_ifdown(struct sppp *sp, void *xcp __unused)
6527 sppp_notify_up(struct sppp *sp)
6534 sppp_notify_down(struct sppp *sp)
6541 sppp_notify_tls_wlocked(struct sppp *sp)
6555 sppp_notify_tlf_wlocked(struct sppp *sp)
6569 sppp_notify_con(struct sppp *sp)
6580 sppp_notify_con_wlocked(struct sppp *sp)
6593 sppp_notify_chg_wlocked(struct sppp *sp)
6609 struct sppp *sp;
6622 sppp_wq_create(struct sppp *sp, const char *xnamebuf, pri_t prio, int ipl, int flags)
6638 sppp_wq_destroy(struct sppp *sp __unused, struct workqueue *wq)
6646 void (*func)(struct sppp *, void *), void *arg)