Lines Matching refs:physical
57 #include "physical.h"
165 struct physical *p = link2physical(lcp->fsm.link);
203 struct physical *p = link2physical(l);
208 log_Printf(LogERROR, "lqr_Input: Not a physical link - dropped\n");
269 struct physical *physical = link2physical(lcp->fsm.link);
272 physical->hdlc.lqm.lqr.resent = 0;
273 physical->hdlc.lqm.echo.seq_sent = 0;
274 physical->hdlc.lqm.echo.seq_recv = 0;
275 memset(&physical->hdlc.lqm.lqr.peer, '\0',
276 sizeof physical->hdlc.lqm.lqr.peer);
278 physical->hdlc.lqm.method = lcp->cfg.echo ? LQM_ECHO : 0;
280 physical->hdlc.lqm.method |= LQM_LQR;
281 timer_Stop(&physical->hdlc.lqm.timer);
283 physical->hdlc.lqm.lqr.peer_timeout = lcp->his_lqrperiod;
286 physical->link.name, lcp->his_lqrperiod / 100,
291 physical->hdlc.lqm.timer.func = SendLqrReport;
292 physical->hdlc.lqm.timer.name = "lqm";
293 physical->hdlc.lqm.timer.arg = lcp;
295 if (lcp->want_lqrperiod || physical->hdlc.lqm.method & LQM_ECHO) {
297 physical->link.name, lcp->want_lqrperiod ? "LQR" : "LCP ECHO",
299 physical->hdlc.lqm.timer.load = period * SECTICKS / 100;
301 physical->hdlc.lqm.timer.load = 0;
304 physical->link.name);
311 struct physical *p = link2physical(lcp->fsm.link);
321 struct physical *p = link2physical(lcp->fsm.link);
329 lqr_StopTimer(struct physical *physical)
331 timer_Stop(&physical->hdlc.lqm.timer);
335 lqr_Stop(struct physical *physical, int method)
339 physical->link.name);
342 physical->link.name);
343 physical->hdlc.lqm.method &= ~method;
344 if (physical->hdlc.lqm.method)
345 SendLqrReport(physical->hdlc.lqm.owner);
347 timer_Stop(&physical->hdlc.lqm.timer);
405 " and physical errors\n");
409 log_Printf(LogLQM, " Likely due to physical errors\n");
419 struct physical *p = link2physical(l);