Lines Matching refs:hdlc

30  * $FreeBSD: stable/11/usr.sbin/ppp/hdlc.c 330449 2018-03-05 07:26:05Z eadler $
49 #include "hdlc.h"
101 hdlc_Init(struct hdlc *hdlc, struct lcp *lcp)
103 memset(hdlc, '\0', sizeof(struct hdlc));
104 hdlc->lqm.owner = lcp;
311 log_Printf(LogERROR, "Can't Pull a hdlc packet from a logical link\n");
324 p->hdlc.lqm.ifInOctets += len + 1; /* plus 1 flag octet! */
327 p->hdlc.lqm.ifInErrors++;
328 p->hdlc.stats.badfcs++;
334 p->hdlc.lqm.lqr.InGoodOctets += len + 1; /* plus 1 flag octet! */
335 p->hdlc.lqm.ifInUniPackets++;
387 struct hdlc *hdlc = &arg->cx->physical->hdlc;
391 hdlc->stats.badfcs);
393 HDLC_ADDR, hdlc->stats.badaddr);
395 HDLC_UI, hdlc->stats.badcommand);
397 hdlc->stats.unknownproto);
405 struct hdlc *hdlc = (struct hdlc *)v;
407 timer_Stop(&hdlc->ReportTimer);
409 if (memcmp(&hdlc->laststats, &hdlc->stats, sizeof hdlc->stats)) {
412 hdlc->lqm.owner->fsm.link->name,
413 hdlc->stats.badfcs - hdlc->laststats.badfcs,
414 hdlc->stats.badaddr - hdlc->laststats.badaddr,
415 hdlc->stats.badcommand - hdlc->laststats.badcommand,
416 hdlc->stats.unknownproto - hdlc->laststats.unknownproto);
417 hdlc->laststats = hdlc->stats;
420 timer_Start(&hdlc->ReportTimer);
424 hdlc_StartTimer(struct hdlc *hdlc)
426 timer_Stop(&hdlc->ReportTimer);
427 hdlc->ReportTimer.load = 60 * SECTICKS;
428 hdlc->ReportTimer.arg = hdlc;
429 hdlc->ReportTimer.func = hdlc_ReportTime;
430 hdlc->ReportTimer.name = "hdlc";
431 timer_Start(&hdlc->ReportTimer);
435 hdlc_StopTimer(struct hdlc *hdlc)
437 timer_Stop(&hdlc->ReportTimer);
440 struct layer hdlclayer = { LAYER_HDLC, "hdlc", hdlc_LayerPush, hdlc_LayerPull };