Lines Matching defs:ppp

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)
154 npppd_who_init(&stopped->ppp_who, ppp);
165 npppd_ppp *ppp;
169 ppp = snp->snp_data_ptr;
170 if (npppd_ctl_add_started_ppp_id(_this, ppp->id) != 0)
181 npppd_ppp *ppp;
184 if ((ppp = npppd_get_ppp_by_id(_this->npppd, ppp_id[i]))
186 ppp_stop(ppp, NULL);
200 npppd_ppp *ppp;
238 if ((ppp = npppd_get_ppp_by_id(_this->npppd,
242 npppd_who_init(&who_list->entry[cnt], ppp);
265 npppd_who_init(struct npppd_who *_this, npppd_ppp *ppp)
268 npppd_auth_base *realm = ppp->realm;
269 npppd_iface *iface = ppp_iface(ppp);
271 strlcpy(_this->username, ppp->username, sizeof(_this->username));
272 _this->time = ppp->start_time;
274 _this->duration_sec = curr_time.tv_sec - ppp->start_monotime;
276 ppp->pppd, ppp), sizeof(_this->tunnel_proto));
279 if (((struct sockaddr *)&ppp->phy_info)->sa_len > 0) {
280 memcpy(&_this->tunnel_peer, &ppp->phy_info,
282 ((struct sockaddr *)&ppp->phy_info)->sa_len));
292 _this->framed_ip_address = ppp->acct_framed_ip_address;
293 _this->ipackets = ppp->ipackets;
294 _this->opackets = ppp->opackets;
295 _this->ierrors = ppp->ierrors;
296 _this->oerrors = ppp->oerrors;
297 _this->ibytes = ppp->ibytes;
298 _this->obytes = ppp->obytes;
299 _this->ppp_id = ppp->id;
300 _this->mru = ppp->peer_mru;
303 if (ppp->pipex_enabled != 0) {
304 if (npppd_ppp_get_pipex_stat(_this, ppp) != 0) {
315 npppd_ppp_get_pipex_stat(struct npppd_who *_this, npppd_ppp *ppp)
317 npppd_iface *iface = ppp_iface(ppp);
329 if (ppp->pipex_enabled == 0)
333 switch(ppp->tunnel_type) {
336 pppoe = (pppoe_session *)ppp->phy_context;
345 pptp = (pptp_call *)ppp->phy_context;
354 l2tp = (l2tp_call *)ppp->phy_context;