Symbol: hdlc
usr.sbin/ppp/acf.c
89
p->hdlc.lqm.ifInErrors++;
usr.sbin/ppp/acf.c
90
p->hdlc.stats.badaddr++;
usr.sbin/ppp/acf.c
96
p->hdlc.lqm.ifInErrors++;
usr.sbin/ppp/acf.c
97
p->hdlc.stats.badcommand++;
usr.sbin/ppp/command.c
2909
cx->physical->hdlc.lqm.method &= ~LQM_ECHO;
usr.sbin/ppp/command.c
2910
if (cx->physical->hdlc.lqm.method & LQM_ECHO &&
usr.sbin/ppp/command.c
2912
cx->physical->hdlc.lqm.timer.load) {
usr.sbin/ppp/command.c
2913
cx->physical->hdlc.lqm.timer.load = 0;
usr.sbin/ppp/command.c
2918
cx->physical->hdlc.lqm.method |= LQM_ECHO;
usr.sbin/ppp/command.c
2919
cx->physical->hdlc.lqm.timer.load =
usr.sbin/ppp/command.c
2922
(*cx->physical->hdlc.lqm.timer.func)(&cx->physical->link.lcp);
usr.sbin/ppp/datalink.c
237
hdlc_Init(&dl->physical->hdlc, &dl->physical->link.lcp);
usr.sbin/ppp/hdlc.c
101
memset(hdlc, '\0', sizeof(struct hdlc));
usr.sbin/ppp/hdlc.c
102
hdlc->lqm.owner = lcp;
usr.sbin/ppp/hdlc.c
322
p->hdlc.lqm.ifInOctets += len + 1; /* plus 1 flag octet! */
usr.sbin/ppp/hdlc.c
325
p->hdlc.lqm.ifInErrors++;
usr.sbin/ppp/hdlc.c
326
p->hdlc.stats.badfcs++;
usr.sbin/ppp/hdlc.c
332
p->hdlc.lqm.lqr.InGoodOctets += len + 1; /* plus 1 flag octet! */
usr.sbin/ppp/hdlc.c
333
p->hdlc.lqm.ifInUniPackets++;
usr.sbin/ppp/hdlc.c
385
struct hdlc *hdlc = &arg->cx->physical->hdlc;
usr.sbin/ppp/hdlc.c
389
hdlc->stats.badfcs);
usr.sbin/ppp/hdlc.c
391
HDLC_ADDR, hdlc->stats.badaddr);
usr.sbin/ppp/hdlc.c
393
HDLC_UI, hdlc->stats.badcommand);
usr.sbin/ppp/hdlc.c
395
hdlc->stats.unknownproto);
usr.sbin/ppp/hdlc.c
403
struct hdlc *hdlc = (struct hdlc *)v;
usr.sbin/ppp/hdlc.c
405
timer_Stop(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
407
if (memcmp(&hdlc->laststats, &hdlc->stats, sizeof hdlc->stats)) {
usr.sbin/ppp/hdlc.c
410
hdlc->lqm.owner->fsm.link->name,
usr.sbin/ppp/hdlc.c
411
hdlc->stats.badfcs - hdlc->laststats.badfcs,
usr.sbin/ppp/hdlc.c
412
hdlc->stats.badaddr - hdlc->laststats.badaddr,
usr.sbin/ppp/hdlc.c
413
hdlc->stats.badcommand - hdlc->laststats.badcommand,
usr.sbin/ppp/hdlc.c
414
hdlc->stats.unknownproto - hdlc->laststats.unknownproto);
usr.sbin/ppp/hdlc.c
415
hdlc->laststats = hdlc->stats;
usr.sbin/ppp/hdlc.c
418
timer_Start(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
422
hdlc_StartTimer(struct hdlc *hdlc)
usr.sbin/ppp/hdlc.c
424
timer_Stop(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
425
hdlc->ReportTimer.load = 60 * SECTICKS;
usr.sbin/ppp/hdlc.c
426
hdlc->ReportTimer.arg = hdlc;
usr.sbin/ppp/hdlc.c
427
hdlc->ReportTimer.func = hdlc_ReportTime;
usr.sbin/ppp/hdlc.c
428
hdlc->ReportTimer.name = "hdlc";
usr.sbin/ppp/hdlc.c
429
timer_Start(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
433
hdlc_StopTimer(struct hdlc *hdlc)
usr.sbin/ppp/hdlc.c
435
timer_Stop(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
99
hdlc_Init(struct hdlc *hdlc, struct lcp *lcp)
usr.sbin/ppp/hdlc.h
104
extern void hdlc_Init(struct hdlc *, struct lcp *);
usr.sbin/ppp/hdlc.h
105
extern void hdlc_StartTimer(struct hdlc *);
usr.sbin/ppp/hdlc.h
106
extern void hdlc_StopTimer(struct hdlc *);
usr.sbin/ppp/lcp.c
581
hdlc_StartTimer(&p->hdlc);
usr.sbin/ppp/lcp.c
596
hdlc_StopTimer(&p->hdlc);
usr.sbin/ppp/link.c
392
p->hdlc.lqm.ifInDiscards++;
usr.sbin/ppp/link.c
393
p->hdlc.stats.unknownproto++;
usr.sbin/ppp/lqr.c
114
if ((hdlc->lqm.echo.seq_recv > (u_int32_t)0 - 5 && lqr.sequence < 5) ||
usr.sbin/ppp/lqr.c
115
(hdlc->lqm.echo.seq_recv <= (u_int32_t)0 - 5 &&
usr.sbin/ppp/lqr.c
116
lqr.sequence > hdlc->lqm.echo.seq_recv))
usr.sbin/ppp/lqr.c
117
hdlc->lqm.echo.seq_recv = lqr.sequence;
usr.sbin/ppp/lqr.c
168
timer_Stop(&p->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
170
if (p->hdlc.lqm.method & LQM_LQR) {
usr.sbin/ppp/lqr.c
171
if (p->hdlc.lqm.lqr.resent > 5) {
usr.sbin/ppp/lqr.c
177
p->hdlc.lqm.method = 0;
usr.sbin/ppp/lqr.c
181
p->hdlc.lqm.lqr.resent++;
usr.sbin/ppp/lqr.c
183
} else if (p->hdlc.lqm.method & LQM_ECHO) {
usr.sbin/ppp/lqr.c
184
if ((p->hdlc.lqm.echo.seq_sent > 5 &&
usr.sbin/ppp/lqr.c
185
p->hdlc.lqm.echo.seq_sent - 5 > p->hdlc.lqm.echo.seq_recv) ||
usr.sbin/ppp/lqr.c
186
(p->hdlc.lqm.echo.seq_sent <= 5 &&
usr.sbin/ppp/lqr.c
187
p->hdlc.lqm.echo.seq_sent > p->hdlc.lqm.echo.seq_recv + 5)) {
usr.sbin/ppp/lqr.c
192
p->hdlc.lqm.method = 0;
usr.sbin/ppp/lqr.c
197
if (p->hdlc.lqm.method && p->hdlc.lqm.timer.load)
usr.sbin/ppp/lqr.c
198
timer_Start(&p->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
205
struct lcp *lcp = p->hdlc.lqm.owner;
usr.sbin/ppp/lqr.c
218
else if (!IsAccepted(l->lcp.cfg.lqr) && !(p->hdlc.lqm.method & LQM_LQR)) {
usr.sbin/ppp/lqr.c
233
memcpy(&lastlqr, &p->hdlc.lqm.lqr.peer, sizeof lastlqr);
usr.sbin/ppp/lqr.c
234
lqr_ChangeOrder(lqr, &p->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
235
lqr_Dump(l->name, "Input", &p->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
237
p->hdlc.lqm.lqr.resent = 0;
usr.sbin/ppp/lqr.c
240
memcpy(&p->hdlc.lqm.lqr.prevSave, &p->hdlc.lqm.lqr.Save,
usr.sbin/ppp/lqr.c
241
sizeof p->hdlc.lqm.lqr.prevSave);
usr.sbin/ppp/lqr.c
242
p->hdlc.lqm.lqr.Save.InLQRs = ++p->hdlc.lqm.lqr.InLQRs;
usr.sbin/ppp/lqr.c
243
p->hdlc.lqm.lqr.Save.InPackets = p->hdlc.lqm.ifInUniPackets;
usr.sbin/ppp/lqr.c
244
p->hdlc.lqm.lqr.Save.InDiscards = p->hdlc.lqm.ifInDiscards;
usr.sbin/ppp/lqr.c
245
p->hdlc.lqm.lqr.Save.InErrors = p->hdlc.lqm.ifInErrors;
usr.sbin/ppp/lqr.c
246
p->hdlc.lqm.lqr.Save.InOctets = p->hdlc.lqm.lqr.InGoodOctets;
usr.sbin/ppp/lqr.c
248
lqr_Analyse(&p->hdlc, &lastlqr, &p->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
254
if (p->hdlc.lqm.timer.load == 0 || !(p->hdlc.lqm.method & LQM_LQR) ||
usr.sbin/ppp/lqr.c
256
lastlqr.PeerInLQRs == p->hdlc.lqm.lqr.peer.PeerInLQRs))
usr.sbin/ppp/lqr.c
273
physical->hdlc.lqm.lqr.resent = 0;
usr.sbin/ppp/lqr.c
274
physical->hdlc.lqm.echo.seq_sent = 0;
usr.sbin/ppp/lqr.c
275
physical->hdlc.lqm.echo.seq_recv = 0;
usr.sbin/ppp/lqr.c
276
memset(&physical->hdlc.lqm.lqr.peer, '\0',
usr.sbin/ppp/lqr.c
277
sizeof physical->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
279
physical->hdlc.lqm.method = lcp->cfg.echo ? LQM_ECHO : 0;
usr.sbin/ppp/lqr.c
281
physical->hdlc.lqm.method |= LQM_LQR;
usr.sbin/ppp/lqr.c
282
timer_Stop(&physical->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
284
physical->hdlc.lqm.lqr.peer_timeout = lcp->his_lqrperiod;
usr.sbin/ppp/lqr.c
292
physical->hdlc.lqm.timer.func = SendLqrReport;
usr.sbin/ppp/lqr.c
293
physical->hdlc.lqm.timer.name = "lqm";
usr.sbin/ppp/lqr.c
294
physical->hdlc.lqm.timer.arg = lcp;
usr.sbin/ppp/lqr.c
296
if (lcp->want_lqrperiod || physical->hdlc.lqm.method & LQM_ECHO) {
usr.sbin/ppp/lqr.c
300
physical->hdlc.lqm.timer.load = period * SECTICKS / 100;
usr.sbin/ppp/lqr.c
302
physical->hdlc.lqm.timer.load = 0;
usr.sbin/ppp/lqr.c
315
if (p->hdlc.lqm.timer.load)
usr.sbin/ppp/lqr.c
325
if (p->hdlc.lqm.timer.load)
usr.sbin/ppp/lqr.c
326
timer_Start(&p->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
332
timer_Stop(&physical->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
344
physical->hdlc.lqm.method &= ~method;
usr.sbin/ppp/lqr.c
345
if (physical->hdlc.lqm.method)
usr.sbin/ppp/lqr.c
346
SendLqrReport(physical->hdlc.lqm.owner);
usr.sbin/ppp/lqr.c
348
timer_Stop(&physical->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
372
lqr_Analyse(const struct hdlc *hdlc, const struct lqrdata *oldlqr,
usr.sbin/ppp/lqr.c
384
transitLQRs = hdlc->lqm.lqr.OutLQRs - newlqr->LastOutLQRs;
usr.sbin/ppp/lqr.c
395
(hdlc->lqm.lqr.Save.InPackets - hdlc->lqm.lqr.prevSave.InPackets);
usr.sbin/ppp/lqr.c
397
(hdlc->lqm.lqr.Save.InOctets - hdlc->lqm.lqr.prevSave.InOctets);
usr.sbin/ppp/lqr.c
449
p->hdlc.lqm.ifOutUniPackets++;
usr.sbin/ppp/lqr.c
450
p->hdlc.lqm.ifOutOctets += len + 1; /* plus 1 flag octet! */
usr.sbin/ppp/lqr.c
454
p->hdlc.lqm.ifOutOctets += acf_WrapperOctets(&l->lcp, *proto);
usr.sbin/ppp/lqr.c
460
p->hdlc.lqm.ifOutOctets += hdlc_WrapperOctets();
usr.sbin/ppp/lqr.c
466
p->hdlc.lqm.ifOutOctets += proto_WrapperOctets(&l->lcp, *proto);
usr.sbin/ppp/lqr.c
482
p->hdlc.lqm.lqr.OutLQRs++;
usr.sbin/ppp/lqr.c
493
lqr.LastOutLQRs = p->hdlc.lqm.lqr.peer.PeerOutLQRs;
usr.sbin/ppp/lqr.c
494
lqr.LastOutPackets = p->hdlc.lqm.lqr.peer.PeerOutPackets;
usr.sbin/ppp/lqr.c
495
lqr.LastOutOctets = p->hdlc.lqm.lqr.peer.PeerOutOctets;
usr.sbin/ppp/lqr.c
496
lqr.PeerInLQRs = p->hdlc.lqm.lqr.Save.InLQRs;
usr.sbin/ppp/lqr.c
497
lqr.PeerInPackets = p->hdlc.lqm.lqr.Save.InPackets;
usr.sbin/ppp/lqr.c
498
lqr.PeerInDiscards = p->hdlc.lqm.lqr.Save.InDiscards;
usr.sbin/ppp/lqr.c
499
lqr.PeerInErrors = p->hdlc.lqm.lqr.Save.InErrors;
usr.sbin/ppp/lqr.c
500
lqr.PeerInOctets = p->hdlc.lqm.lqr.Save.InOctets;
usr.sbin/ppp/lqr.c
501
lqr.PeerOutLQRs = p->hdlc.lqm.lqr.OutLQRs;
usr.sbin/ppp/lqr.c
502
lqr.PeerOutPackets = p->hdlc.lqm.ifOutUniPackets - pending_pkts;
usr.sbin/ppp/lqr.c
504
lqr.PeerOutOctets = p->hdlc.lqm.ifOutOctets - pending_octets - pending_pkts;
usr.sbin/ppp/lqr.c
77
struct hdlc *hdlc = &link2physical(lcp->fsm.link)->hdlc;
usr.sbin/ppp/lqr.c
82
echo.sequence = htonl(hdlc->lqm.echo.seq_sent);
usr.sbin/ppp/lqr.c
83
fsm_Output(&lcp->fsm, CODE_ECHOREQ, hdlc->lqm.echo.seq_sent++,
usr.sbin/ppp/lqr.c
90
struct hdlc *hdlc = &link2physical(fp->link)->hdlc;
usr.sbin/ppp/lqr.h
67
struct hdlc;
usr.sbin/ppp/lqr.h
72
extern void lqr_Analyse(const struct hdlc *, const struct lqrdata *,
usr.sbin/ppp/physical.c
183
hdlc_Init(&p->hdlc, &p->link.lcp);
usr.sbin/ppp/physical.c
612
p->hdlc.lqm.owner = &p->link.lcp;
usr.sbin/ppp/physical.c
613
p->hdlc.ReportTimer.state = TIMER_STOPPED;
usr.sbin/ppp/physical.c
614
p->hdlc.lqm.timer.state = TIMER_STOPPED;
usr.sbin/ppp/physical.c
636
if (p->hdlc.lqm.method && p->hdlc.lqm.timer.load)
usr.sbin/ppp/physical.c
638
hdlc_StartTimer(&p->hdlc);
usr.sbin/ppp/physical.c
671
hdlc_StopTimer(&p->hdlc);
usr.sbin/ppp/physical.h
82
struct hdlc hdlc; /* Our hdlc state */
usr.sbin/ppp/sync.c
75
p->hdlc.lqm.ifInOctets += len + 1; /* plus 1 flag octet! */
usr.sbin/ppp/sync.c
76
p->hdlc.lqm.lqr.InGoodOctets += len + 1; /* plus 1 flag octet! */
usr.sbin/ppp/sync.c
77
p->hdlc.lqm.ifInUniPackets++;