if_cx.c (188768) | if_cx.c (193813) |
---|---|
1/*- 2 * Cronyx-Sigma 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> --- 9 unchanged lines hidden (view full) --- 18 * modify and redistribute this software in source and binary forms, 19 * as long as this message is kept with the software, all derivative 20 * works or modified versions. 21 * 22 * Cronyx Id: if_cx.c,v 1.1.2.34 2004/06/23 17:09:13 rik Exp $ 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Cronyx-Sigma 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> --- 9 unchanged lines hidden (view full) --- 18 * modify and redistribute this software in source and binary forms, 19 * as long as this message is kept with the software, all derivative 20 * works or modified versions. 21 * 22 * Cronyx Id: if_cx.c,v 1.1.2.34 2004/06/23 17:09:13 rik Exp $ 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/cx/if_cx.c 188768 2009-02-19 00:06:01Z rwatson $"); | 26__FBSDID("$FreeBSD: head/sys/dev/cx/if_cx.c 193813 2009-06-09 07:14:32Z imp $"); |
27 28#include <sys/param.h> 29 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/priv.h> 34#include <sys/proc.h> --- 97 unchanged lines hidden (view full) --- 132 struct tty *tty; 133 struct callout dcd_timeout_handle; 134 unsigned callout; 135 unsigned lock; 136 int open_dev; 137 int cd; 138 int running; 139#ifdef NETGRAPH | 27 28#include <sys/param.h> 29 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/priv.h> 34#include <sys/proc.h> --- 97 unchanged lines hidden (view full) --- 132 struct tty *tty; 133 struct callout dcd_timeout_handle; 134 unsigned callout; 135 unsigned lock; 136 int open_dev; 137 int cd; 138 int running; 139#ifdef NETGRAPH |
140 char nodename [NG_NODELEN+1]; | 140 char nodename [NG_NODESIZ]; |
141 hook_p hook; 142 hook_p debug_hook; 143 node_p node; 144 struct ifqueue lo_queue; 145 struct ifqueue hi_queue; 146 short timeout; 147 struct callout timeout_handle; 148#else --- 2245 unchanged lines hidden (view full) --- 2394 error = ENOMEM; 2395 break; 2396 } 2397 bzero (resp, dl); 2398 s = (resp)->data; 2399 l += print_chan (s + l, d->chan); 2400 l += print_stats (s + l, d->chan, 1); 2401 l += print_modems (s + l, d->chan, 1); | 141 hook_p hook; 142 hook_p debug_hook; 143 node_p node; 144 struct ifqueue lo_queue; 145 struct ifqueue hi_queue; 146 short timeout; 147 struct callout timeout_handle; 148#else --- 2245 unchanged lines hidden (view full) --- 2394 error = ENOMEM; 2395 break; 2396 } 2397 bzero (resp, dl); 2398 s = (resp)->data; 2399 l += print_chan (s + l, d->chan); 2400 l += print_stats (s + l, d->chan, 1); 2401 l += print_modems (s + l, d->chan, 1); |
2402 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); | 2402 strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); |
2403 } 2404 break; 2405 } 2406 break; 2407 } 2408 NG_RESPOND_MSG (error, node, item, resp); 2409 NG_FREE_MSG (msg); 2410 return error; --- 165 unchanged lines hidden --- | 2403 } 2404 break; 2405 } 2406 break; 2407 } 2408 NG_RESPOND_MSG (error, node, item, resp); 2409 NG_FREE_MSG (msg); 2410 return error; --- 165 unchanged lines hidden --- |