Deleted Added
full compact
ether.c (134789) ether.c (134833)
1/*-
2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.sbin/ppp/ether.c 134789 2004-09-05 01:46:52Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/ether.c 134833 2004-09-06 00:07:58Z marcel $
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <sys/un.h>
32#include <netinet/in.h>
33#include <arpa/inet.h>
34#include <netdb.h>

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

514 return NULL;
515 }
516
517 /*
518 * Ask for a list of hooks attached to the "ether" node. This node should
519 * magically exist as a way of hooking stuff onto an ethernet device
520 */
521 path = (char *)alloca(ifacelen + 2);
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <sys/un.h>
32#include <netinet/in.h>
33#include <arpa/inet.h>
34#include <netdb.h>

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

514 return NULL;
515 }
516
517 /*
518 * Ask for a list of hooks attached to the "ether" node. This node should
519 * magically exist as a way of hooking stuff onto an ethernet device
520 */
521 path = (char *)alloca(ifacelen + 2);
522 sprintf(path, "%.*s:", ifacelen, iface);
522 sprintf(path, "%.*s:", (int)ifacelen, iface);
523 if (NgSendMsg(dev->cs, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS,
524 NULL, 0) < 0) {
525 log_Printf(LogWARN, "%s Cannot send a netgraph message: %s\n",
526 path, strerror(errno));
527 return ether_Abandon(dev, p);
528 }
529
530 /* Get our list back */

--- 206 unchanged lines hidden ---
523 if (NgSendMsg(dev->cs, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS,
524 NULL, 0) < 0) {
525 log_Printf(LogWARN, "%s Cannot send a netgraph message: %s\n",
526 path, strerror(errno));
527 return ether_Abandon(dev, p);
528 }
529
530 /* Get our list back */

--- 206 unchanged lines hidden ---