Deleted Added
full compact
if_ct.c (147856) if_ct.c (147858)
1/*-
2 * Cronyx-Tau adapter driver for FreeBSD.
3 * Supports PPP/HDLC and Cisco/HDLC protocol in synchronous mode,
4 * and asyncronous channels with full modem control.
5 * Keepalive protocol implemented in both Cisco and PPP modes.
6 *
7 * Copyright (C) 1994-2002 Cronyx Engineering.
8 * Author: Serge Vakulenko, <vak@cronyx.ru>

--- 8 unchanged lines hidden (view full) ---

17 * modify and redistribute this software in source and binary forms,
18 * as long as this message is kept with the software, all derivative
19 * works or modified versions.
20 *
21 * Cronyx Id: if_ct.c,v 1.1.2.31 2004/06/23 17:09:13 rik Exp $
22 */
23
24#include <sys/cdefs.h>
1/*-
2 * Cronyx-Tau adapter driver for FreeBSD.
3 * Supports PPP/HDLC and Cisco/HDLC protocol in synchronous mode,
4 * and asyncronous channels with full modem control.
5 * Keepalive protocol implemented in both Cisco and PPP modes.
6 *
7 * Copyright (C) 1994-2002 Cronyx Engineering.
8 * Author: Serge Vakulenko, <vak@cronyx.ru>

--- 8 unchanged lines hidden (view full) ---

17 * modify and redistribute this software in source and binary forms,
18 * as long as this message is kept with the software, all derivative
19 * works or modified versions.
20 *
21 * Cronyx Id: if_ct.c,v 1.1.2.31 2004/06/23 17:09:13 rik Exp $
22 */
23
24#include <sys/cdefs.h>
25__FBSDID("$FreeBSD: head/sys/dev/ctau/if_ct.c 147856 2005-07-09 13:44:36Z rik $");
25__FBSDID("$FreeBSD: head/sys/dev/ctau/if_ct.c 147858 2005-07-09 14:03:02Z rik $");
26
27#include <sys/param.h>
28#include <sys/proc.h>
29#include <sys/systm.h>
30#include <sys/kernel.h>
31#include <sys/module.h>
32#include <sys/mbuf.h>
33#include <sys/sockio.h>

--- 248 unchanged lines hidden (view full) ---

282 CT_UNLOCK (bd);
283 splx (s);
284
285#ifndef NETGRAPH
286 /* Pass packets in a lock-free state */
287 for (i = 0; i < NCHAN && b->chan[i].type; i++) {
288 drv_t *d = b->chan[i].sys;
289 struct mbuf *m;
26
27#include <sys/param.h>
28#include <sys/proc.h>
29#include <sys/systm.h>
30#include <sys/kernel.h>
31#include <sys/module.h>
32#include <sys/mbuf.h>
33#include <sys/sockio.h>

--- 248 unchanged lines hidden (view full) ---

282 CT_UNLOCK (bd);
283 splx (s);
284
285#ifndef NETGRAPH
286 /* Pass packets in a lock-free state */
287 for (i = 0; i < NCHAN && b->chan[i].type; i++) {
288 drv_t *d = b->chan[i].sys;
289 struct mbuf *m;
290 if (!d || !d->running)
291 continue;
290 while (_IF_QLEN(&d->queue)) {
291 IF_DEQUEUE (&d->queue,m);
292 if (!m)
293 continue;
294 sppp_input (d->ifp, m);
295 }
296 }
297#endif

--- 1970 unchanged lines hidden ---
292 while (_IF_QLEN(&d->queue)) {
293 IF_DEQUEUE (&d->queue,m);
294 if (!m)
295 continue;
296 sppp_input (d->ifp, m);
297 }
298 }
299#endif

--- 1970 unchanged lines hidden ---