Deleted Added
full compact
rtsock.c (93593) rtsock.c (95552)
1/*
2 * Copyright (c) 1988, 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 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
1/*
2 * Copyright (c) 1988, 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 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
34 * $FreeBSD: head/sys/net/rtsock.c 93593 2002-04-01 21:31:13Z jhb $
34 * $FreeBSD: head/sys/net/rtsock.c 95552 2002-04-27 08:24:29Z tanimura $
35 */
36
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/sysctl.h>
42#include <sys/proc.h>

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

141 route_cb.ipx_count++;
142 break;
143 case AF_NS:
144 route_cb.ns_count++;
145 break;
146 }
147 rp->rcb_faddr = &route_src;
148 route_cb.any_count++;
35 */
36
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/sysctl.h>
42#include <sys/proc.h>

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

141 route_cb.ipx_count++;
142 break;
143 case AF_NS:
144 route_cb.ns_count++;
145 break;
146 }
147 rp->rcb_faddr = &route_src;
148 route_cb.any_count++;
149 soisconnected(so);
149 SIGIO_SLOCK();
150 soisconnected_locked(so);
150 so->so_options |= SO_USELOOPBACK;
151 so->so_options |= SO_USELOOPBACK;
152 SIGIO_SUNLOCK();
151 splx(s);
152 return 0;
153}
154
155static int
156rts_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
157{
158 int s, error;

--- 902 unchanged lines hidden ---
153 splx(s);
154 return 0;
155}
156
157static int
158rts_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
159{
160 int s, error;

--- 902 unchanged lines hidden ---