ng_UI.c (54249) | ng_UI.c (59728) |
---|---|
1 2/* 3 * ng_UI.c 4 * 5 * Copyright (c) 1996-1999 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: Julian Elischer <julian@whistle.com> 38 * | 1 2/* 3 * ng_UI.c 4 * 5 * Copyright (c) 1996-1999 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: Julian Elischer <julian@whistle.com> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_UI.c 54249 1999-12-07 05:50:48Z julian $ | 39 * $FreeBSD: head/sys/netgraph/ng_UI.c 59728 2000-04-28 17:09:00Z julian $ |
40 * $Whistle: ng_UI.c,v 1.14 1999/11/01 09:24:51 julian Exp $ 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/errno.h> 46#include <sys/kernel.h> 47#include <sys/malloc.h> --- 97 unchanged lines hidden (view full) --- 145 return (0); 146} 147 148/* 149 * Receive a control message 150 */ 151static int 152ng_UI_rcvmsg(node_p node, struct ng_mesg *msg, | 40 * $Whistle: ng_UI.c,v 1.14 1999/11/01 09:24:51 julian Exp $ 41 */ 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/errno.h> 46#include <sys/kernel.h> 47#include <sys/malloc.h> --- 97 unchanged lines hidden (view full) --- 145 return (0); 146} 147 148/* 149 * Receive a control message 150 */ 151static int 152ng_UI_rcvmsg(node_p node, struct ng_mesg *msg, |
153 const char *raddr, struct ng_mesg **rp) | 153 const char *raddr, struct ng_mesg **rp, hook_p lasthook) |
154{ 155 FREE(msg, M_NETGRAPH); 156 return (EINVAL); 157} 158 159#define MAX_ENCAPS_HDR 1 160#define ERROUT(x) do { error = (x); goto done; } while (0) 161 162/* 163 * Receive a data frame 164 */ 165static int | 154{ 155 FREE(msg, M_NETGRAPH); 156 return (EINVAL); 157} 158 159#define MAX_ENCAPS_HDR 1 160#define ERROUT(x) do { error = (x); goto done; } while (0) 161 162/* 163 * Receive a data frame 164 */ 165static int |
166ng_UI_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) | 166ng_UI_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, 167 struct mbuf **ret_m, meta_p *ret_meta) |
167{ 168 const node_p node = hook->node; 169 const priv_p priv = node->private; 170 int error = 0; 171 172 if (hook == priv->downlink) { 173 u_char *start, *ptr; 174 --- 63 unchanged lines hidden --- | 168{ 169 const node_p node = hook->node; 170 const priv_p priv = node->private; 171 int error = 0; 172 173 if (hook == priv->downlink) { 174 u_char *start, *ptr; 175 --- 63 unchanged lines hidden --- |