Deleted Added
full compact
ipv6cp.c (112618) ipv6cp.c (113067)
1/*-
2 * Copyright (c) 2001 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) 2001 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/ipv6cp.c 112618 2003-03-25 17:01:39Z ume $
26 * $FreeBSD: head/usr.sbin/ppp/ipv6cp.c 113067 2003-04-04 11:09:08Z ume $
27 */
28
29#include <sys/param.h>
30#include <netinet/in_systm.h>
31#include <netinet/in.h>
32#include <netinet/ip.h>
33#include <sys/socket.h>
34#include <net/route.h>

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

219 hisaddr.s6_addr[1] = 0x80;
220 memcpy(&hisaddr.s6_addr[8], hisifid, IPV6CP_IFIDLEN);
221#if 0
222 hisaddr.s6_addr[8] |= 0x02; /* set 'universal' bit */
223#endif
224
225 ncpaddr_setip6(&ipv6cp->myaddr, &myaddr);
226 ncpaddr_setip6(&ipv6cp->hisaddr, &hisaddr);
27 */
28
29#include <sys/param.h>
30#include <netinet/in_systm.h>
31#include <netinet/in.h>
32#include <netinet/ip.h>
33#include <sys/socket.h>
34#include <net/route.h>

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

219 hisaddr.s6_addr[1] = 0x80;
220 memcpy(&hisaddr.s6_addr[8], hisifid, IPV6CP_IFIDLEN);
221#if 0
222 hisaddr.s6_addr[8] |= 0x02; /* set 'universal' bit */
223#endif
224
225 ncpaddr_setip6(&ipv6cp->myaddr, &myaddr);
226 ncpaddr_setip6(&ipv6cp->hisaddr, &hisaddr);
227 ncprange_sethost(&myrange, &ipv6cp->myaddr);
227 ncprange_set(&myrange, &ipv6cp->myaddr, 64);
228
229 if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr,
230 IFACE_ADD_FIRST|IFACE_FORCE_ADD|IFACE_SYSTEM))
231 return 0;
232
233 if (!Enabled(bundle, OPT_IFACEALIAS))
234 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6,
235 IFACE_CLEAR_ALIASES|IFACE_SYSTEM);

--- 511 unchanged lines hidden ---
228
229 if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr,
230 IFACE_ADD_FIRST|IFACE_FORCE_ADD|IFACE_SYSTEM))
231 return 0;
232
233 if (!Enabled(bundle, OPT_IFACEALIAS))
234 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6,
235 IFACE_CLEAR_ALIASES|IFACE_SYSTEM);

--- 511 unchanged lines hidden ---