Deleted Added
full compact
in_mcast.c (197314) in_mcast.c (199525)
1/*-
2 * Copyright (c) 2007-2009 Bruce Simpson.
3 * Copyright (c) 2005 Robert N. M. Watson.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

28 * SUCH DAMAGE.
29 */
30
31/*
32 * IPv4 multicast socket, group, and socket option processing module.
33 */
34
35#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2009 Bruce Simpson.
3 * Copyright (c) 2005 Robert N. M. Watson.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

28 * SUCH DAMAGE.
29 */
30
31/*
32 * IPv4 multicast socket, group, and socket option processing module.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/netinet/in_mcast.c 197314 2009-09-18 15:12:31Z bms $");
36__FBSDID("$FreeBSD: head/sys/netinet/in_mcast.c 199525 2009-11-19 13:21:37Z bms $");
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/malloc.h>
42#include <sys/mbuf.h>
43#include <sys/protosw.h>
44#include <sys/socket.h>

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

1962 idx = imo_match_group(imo, ifp, &gsa->sa);
1963 if (idx == -1) {
1964 is_new = 1;
1965 } else {
1966 inm = imo->imo_membership[idx];
1967 imf = &imo->imo_mfilters[idx];
1968 if (ssa->ss.ss_family != AF_UNSPEC) {
1969 /*
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/malloc.h>
42#include <sys/mbuf.h>
43#include <sys/protosw.h>
44#include <sys/socket.h>

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

1962 idx = imo_match_group(imo, ifp, &gsa->sa);
1963 if (idx == -1) {
1964 is_new = 1;
1965 } else {
1966 inm = imo->imo_membership[idx];
1967 imf = &imo->imo_mfilters[idx];
1968 if (ssa->ss.ss_family != AF_UNSPEC) {
1969 /*
1970 * MCAST_JOIN_SOURCE on an exclusive membership
1970 * MCAST_JOIN_SOURCE_GROUP on an exclusive membership
1971 * is an error. On an existing inclusive membership,
1972 * it just adds the source to the filter list.
1973 */
1974 if (imf->imf_st[1] != MCAST_INCLUDE) {
1975 error = EINVAL;
1976 goto out_inp_locked;
1977 }
1978 /*

--- 931 unchanged lines hidden ---
1971 * is an error. On an existing inclusive membership,
1972 * it just adds the source to the filter list.
1973 */
1974 if (imf->imf_st[1] != MCAST_INCLUDE) {
1975 error = EINVAL;
1976 goto out_inp_locked;
1977 }
1978 /*

--- 931 unchanged lines hidden ---