Deleted Added
full compact
if_llatbl.c (215701) if_llatbl.c (222143)
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. 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:

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

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
3 * Copyright (c) 2004-2008 Qing Li. All rights reserved.
4 * Copyright (c) 2008 Kip Macy. 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:

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

20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.c 215701 2010-11-22 19:32:54Z dim $");
28__FBSDID("$FreeBSD: head/sys/net/if_llatbl.c 222143 2011-05-20 19:12:20Z qingli $");
29
30#include "opt_ddb.h"
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/malloc.h>

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

223 }
224 }
225 }
226 LLTABLE_RUNLOCK();
227}
228#endif
229
230void
29
30#include "opt_ddb.h"
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/malloc.h>

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

223 }
224 }
225 }
226 LLTABLE_RUNLOCK();
227}
228#endif
229
230void
231lltable_prefix_free(int af, struct sockaddr *prefix, struct sockaddr *mask)
231lltable_prefix_free(int af, struct sockaddr *prefix, struct sockaddr *mask,
232 u_int flags)
232{
233 struct lltable *llt;
234
235 LLTABLE_RLOCK();
236 SLIST_FOREACH(llt, &V_lltables, llt_link) {
237 if (llt->llt_af != af)
238 continue;
239
233{
234 struct lltable *llt;
235
236 LLTABLE_RLOCK();
237 SLIST_FOREACH(llt, &V_lltables, llt_link) {
238 if (llt->llt_af != af)
239 continue;
240
240 llt->llt_prefix_free(llt, prefix, mask);
241 llt->llt_prefix_free(llt, prefix, mask, flags);
241 }
242 LLTABLE_RUNLOCK();
243}
244
245
246
247/*
248 * Create a new lltable.

--- 295 unchanged lines hidden ---
242 }
243 LLTABLE_RUNLOCK();
244}
245
246
247
248/*
249 * Create a new lltable.

--- 295 unchanged lines hidden ---