Deleted Added
full compact
ip_output.c (1542) ip_output.c (1549)
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 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

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

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 * @(#)ip_output.c 8.3 (Berkeley) 1/21/94
34 */
35
36#include <sys/param.h>
1/*
2 * Copyright (c) 1982, 1986, 1988, 1990, 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

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

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 * @(#)ip_output.c 8.3 (Berkeley) 1/21/94
34 */
35
36#include <sys/param.h>
37#include <sys/systm.h>
37#include <sys/malloc.h>
38#include <sys/mbuf.h>
39#include <sys/errno.h>
40#include <sys/protosw.h>
41#include <sys/socket.h>
42#include <sys/socketvar.h>
43
44#include <net/if.h>

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

478ip_ctloutput(op, so, level, optname, mp)
479 int op;
480 struct socket *so;
481 int level, optname;
482 struct mbuf **mp;
483{
484 register struct inpcb *inp = sotoinpcb(so);
485 register struct mbuf *m = *mp;
38#include <sys/malloc.h>
39#include <sys/mbuf.h>
40#include <sys/errno.h>
41#include <sys/protosw.h>
42#include <sys/socket.h>
43#include <sys/socketvar.h>
44
45#include <net/if.h>

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

479ip_ctloutput(op, so, level, optname, mp)
480 int op;
481 struct socket *so;
482 int level, optname;
483 struct mbuf **mp;
484{
485 register struct inpcb *inp = sotoinpcb(so);
486 register struct mbuf *m = *mp;
486 register int optval;
487 register int optval = 0;
487 int error = 0;
488
489 if (level != IPPROTO_IP) {
490 error = EINVAL;
491 if (op == PRCO_SETOPT && *mp)
492 (void) m_free(*mp);
493 } else switch (op) {
494

--- 570 unchanged lines hidden ---
488 int error = 0;
489
490 if (level != IPPROTO_IP) {
491 error = EINVAL;
492 if (op == PRCO_SETOPT && *mp)
493 (void) m_free(*mp);
494 } else switch (op) {
495

--- 570 unchanged lines hidden ---