Deleted Added
full compact
ng_eiface.c (141193) ng_eiface.c (141195)
1/*-
2 *
3 * Copyright (c) 1999-2001, Vitaly V Belekhov
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

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

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/netgraph/ng_eiface.c 141193 2005-02-03 11:52:42Z ru $
28 * $FreeBSD: head/sys/netgraph/ng_eiface.c 141195 2005-02-03 12:50:10Z ru $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/errno.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/malloc.h>

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

519 LLADDR(sdl), ifp->if_addrlen);
520 break;
521 }
522 }
523 break;
524 }
525
526 case NGM_EIFACE_GET_IFNAME:
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/errno.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/malloc.h>

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

519 LLADDR(sdl), ifp->if_addrlen);
520 break;
521 }
522 }
523 break;
524 }
525
526 case NGM_EIFACE_GET_IFNAME:
527 NG_MKRESPONSE(resp, msg, IFNAMSIZ + 1, M_NOWAIT);
527 NG_MKRESPONSE(resp, msg, IFNAMSIZ, M_NOWAIT);
528 if (resp == NULL) {
529 error = ENOMEM;
530 break;
531 }
528 if (resp == NULL) {
529 error = ENOMEM;
530 break;
531 }
532 strlcpy(resp->data, ifp->if_xname, IFNAMSIZ + 1);
532 strlcpy(resp->data, ifp->if_xname, IFNAMSIZ);
533 break;
534
535 case NGM_EIFACE_GET_IFADDRS:
536 {
537 struct ifaddr *ifa;
538 caddr_t ptr;
539 int buflen;
540

--- 127 unchanged lines hidden ---
533 break;
534
535 case NGM_EIFACE_GET_IFADDRS:
536 {
537 struct ifaddr *ifa;
538 caddr_t ptr;
539 int buflen;
540

--- 127 unchanged lines hidden ---