Deleted Added
full compact
ng_tee.c (175954) ng_tee.c (176508)
1
2/*
3 * ng_tee.c
4 */
5
6/*-
7 * Copyright (c) 1996-1999 Whistle Communications, Inc.
8 * All rights reserved.

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

33 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
37 * OF SUCH DAMAGE.
38 *
39 * Author: Julian Elischer <julian@freebsd.org>
40 *
1
2/*
3 * ng_tee.c
4 */
5
6/*-
7 * Copyright (c) 1996-1999 Whistle Communications, Inc.
8 * All rights reserved.

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

33 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
37 * OF SUCH DAMAGE.
38 *
39 * Author: Julian Elischer <julian@freebsd.org>
40 *
41 * $FreeBSD: head/sys/netgraph/ng_tee.c 175954 2008-02-03 18:55:45Z mav $
41 * $FreeBSD: head/sys/netgraph/ng_tee.c 176508 2008-02-24 10:13:32Z mav $
42 * $Whistle: ng_tee.c,v 1.18 1999/11/01 09:24:52 julian Exp $
43 */
44
45/*
46 * This node is like the tee(1) command and is useful for ``snooping.''
47 * It has 4 hooks: left, right, left2right, and right2left. Data
48 * entering from the right is passed to the left and duplicated on
49 * right2left, and data entering from the left is passed to the right

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

352 */
353static int
354ng_tee_shutdown(node_p node)
355{
356 const sc_p privdata = NG_NODE_PRIVATE(node);
357
358 NG_NODE_SET_PRIVATE(node, NULL);
359 FREE(privdata, M_NETGRAPH);
42 * $Whistle: ng_tee.c,v 1.18 1999/11/01 09:24:52 julian Exp $
43 */
44
45/*
46 * This node is like the tee(1) command and is useful for ``snooping.''
47 * It has 4 hooks: left, right, left2right, and right2left. Data
48 * entering from the right is passed to the left and duplicated on
49 * right2left, and data entering from the left is passed to the right

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

352 */
353static int
354ng_tee_shutdown(node_p node)
355{
356 const sc_p privdata = NG_NODE_PRIVATE(node);
357
358 NG_NODE_SET_PRIVATE(node, NULL);
359 FREE(privdata, M_NETGRAPH);
360 NG_NODE_UNREF(node);
360 return (0);
361}
362
363/*
364 * Hook disconnection
365 */
366static int
367ng_tee_disconnect(hook_p hook)

--- 29 unchanged lines hidden ---
361 return (0);
362}
363
364/*
365 * Hook disconnection
366 */
367static int
368ng_tee_disconnect(hook_p hook)

--- 29 unchanged lines hidden ---