Lines Matching full:physical
57 #include "physical.h"
166 struct physical *p = link2physical(lcp->fsm.link); in SendLqrReport()
204 struct physical *p = link2physical(l); in lqr_Input()
209 log_Printf(LogERROR, "lqr_Input: Not a physical link - dropped\n"); in lqr_Input()
270 struct physical *physical = link2physical(lcp->fsm.link); in lqr_Setup() local
273 physical->hdlc.lqm.lqr.resent = 0; in lqr_Setup()
274 physical->hdlc.lqm.echo.seq_sent = 0; in lqr_Setup()
275 physical->hdlc.lqm.echo.seq_recv = 0; in lqr_Setup()
276 memset(&physical->hdlc.lqm.lqr.peer, '\0', in lqr_Setup()
277 sizeof physical->hdlc.lqm.lqr.peer); in lqr_Setup()
279 physical->hdlc.lqm.method = lcp->cfg.echo ? LQM_ECHO : 0; in lqr_Setup()
281 physical->hdlc.lqm.method |= LQM_LQR; in lqr_Setup()
282 timer_Stop(&physical->hdlc.lqm.timer); in lqr_Setup()
284 physical->hdlc.lqm.lqr.peer_timeout = lcp->his_lqrperiod; in lqr_Setup()
287 physical->link.name, lcp->his_lqrperiod / 100, in lqr_Setup()
292 physical->hdlc.lqm.timer.func = SendLqrReport; in lqr_Setup()
293 physical->hdlc.lqm.timer.name = "lqm"; in lqr_Setup()
294 physical->hdlc.lqm.timer.arg = lcp; in lqr_Setup()
296 if (lcp->want_lqrperiod || physical->hdlc.lqm.method & LQM_ECHO) { in lqr_Setup()
298 physical->link.name, lcp->want_lqrperiod ? "LQR" : "LCP ECHO", in lqr_Setup()
300 physical->hdlc.lqm.timer.load = period * SECTICKS / 100; in lqr_Setup()
302 physical->hdlc.lqm.timer.load = 0; in lqr_Setup()
305 physical->link.name); in lqr_Setup()
312 struct physical *p = link2physical(lcp->fsm.link); in lqr_Start()
322 struct physical *p = link2physical(lcp->fsm.link); in lqr_reStart()
330 lqr_StopTimer(struct physical *physical) in lqr_StopTimer() argument
332 timer_Stop(&physical->hdlc.lqm.timer); in lqr_StopTimer()
336 lqr_Stop(struct physical *physical, int method) in lqr_Stop() argument
340 physical->link.name); in lqr_Stop()
343 physical->link.name); in lqr_Stop()
344 physical->hdlc.lqm.method &= ~method; in lqr_Stop()
345 if (physical->hdlc.lqm.method) in lqr_Stop()
346 SendLqrReport(physical->hdlc.lqm.owner); in lqr_Stop()
348 timer_Stop(&physical->hdlc.lqm.timer); in lqr_Stop()
406 " and physical errors\n"); in lqr_Analyse()
410 log_Printf(LogLQM, " Likely due to physical errors\n"); in lqr_Analyse()
420 struct physical *p = link2physical(l); in lqr_LayerPush()