/openbsd-current/usr.sbin/npppd/npppd/ |
H A D | ipcp.c | 105 ipcp_init(ipcp *_this, npppd_ppp *ppp) argument 111 _this->ppp = ppp; 112 _this->fsm.ppp = ppp; 119 conf = ppp_get_tunnconf(ppp); 133 if (npppd_prepare_ip(f->ppp->pppd, f->ppp) != 0) { 135 ppp_stop(f->ppp, NULL); 143 return f->ppp 200 npppd_ppp *ppp; local [all...] |
H A D | npppd_ctl.c | 65 static int npppd_ppp_get_pipex_stat(struct npppd_who *_this, npppd_ppp *ppp); 144 npppd_ctl_add_stopped_ppp(struct npppd_ctl *_this, npppd_ppp *ppp) argument 154 npppd_who_init(&stopped->ppp_who, ppp); 165 npppd_ppp *ppp; local 169 ppp = snp->snp_data_ptr; 170 if (npppd_ctl_add_started_ppp_id(_this, ppp->id) != 0) 181 npppd_ppp *ppp; local 184 if ((ppp = npppd_get_ppp_by_id(_this->npppd, ppp_id[i])) 186 ppp_stop(ppp, NULL); 200 npppd_ppp *ppp; local 265 npppd_who_init(struct npppd_who *_this, npppd_ppp *ppp) argument 315 npppd_ppp_get_pipex_stat(struct npppd_who *_this, npppd_ppp *ppp) argument [all...] |
H A D | npppd.c | 593 npppd_ppp *ppp; local 613 ppp = snp->snp_data_ptr; 614 if (ppp->ppp_framed_ip_netmask.s_addr 616 in_host_route_add(&ppp-> 618 &ppp_iface(ppp)->ip4addr, 619 ppp_iface(ppp)->ifname, 620 MRU_IPMTU(ppp->peer_mru)); 622 in_route_add(&ppp-> 624 &ppp->ppp_framed_ip_netmask, 625 &ppp_iface(ppp) 662 npppd_get_user_password(npppd *_this, npppd_ppp *ppp, const char *username, char *password, int *plpassword) argument 675 npppd_get_user_framed_ip_address(npppd *_this, npppd_ppp *ppp, const char *username) argument 713 npppd_check_calling_number(npppd *_this, npppd_ppp *ppp) argument 788 npppd_ppp *ppp0, *ppp; local 830 npppd_ppp *ppp, *tppp; local 881 npppd_check_user_max_session(npppd *_this, npppd_ppp *ppp) argument 924 npppd_network_output(npppd *_this, npppd_ppp *ppp, int proto, u_char *pktp, int lpktp) argument 976 npppd_iface_write(ppp_iface(ppp), ppp, proto, pktp, lpktp); local 984 pipex_setup_common(npppd_ppp *ppp, struct pipex_session_req *req) argument 1038 npppd_ppp_pipex_enable(npppd *_this, npppd_ppp *ppp) argument 1184 npppd_ppp_pipex_disable(npppd *_this, npppd_ppp *ppp) argument 1252 npppd_ppp *ppp; local 1333 npppd_prepare_ip(npppd *_this, npppd_ppp *ppp) argument 1357 npppd_release_ip(npppd *_this, npppd_ppp *ppp) argument 1374 npppd_set_ip_enabled(npppd *_this, npppd_ppp *ppp, int enabled) argument 1521 npppd_assign_ip_addr(npppd *_this, npppd_ppp *ppp, uint32_t req_ip4) argument 1654 npppd_ppp *ppp; local 2001 npppd_ppp_bind_realm(npppd *_this, npppd_ppp *ppp, const char *username, int eap_required) argument 2072 npppd_ppp_is_realm_local(npppd *_this, npppd_ppp *ppp) argument 2086 npppd_ppp_is_realm_radius(npppd *_this, npppd_ppp *ppp) argument 2100 npppd_ppp_is_realm_ready(npppd *_this, npppd_ppp *ppp) argument 2110 npppd_ppp_get_realm_name(npppd *_this, npppd_ppp *ppp) argument 2119 npppd_ppp_get_iface_name(npppd *_this, npppd_ppp *ppp) argument 2128 npppd_ppp_iface_is_ready(npppd *_this, npppd_ppp *ppp) argument 2136 npppd_ppp_bind_iface(npppd *_this, npppd_ppp *ppp) argument 2209 npppd_ppp_unbind_iface(npppd *_this, npppd_ppp *ppp) argument 2248 npppd_get_radius_auth_setting(npppd *_this, npppd_ppp *ppp) argument 2269 npppd_ppp *ppp; local 2331 npppd_ppp_get_username_for_auth(npppd *_this, npppd_ppp *ppp, const char *username, char *username_buffer) argument 2362 npppd_ppp_tunnel_protocol_name(npppd *_this, npppd_ppp *ppp) argument 2381 npppd_on_ppp_start(npppd *_this, npppd_ppp *ppp) argument 2394 npppd_on_ppp_stop(npppd *_this, npppd_ppp *ppp) argument [all...] |
H A D | ccp.c | 87 ccp_init(ccp *_this, npppd_ppp *ppp) argument 93 _this->ppp = ppp; 96 _this->fsm.ppp = ppp; 100 conf = ppp_get_tunnconf(ppp); 119 npppd_ppp *ppp; local 121 ppp = f->ppp; 151 if (ppp 288 npppd_ppp *ppp; local [all...] |
H A D | npppd_local.h | 180 #define ppp_iface(ppp) (&(ppp)->pppd->iface[(ppp)->ifidx]) 181 #define ppp_ipcp(ppp) ((ppp)->pppd->iface[(ppp)->ifidx].ipcpconf) 182 #define ppp_pool(ppp) ((ppp)->pppd->iface_pool[(ppp)->ifidx])
|
H A D | npppd_radius.c | 73 * the given RADIUS packet and set them as the fields of ppp context. 98 npppd_ppp_radius_acct_start(npppd *pppd, npppd_ppp *ppp) argument 100 NPPPD_RADIUS_DBG((ppp, LOG_INFO, "%s()", __func__)); 102 if (ppp->realm == NULL || !npppd_ppp_is_realm_radius(pppd, ppp)) 104 radius_acct_request(pppd, ppp, 0); 109 npppd_ppp_radius_acct_stop(npppd *pppd, npppd_ppp *ppp) argument 111 NPPPD_RADIUS_DBG((ppp, LOG_INFO, "%s()", __func__)); 113 if (ppp->realm == NULL || !npppd_ppp_is_realm_radius(pppd, ppp)) 184 radius_acct_request(npppd *pppd, npppd_ppp *ppp, int stop) argument [all...] |
H A D | lcp.c | 49 #include "ppp.h" 113 lcp_init(lcp *_this, npppd_ppp *ppp) argument 119 _this->fsm.ppp = ppp; 129 conf = ppp_get_tunnconf(ppp); 199 _this = &f->ppp->lcp; 216 ppp_set_disconnect_cause(f->ppp, 220 ppp_stop(f->ppp, "Authentication is required"); 224 f->ppp->peer_auth = peer_auth; 226 if (_this->xxxmru > 0 && f->ppp [all...] |
H A D | pap.c | 50 #include "ppp.h" 112 pap_init(pap *_this, npppd_ppp *ppp) argument 114 _this->ppp = ppp; 126 pap_authenticate(_this, _this->ppp->proxy_authen_resp); 240 if (npppd_ppp_bind_realm(_this->ppp->pppd, _this->ppp, _this->name, 0) 242 if (!npppd_ppp_is_realm_ready(_this->ppp->pppd, _this->ppp)) { 249 if (npppd_ppp_is_realm_radius(_this->ppp [all...] |
H A D | chap.c | 58 #include "ppp.h" 129 chap_init(chap *_this, npppd_ppp *ppp) argument 133 CHAP_ASSERT(ppp != NULL); 137 _this->ppp = ppp; 139 conf = ppp_get_tunnconf(ppp); 160 CHAP_ASSERT(_this->ppp != NULL); 165 chap_authenticate(_this, _this->ppp->proxy_authen_resp, 166 _this->ppp->lproxy_authen_resp); 174 _this->type = _this->ppp [all...] |
H A D | npppd_iface.c | 126 npppd_ppp *ppp; local 210 ppp = npppd_get_ppp_by_ip(_this->npppd, _this->ip4addr); 211 if (ppp != NULL) { 213 "Assigning %s, but ppp=%d is using " 214 "the address. Requested the ppp to stop", 215 inet_ntoa(_this->ip4addr), ppp->id); 216 ppp_stop(ppp, "Administrative reason"); 405 npppd_ppp *ppp; local 413 ppp = snp->snp_data_ptr; 414 if (ppp_iface(ppp) ! 439 npppd_ppp *ppp; local 541 npppd_iface_write(npppd_iface *_this, npppd_ppp *ppp, int proto, u_char *pktp, int lpktp) argument [all...] |
H A D | ppp.h | 1 /* $OpenBSD: ppp.h,v 1.24 2022/12/28 21:30:17 jmc Exp $ */ 289 npppd_ppp *ppp; member in struct:_chap 310 npppd_ppp *ppp; member in struct:_pap 323 npppd_ppp *ppp; member in struct:_eap 346 npppd_ppp *ppp; member in struct:_ccp 357 npppd_ppp *ppp; member in struct:_ipcp 369 npppd_ppp *ppp, 381 npppd_ppp *ppp 409 npppd_ppp *ppp; member in struct:_mppe 473 * phy_close() will be called by any cases disconnecting. ppp wil [all...] |
H A D | npppd_pool.c | 281 npppd_pool_get_dynamic(npppd_pool *_this, npppd_ppp *ppp) argument 357 npppd_pool_assign_ip(npppd_pool *_this, npppd_ppp *ppp) argument 371 ip4 = ntohl(ppp->ppp_framed_ip_address.s_addr); 382 addr.sin_addr = ppp->ppp_framed_ip_address; 383 mask.sin_addr = ppp->ppp_framed_ip_netmask; 391 ppp->snp.snp_next = snp; 393 "pool %s/32 => %s(ppp=%d)", 394 inet_ntoa(ppp->ppp_framed_ip_address), ppp->username, 395 ppp 412 npppd_pool_release_ip(npppd_pool *_this, npppd_ppp *ppp) argument [all...] |
H A D | mppe.c | 100 mppe_init(mppe *_this, npppd_ppp *ppp) argument 104 MPPE_ASSERT(ppp != NULL); 109 _this->ppp = ppp; 114 conf = ppp_get_tunnconf(ppp); 194 strlcpy(buf, mppe_bits_to_string(_this->ppp->ccp.mppe_o_bits), 198 mppe_bits_to_string(_this->ppp->ccp.mppe_p_bits)); 200 _this->ppp->mppe_started = 1; 203 ((_this->ppp->ccp.mppe_o_bits & CCP_MPPE_STATELESS) != 0)? 1 : 0; 205 if ((_this->ppp [all...] |
H A D | fsm.h | 56 npppd_ppp *ppp; /* npppd's ppp */ member in struct:fsm
|
H A D | Makefile | 10 SRCS= ccp.c chap.c chap_ms.c fsm.c ipcp.c lcp.c mppe.c pap.c ppp.c
|
H A D | ppp.c | 1 /* $OpenBSD: ppp.c,v 1.31 2024/02/26 10:42:05 yasuoka Exp $ */ 28 /* $Id: ppp.c,v 1.31 2024/02/26 10:42:05 yasuoka Exp $ */ 52 #include "ppp.h" 86 #define AUTH_IS_PAP(ppp) ((ppp)->peer_auth == PPP_AUTH_PAP) 87 #define AUTH_IS_CHAP(ppp) ((ppp)->peer_auth == PPP_AUTH_CHAP_MD5 ||\ 88 (ppp)->peer_auth == PPP_AUTH_CHAP_MS || \ 89 (ppp)->peer_auth == PPP_AUTH_CHAP_MS_V2) 90 #define AUTH_IS_EAP(ppp) ((pp [all...] |
H A D | fsm.c | 728 outp = f->ppp->outpacket_buf + PPP_HDRLEN + HEADERLEN; 731 if( cilen > f->ppp->mru - HEADERLEN ) 732 cilen = f->ppp->mru - HEADERLEN; 755 ppp_output(f->ppp, f->protocol, code, id, data, datalen); 769 snprintf(logbuf, sizeof(logbuf), "ppp id=%u layer=%s %s", f->ppp->id,
|
/openbsd-current/usr.sbin/npppd/pppoe/ |
H A D | pppoe_session.c | 61 #include "ppp.h" 119 if (_this->ppp != NULL) 120 ppp_phy_downed(_this->ppp); 156 npppd_ppp *ppp; local 158 ppp = _this->ppp; 159 if (_this->ppp == NULL) 165 rval = ppp->recv_packet(ppp, pkt, lpkt, 0); 166 if (_this->ppp 440 pppoe_session_ppp_output(npppd_ppp *ppp, u_char *pkt, int lpkt, int flag) argument 463 pppoe_session_close_by_ppp(npppd_ppp *ppp) argument 481 npppd_ppp *ppp; local [all...] |
H A D | pppoe.h | 160 void *ppp; member in struct:_pppoe_session
|
/openbsd-current/usr.sbin/npppd/l2tp/ |
H A D | l2tp_call.c | 879 /* input packet to ppp */ 884 npppd_ppp *ppp; local 886 ppp = _this->ppp; 887 rval = ppp->recv_packet(ppp, pkt, pktlen, 890 if (_this->ppp == NULL) /* ppp is freed */ 894 ppp->ierrors++; 896 ppp 903 l2tp_call_ppp_output(npppd_ppp *ppp, unsigned char *bytes, int nbytes, int flags) argument 929 l2tp_call_closed_by_ppp(npppd_ppp *ppp) argument 995 npppd_ppp *ppp; local [all...] |
/openbsd-current/usr.sbin/npppd/pptp/ |
H A D | pptp_call.c | 536 /* XXX : TODO: should it counts lost packets ppp->ierrors 537 * and update ppp->ierrors counter? */ 650 /* notify to ppp that the PPTP physical layer is already downed */ 654 if (_this->ppp != NULL) 655 ppp_phy_downed(_this->ppp); 659 /* input packet to ppp */ 664 npppd_ppp *ppp; local 666 ppp = _this->ppp; 667 if (ppp 686 pptp_call_ppp_output(npppd_ppp *ppp, unsigned char *bytes, int nbytes, int flags) argument 709 pptp_call_closed_by_ppp(npppd_ppp *ppp) argument 732 npppd_ppp *ppp; local [all...] |
/openbsd-current/regress/sbin/ifconfig/ |
H A D | Makefile | 205 ### ppp 207 REGRESS_TARGETS += run-ppp-addr 208 run-ppp-addr: 213 REGRESS_TARGETS += run-ppp-inet 214 run-ppp-inet: 219 REGRESS_TARGETS += run-ppp-netmask 220 run-ppp-netmask: 225 REGRESS_TARGETS += run-ppp-len 226 run-ppp-len: 231 REGRESS_TARGETS += run-ppp [all...] |
/openbsd-current/gnu/usr.bin/perl/t/op/ |
H A D | postfixderef.t | 364 sub ppp { "qqq" } 365 my $h = { ppp => "pp", qqq => "qq", rrr => 7 }; 366 is ${$h}{ppp}, "pp"; 369 is $ar->[0]->{ppp}, "pp"; 371 is $ar->[0]{ppp}, "pp"; 374 is $hr->{"h"}->{ppp}, "pp"; 376 is $hr->{"h"}{ppp}, "pp"; 379 is $cr->()->{ppp}, "pp"; 381 is $cr->(){ppp}, "pp";
|
/openbsd-current/sys/arch/sparc64/sparc64/ |
H A D | disksubr.c | 226 struct sun_partinfo *ppp; local 344 ppp = &preamble->sl_part[i-1]; 345 for (; i > 0; i--, npp--, ppp--) { 348 if ((ppp->spi_tag == 0) && (ppp->spi_flag == 0)) 351 switch (ppp->spi_tag) {
|
/openbsd-current/sys/arch/sparc64/stand/ofwboot/ |
H A D | ofdev.c | 276 struct sun_partinfo *ppp; local 391 ppp = &preamble->sl_part[i-1]; 392 for (; i > 0; i--, npp--, ppp--) { 395 if ((ppp->spi_tag == 0) && (ppp->spi_flag == 0)) 398 switch (ppp->spi_tag) {
|