ng_cisco.c (97895) | ng_cisco.c (102244) |
---|---|
1 2/* 3 * ng_cisco.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@freebsd.org> 38 * | 1 2/* 3 * ng_cisco.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@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_cisco.c 97895 2002-06-05 23:29:29Z archie $ | 39 * $FreeBSD: head/sys/netgraph/ng_cisco.c 102244 2002-08-22 00:30:03Z archie $ |
40 * $Whistle: ng_cisco.c,v 1.25 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/socket.h> --- 472 unchanged lines hidden (view full) --- 520 521 /* Ask inet peer for IP address information */ 522 if (sc->inet.hook == NULL) 523 goto nomsg; 524 NG_MKMESSAGE(msg, NGM_CISCO_COOKIE, 525 NGM_CISCO_GET_IPADDR, 0, M_NOWAIT); 526 if (msg == NULL) 527 goto nomsg; | 40 * $Whistle: ng_cisco.c,v 1.25 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/socket.h> --- 472 unchanged lines hidden (view full) --- 520 521 /* Ask inet peer for IP address information */ 522 if (sc->inet.hook == NULL) 523 goto nomsg; 524 NG_MKMESSAGE(msg, NGM_CISCO_COOKIE, 525 NGM_CISCO_GET_IPADDR, 0, M_NOWAIT); 526 if (msg == NULL) 527 goto nomsg; |
528 NG_SEND_MSG_HOOK(dummy_error, sc->node, msg, 529 sc->inet.hook, NULL); | 528 NG_SEND_MSG_HOOK(dummy_error, 529 sc->node, msg, sc->inet.hook, 0); |
530 /* 531 * XXX Now maybe we should set a flag telling 532 * our receiver to send this message when the response comes in 533 * instead of now when the data may be bad. 534 */ 535 nomsg: 536 /* Send reply to peer device */ 537 error = cisco_send(sc, CISCO_ADDR_REPLY, --- 95 unchanged lines hidden --- | 530 /* 531 * XXX Now maybe we should set a flag telling 532 * our receiver to send this message when the response comes in 533 * instead of now when the data may be bad. 534 */ 535 nomsg: 536 /* Send reply to peer device */ 537 error = cisco_send(sc, CISCO_ADDR_REPLY, --- 95 unchanged lines hidden --- |