ng_one2many.c (68810) | ng_one2many.c (69922) |
---|---|
1 2/* 3 * ng_one2many.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * | 1 2/* 3 * ng_one2many.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_one2many.c 68810 2000-11-16 05:58:33Z archie $ | 39 * $FreeBSD: head/sys/netgraph/ng_one2many.c 69922 2000-12-12 18:52:14Z julian $ |
40 */ 41 42/* 43 * ng_one2many(4) netgraph node type 44 * 45 * Packets received on the "one" hook are sent out each of the 46 * "many" hooks in round-robin fashion. Packets received on any 47 * "many" hook are always delivered to the "one" hook. --- 119 unchanged lines hidden (view full) --- 167 NULL, 168 ng_one2many_constructor, 169 ng_one2many_rcvmsg, 170 ng_one2many_rmnode, 171 ng_one2many_newhook, 172 NULL, 173 NULL, 174 ng_one2many_rcvdata, | 40 */ 41 42/* 43 * ng_one2many(4) netgraph node type 44 * 45 * Packets received on the "one" hook are sent out each of the 46 * "many" hooks in round-robin fashion. Packets received on any 47 * "many" hook are always delivered to the "one" hook. --- 119 unchanged lines hidden (view full) --- 167 NULL, 168 ng_one2many_constructor, 169 ng_one2many_rcvmsg, 170 ng_one2many_rmnode, 171 ng_one2many_newhook, 172 NULL, 173 NULL, 174 ng_one2many_rcvdata, |
175 ng_one2many_rcvdata, | |
176 ng_one2many_disconnect, 177 ng_one2many_cmdlist, 178}; 179NETGRAPH_INIT(one2many, &ng_one2many_typestruct); 180 181/****************************************************************** 182 NETGRAPH NODE METHODS 183******************************************************************/ --- 194 unchanged lines hidden (view full) --- 378 return (error); 379} 380 381/* 382 * Receive data on a hook 383 */ 384static int 385ng_one2many_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, | 175 ng_one2many_disconnect, 176 ng_one2many_cmdlist, 177}; 178NETGRAPH_INIT(one2many, &ng_one2many_typestruct); 179 180/****************************************************************** 181 NETGRAPH NODE METHODS 182******************************************************************/ --- 194 unchanged lines hidden (view full) --- 377 return (error); 378} 379 380/* 381 * Receive data on a hook 382 */ 383static int 384ng_one2many_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, |
386 struct mbuf **ret_m, meta_p *ret_meta) | 385 struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp) |
387{ 388 const node_p node = hook->node; 389 const priv_p priv = node->private; 390 struct ng_one2many_link *src; 391 struct ng_one2many_link *dst; 392 int error = 0; 393 int linkNum; 394 --- 127 unchanged lines hidden --- | 386{ 387 const node_p node = hook->node; 388 const priv_p priv = node->private; 389 struct ng_one2many_link *src; 390 struct ng_one2many_link *dst; 391 int error = 0; 392 int linkNum; 393 --- 127 unchanged lines hidden --- |