raw_ip6.c (83934) | raw_ip6.c (91346) |
---|---|
1/* 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 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 --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 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 --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/netinet6/raw_ip6.c 83934 2001-09-25 18:40:52Z brooks $ | 29 * $FreeBSD: head/sys/netinet6/raw_ip6.c 91346 2002-02-27 02:44:45Z alfred $ |
30 */ 31 32/* 33 * Copyright (c) 1982, 1986, 1988, 1993 34 * The Regents of the University of California. All rights reserved. 35 * 36 * Redistribution and use in source and binary forms, with or without 37 * modification, are permitted provided that the following conditions --- 236 unchanged lines hidden (view full) --- 274 off = ip6cp->ip6c_off; 275 sa6_src = ip6cp->ip6c_src; 276 } else { 277 m = NULL; 278 ip6 = NULL; 279 sa6_src = &sa6_any; 280 } 281 | 30 */ 31 32/* 33 * Copyright (c) 1982, 1986, 1988, 1993 34 * The Regents of the University of California. All rights reserved. 35 * 36 * Redistribution and use in source and binary forms, with or without 37 * modification, are permitted provided that the following conditions --- 236 unchanged lines hidden (view full) --- 274 off = ip6cp->ip6c_off; 275 sa6_src = ip6cp->ip6c_src; 276 } else { 277 m = NULL; 278 ip6 = NULL; 279 sa6_src = &sa6_any; 280 } 281 |
282 (void) in6_pcbnotify(&ripcb, sa, 0, (struct sockaddr *)sa6_src, | 282 (void) in6_pcbnotify(&ripcb, sa, 0, (const struct sockaddr *)sa6_src, |
283 0, cmd, notify); 284} 285 286/* 287 * Generate IPv6 header and pass packet to ip6_output. 288 * Tack on options user may have setup with control call. 289 */ 290int --- 433 unchanged lines hidden --- | 283 0, cmd, notify); 284} 285 286/* 287 * Generate IPv6 header and pass packet to ip6_output. 288 * Tack on options user may have setup with control call. 289 */ 290int --- 433 unchanged lines hidden --- |