if_ct.c (188662) | if_ct.c (193813) |
---|---|
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 188662 2009-02-15 23:21:52Z rwatson $"); | 25__FBSDID("$FreeBSD: head/sys/dev/ctau/if_ct.c 193813 2009-06-09 07:14:32Z imp $"); |
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> --- 73 unchanged lines hidden (view full) --- 107typedef struct _drv_t { 108 char name [8]; 109 ct_chan_t *chan; 110 ct_board_t *board; 111 struct _bdrv_t *bd; 112 ct_dma_mem_t dmamem; 113 int running; 114#ifdef NETGRAPH | 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> --- 73 unchanged lines hidden (view full) --- 107typedef struct _drv_t { 108 char name [8]; 109 ct_chan_t *chan; 110 ct_board_t *board; 111 struct _bdrv_t *bd; 112 ct_dma_mem_t dmamem; 113 int running; 114#ifdef NETGRAPH |
115 char nodename [NG_NODELEN+1]; | 115 char nodename [NG_NODESIZ]; |
116 hook_p hook; 117 hook_p debug_hook; 118 node_p node; 119 struct ifqueue queue; 120 struct ifqueue hi_queue; 121 short timeout; 122 struct callout timeout_handle; 123#else --- 1932 unchanged lines hidden (view full) --- 2056 error = ENOMEM; 2057 break; 2058 } 2059 s = (resp)->data; 2060 l += print_chan (s + l, d->chan); 2061 l += print_stats (s + l, d->chan, 1); 2062 l += print_modems (s + l, d->chan, 1); 2063 l += print_e1_stats (s + l, d->chan); | 116 hook_p hook; 117 hook_p debug_hook; 118 node_p node; 119 struct ifqueue queue; 120 struct ifqueue hi_queue; 121 short timeout; 122 struct callout timeout_handle; 123#else --- 1932 unchanged lines hidden (view full) --- 2056 error = ENOMEM; 2057 break; 2058 } 2059 s = (resp)->data; 2060 l += print_chan (s + l, d->chan); 2061 l += print_stats (s + l, d->chan, 1); 2062 l += print_modems (s + l, d->chan, 1); 2063 l += print_e1_stats (s + l, d->chan); |
2064 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); | 2064 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); |
2065 } 2066 break; 2067 } 2068 break; 2069 } 2070 NG_RESPOND_MSG (error, node, item, resp); 2071 NG_FREE_MSG (msg); 2072 return error; --- 171 unchanged lines hidden --- | 2065 } 2066 break; 2067 } 2068 break; 2069 } 2070 NG_RESPOND_MSG (error, node, item, resp); 2071 NG_FREE_MSG (msg); 2072 return error; --- 171 unchanged lines hidden --- |