Deleted Added
full compact
in.c (55917) in.c (62587)
1/*
2 * Copyright (c) 1982, 1986, 1991, 1993
3 * The Regents of the University of California. 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in.c 8.4 (Berkeley) 1/9/95
1/*
2 * Copyright (c) 1982, 1986, 1991, 1993
3 * The Regents of the University of California. 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in.c 8.4 (Berkeley) 1/9/95
34 * $FreeBSD: head/sys/netinet/in.c 55917 2000-01-13 14:52:53Z shin $
34 * $FreeBSD: head/sys/netinet/in.c 62587 2000-07-04 16:35:15Z itojun $
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/sockio.h>
40#include <sys/malloc.h>
41#include <sys/proc.h>
42#include <sys/socket.h>

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

202 struct sockaddr_in oldaddr;
203 int error, hostIsNew, maskIsNew, s;
204 u_long i;
205
206#if NGIF > 0
207 if (ifp && ifp->if_type == IFT_GIF) {
208 switch (cmd) {
209 case SIOCSIFPHYADDR:
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/sockio.h>
40#include <sys/malloc.h>
41#include <sys/proc.h>
42#include <sys/socket.h>

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

202 struct sockaddr_in oldaddr;
203 int error, hostIsNew, maskIsNew, s;
204 u_long i;
205
206#if NGIF > 0
207 if (ifp && ifp->if_type == IFT_GIF) {
208 switch (cmd) {
209 case SIOCSIFPHYADDR:
210 case SIOCDIFPHYADDR:
210 if (p &&
211 (error = suser(p)) != 0)
212 return(error);
213 case SIOCGIFPSRCADDR:
214 case SIOCGIFPDSTADDR:
215 return gif_ioctl(ifp, cmd, data);
216 }
217 }

--- 636 unchanged lines hidden ---
211 if (p &&
212 (error = suser(p)) != 0)
213 return(error);
214 case SIOCGIFPSRCADDR:
215 case SIOCGIFPDSTADDR:
216 return gif_ioctl(ifp, cmd, data);
217 }
218 }

--- 636 unchanged lines hidden ---