Symbol: hdlc
usr.sbin/ppp/acf.c
91
p->hdlc.lqm.SaveInErrors++;
usr.sbin/ppp/acf.c
92
p->hdlc.stats.badaddr++;
usr.sbin/ppp/acf.c
98
p->hdlc.lqm.SaveInErrors++;
usr.sbin/ppp/acf.c
99
p->hdlc.stats.badcommand++;
usr.sbin/ppp/datalink.c
236
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
321
p->hdlc.lqm.SaveInErrors++;
usr.sbin/ppp/hdlc.c
322
p->hdlc.stats.badfcs++;
usr.sbin/ppp/hdlc.c
327
p->hdlc.lqm.SaveInOctets += bp->m_len + 1;
usr.sbin/ppp/hdlc.c
328
p->hdlc.lqm.SaveInPackets++;
usr.sbin/ppp/hdlc.c
381
struct hdlc *hdlc = &arg->cx->physical->hdlc;
usr.sbin/ppp/hdlc.c
385
hdlc->stats.badfcs);
usr.sbin/ppp/hdlc.c
387
HDLC_ADDR, hdlc->stats.badaddr);
usr.sbin/ppp/hdlc.c
389
HDLC_UI, hdlc->stats.badcommand);
usr.sbin/ppp/hdlc.c
391
hdlc->stats.unknownproto);
usr.sbin/ppp/hdlc.c
399
struct hdlc *hdlc = (struct hdlc *)v;
usr.sbin/ppp/hdlc.c
401
timer_Stop(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
403
if (memcmp(&hdlc->laststats, &hdlc->stats, sizeof hdlc->stats)) {
usr.sbin/ppp/hdlc.c
406
hdlc->lqm.owner->fsm.link->name,
usr.sbin/ppp/hdlc.c
407
hdlc->stats.badfcs - hdlc->laststats.badfcs,
usr.sbin/ppp/hdlc.c
408
hdlc->stats.badaddr - hdlc->laststats.badaddr,
usr.sbin/ppp/hdlc.c
409
hdlc->stats.badcommand - hdlc->laststats.badcommand,
usr.sbin/ppp/hdlc.c
410
hdlc->stats.unknownproto - hdlc->laststats.unknownproto);
usr.sbin/ppp/hdlc.c
411
hdlc->laststats = hdlc->stats;
usr.sbin/ppp/hdlc.c
414
timer_Start(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
418
hdlc_StartTimer(struct hdlc *hdlc)
usr.sbin/ppp/hdlc.c
420
timer_Stop(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
421
hdlc->ReportTimer.load = 60 * SECTICKS;
usr.sbin/ppp/hdlc.c
422
hdlc->ReportTimer.arg = hdlc;
usr.sbin/ppp/hdlc.c
423
hdlc->ReportTimer.func = hdlc_ReportTime;
usr.sbin/ppp/hdlc.c
424
hdlc->ReportTimer.name = "hdlc";
usr.sbin/ppp/hdlc.c
425
timer_Start(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
429
hdlc_StopTimer(struct hdlc *hdlc)
usr.sbin/ppp/hdlc.c
431
timer_Stop(&hdlc->ReportTimer);
usr.sbin/ppp/hdlc.c
99
hdlc_Init(struct hdlc *hdlc, struct lcp *lcp)
usr.sbin/ppp/hdlc.h
100
extern void hdlc_Init(struct hdlc *, struct lcp *);
usr.sbin/ppp/hdlc.h
101
extern void hdlc_StartTimer(struct hdlc *);
usr.sbin/ppp/hdlc.h
102
extern void hdlc_StopTimer(struct hdlc *);
usr.sbin/ppp/lcp.c
577
hdlc_StartTimer(&p->hdlc);
usr.sbin/ppp/lcp.c
592
hdlc_StopTimer(&p->hdlc);
usr.sbin/ppp/link.c
367
p->hdlc.lqm.SaveInDiscards++;
usr.sbin/ppp/link.c
368
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
160
timer_Stop(&p->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
162
if (p->hdlc.lqm.method & LQM_LQR) {
usr.sbin/ppp/lqr.c
163
if (p->hdlc.lqm.lqr.resent > 5) {
usr.sbin/ppp/lqr.c
169
p->hdlc.lqm.method = 0;
usr.sbin/ppp/lqr.c
173
p->hdlc.lqm.lqr.resent++;
usr.sbin/ppp/lqr.c
175
} else if (p->hdlc.lqm.method & LQM_ECHO) {
usr.sbin/ppp/lqr.c
176
if ((p->hdlc.lqm.echo.seq_sent > 5 &&
usr.sbin/ppp/lqr.c
177
p->hdlc.lqm.echo.seq_sent - 5 > p->hdlc.lqm.echo.seq_recv) ||
usr.sbin/ppp/lqr.c
178
(p->hdlc.lqm.echo.seq_sent <= 5 &&
usr.sbin/ppp/lqr.c
179
p->hdlc.lqm.echo.seq_sent > p->hdlc.lqm.echo.seq_recv + 5)) {
usr.sbin/ppp/lqr.c
184
p->hdlc.lqm.method = 0;
usr.sbin/ppp/lqr.c
189
if (p->hdlc.lqm.method && p->hdlc.lqm.timer.load)
usr.sbin/ppp/lqr.c
190
timer_Start(&p->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
197
struct lcp *lcp = p->hdlc.lqm.owner;
usr.sbin/ppp/lqr.c
206
p->hdlc.lqm.lqr.SaveInLQRs++;
usr.sbin/ppp/lqr.c
212
else if (!IsAccepted(l->lcp.cfg.lqr) && !(p->hdlc.lqm.method & LQM_LQR)) {
usr.sbin/ppp/lqr.c
229
lastLQR = p->hdlc.lqm.lqr.peer.PeerInLQRs;
usr.sbin/ppp/lqr.c
231
lqr_ChangeOrder(lqr, &p->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
232
lqr_Dump(l->name, "Input", &p->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
234
p->hdlc.lqm.lqr.resent = 0;
usr.sbin/ppp/lqr.c
241
if (p->hdlc.lqm.timer.load == 0 ||
usr.sbin/ppp/lqr.c
242
!(p->hdlc.lqm.method & LQM_LQR) ||
usr.sbin/ppp/lqr.c
243
(lastLQR && lastLQR == p->hdlc.lqm.lqr.peer.PeerInLQRs) ||
usr.sbin/ppp/lqr.c
244
(p->hdlc.lqm.lqr.peer_timeout &&
usr.sbin/ppp/lqr.c
245
p->hdlc.lqm.timer.rest * 100 / SECTICKS >
usr.sbin/ppp/lqr.c
246
(unsigned) p->hdlc.lqm.lqr.peer_timeout))
usr.sbin/ppp/lqr.c
263
physical->hdlc.lqm.lqr.resent = 0;
usr.sbin/ppp/lqr.c
264
physical->hdlc.lqm.echo.seq_sent = 0;
usr.sbin/ppp/lqr.c
265
physical->hdlc.lqm.echo.seq_recv = 0;
usr.sbin/ppp/lqr.c
266
memset(&physical->hdlc.lqm.lqr.peer, '\0',
usr.sbin/ppp/lqr.c
267
sizeof physical->hdlc.lqm.lqr.peer);
usr.sbin/ppp/lqr.c
269
physical->hdlc.lqm.method = LQM_ECHO;
usr.sbin/ppp/lqr.c
271
physical->hdlc.lqm.method |= LQM_LQR;
usr.sbin/ppp/lqr.c
272
timer_Stop(&physical->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
274
physical->hdlc.lqm.lqr.peer_timeout = lcp->his_lqrperiod;
usr.sbin/ppp/lqr.c
283
physical->hdlc.lqm.method & LQM_LQR ? "LQR" : "ECHO LQR",
usr.sbin/ppp/lqr.c
285
physical->hdlc.lqm.timer.load = lcp->want_lqrperiod * SECTICKS / 100;
usr.sbin/ppp/lqr.c
286
physical->hdlc.lqm.timer.func = SendLqrReport;
usr.sbin/ppp/lqr.c
287
physical->hdlc.lqm.timer.name = "lqm";
usr.sbin/ppp/lqr.c
288
physical->hdlc.lqm.timer.arg = lcp;
usr.sbin/ppp/lqr.c
290
physical->hdlc.lqm.timer.load = 0;
usr.sbin/ppp/lqr.c
303
if (p->hdlc.lqm.timer.load)
usr.sbin/ppp/lqr.c
313
if (p->hdlc.lqm.timer.load)
usr.sbin/ppp/lqr.c
314
timer_Start(&p->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
320
timer_Stop(&physical->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
332
physical->hdlc.lqm.method &= ~method;
usr.sbin/ppp/lqr.c
333
if (physical->hdlc.lqm.method)
usr.sbin/ppp/lqr.c
334
SendLqrReport(physical->hdlc.lqm.owner);
usr.sbin/ppp/lqr.c
336
timer_Stop(&physical->hdlc.lqm.timer);
usr.sbin/ppp/lqr.c
394
p->hdlc.lqm.OutOctets += hdlc_WrapperOctets();
usr.sbin/ppp/lqr.c
395
p->hdlc.lqm.OutOctets += acf_WrapperOctets(&l->lcp, *proto) +
usr.sbin/ppp/lqr.c
397
p->hdlc.lqm.OutPackets++;
usr.sbin/ppp/lqr.c
404
lqr.LastOutLQRs = p->hdlc.lqm.lqr.peer.PeerOutLQRs;
usr.sbin/ppp/lqr.c
405
lqr.LastOutPackets = p->hdlc.lqm.lqr.peer.PeerOutPackets;
usr.sbin/ppp/lqr.c
406
lqr.LastOutOctets = p->hdlc.lqm.lqr.peer.PeerOutOctets;
usr.sbin/ppp/lqr.c
407
lqr.PeerInLQRs = p->hdlc.lqm.lqr.SaveInLQRs;
usr.sbin/ppp/lqr.c
408
lqr.PeerInPackets = p->hdlc.lqm.SaveInPackets;
usr.sbin/ppp/lqr.c
409
lqr.PeerInDiscards = p->hdlc.lqm.SaveInDiscards;
usr.sbin/ppp/lqr.c
410
lqr.PeerInErrors = p->hdlc.lqm.SaveInErrors;
usr.sbin/ppp/lqr.c
411
lqr.PeerInOctets = p->hdlc.lqm.SaveInOctets;
usr.sbin/ppp/lqr.c
412
lqr.PeerOutPackets = p->hdlc.lqm.OutPackets;
usr.sbin/ppp/lqr.c
413
lqr.PeerOutOctets = p->hdlc.lqm.OutOctets;
usr.sbin/ppp/lqr.c
414
if (p->hdlc.lqm.lqr.peer.LastOutLQRs == p->hdlc.lqm.lqr.OutLQRs) {
usr.sbin/ppp/lqr.c
419
lqr.PeerOutLQRs = ++p->hdlc.lqm.lqr.OutLQRs;
usr.sbin/ppp/lqr.c
422
lqr.PeerOutLQRs = p->hdlc.lqm.lqr.OutLQRs;
usr.sbin/ppp/lqr.c
78
struct hdlc *hdlc = &link2physical(lcp->fsm.link)->hdlc;
usr.sbin/ppp/lqr.c
83
echo.sequence = htonl(hdlc->lqm.echo.seq_sent);
usr.sbin/ppp/lqr.c
84
fsm_Output(&lcp->fsm, CODE_ECHOREQ, hdlc->lqm.echo.seq_sent++,
usr.sbin/ppp/lqr.c
91
struct hdlc *hdlc = &link2physical(fp->link)->hdlc;
usr.sbin/ppp/physical.c
181
hdlc_Init(&p->hdlc, &p->link.lcp);
usr.sbin/ppp/physical.c
610
p->hdlc.lqm.owner = &p->link.lcp;
usr.sbin/ppp/physical.c
611
p->hdlc.ReportTimer.state = TIMER_STOPPED;
usr.sbin/ppp/physical.c
612
p->hdlc.lqm.timer.state = TIMER_STOPPED;
usr.sbin/ppp/physical.c
634
if (p->hdlc.lqm.method && p->hdlc.lqm.timer.load)
usr.sbin/ppp/physical.c
636
hdlc_StartTimer(&p->hdlc);
usr.sbin/ppp/physical.c
669
hdlc_StopTimer(&p->hdlc);
usr.sbin/ppp/physical.h
83
struct hdlc hdlc; /* Our hdlc state */
usr.sbin/ppp/sync.c
74
p->hdlc.lqm.SaveInOctets += m_length(bp) + 1;
usr.sbin/ppp/sync.c
75
p->hdlc.lqm.SaveInPackets++;