Deleted Added
full compact
if_cp.c (188661) if_cp.c (193813)
1/*-
2 * Cronyx-Tau-PCI adapter driver for FreeBSD.
3 * Supports PPP/HDLC, Cisco/HDLC and FrameRelay 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) 1999-2004 Cronyx Engineering.
8 * Author: Kurakin Roman, <rik@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_cp.c,v 1.1.2.41 2004/06/23 17:09:13 rik Exp $
22 */
23
24#include <sys/cdefs.h>
1/*-
2 * Cronyx-Tau-PCI adapter driver for FreeBSD.
3 * Supports PPP/HDLC, Cisco/HDLC and FrameRelay 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) 1999-2004 Cronyx Engineering.
8 * Author: Kurakin Roman, <rik@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_cp.c,v 1.1.2.41 2004/06/23 17:09:13 rik Exp $
22 */
23
24#include <sys/cdefs.h>
25__FBSDID("$FreeBSD: head/sys/dev/cp/if_cp.c 188661 2009-02-15 23:18:29Z rwatson $");
25__FBSDID("$FreeBSD: head/sys/dev/cp/if_cp.c 193813 2009-06-09 07:14:32Z imp $");
26
27#include <sys/param.h>
28#include <sys/ucred.h>
29#include <sys/proc.h>
30#include <sys/systm.h>
31#include <sys/mbuf.h>
32#include <sys/kernel.h>
33#include <sys/module.h>

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

106
107typedef struct _drv_t {
108 char name [8];
109 int running;
110 cp_chan_t *chan;
111 cp_board_t *board;
112 cp_dma_mem_t dmamem;
113#ifdef NETGRAPH
26
27#include <sys/param.h>
28#include <sys/ucred.h>
29#include <sys/proc.h>
30#include <sys/systm.h>
31#include <sys/mbuf.h>
32#include <sys/kernel.h>
33#include <sys/module.h>

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

106
107typedef struct _drv_t {
108 char name [8];
109 int running;
110 cp_chan_t *chan;
111 cp_board_t *board;
112 cp_dma_mem_t dmamem;
113#ifdef NETGRAPH
114 char nodename [NG_NODELEN+1];
114 char nodename [NG_NODESIZE];
115 hook_p hook;
116 hook_p debug_hook;
117 node_p node;
118 struct ifqueue queue;
119 struct ifqueue hi_queue;
120 short timeout;
121 struct callout timeout_handle;
122#else

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

2116 s = (resp)->data;
2117 if (d) {
2118 l += print_chan (s + l, d->chan);
2119 l += print_stats (s + l, d->chan, 1);
2120 l += print_modems (s + l, d->chan, 1);
2121 l += print_e1_stats (s + l, d->chan);
2122 } else
2123 l += sprintf (s + l, "Error: node not connect to channel");
115 hook_p hook;
116 hook_p debug_hook;
117 node_p node;
118 struct ifqueue queue;
119 struct ifqueue hi_queue;
120 short timeout;
121 struct callout timeout_handle;
122#else

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

2116 s = (resp)->data;
2117 if (d) {
2118 l += print_chan (s + l, d->chan);
2119 l += print_stats (s + l, d->chan, 1);
2120 l += print_modems (s + l, d->chan, 1);
2121 l += print_e1_stats (s + l, d->chan);
2122 } else
2123 l += sprintf (s + l, "Error: node not connect to channel");
2124 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN);
2124 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ);
2125 }
2126 break;
2127 }
2128 break;
2129 }
2130 NG_RESPOND_MSG (error, node, item, resp);
2131 NG_FREE_MSG (msg);
2132 return error;

--- 172 unchanged lines hidden ---
2125 }
2126 break;
2127 }
2128 break;
2129 }
2130 NG_RESPOND_MSG (error, node, item, resp);
2131 NG_FREE_MSG (msg);
2132 return error;

--- 172 unchanged lines hidden ---