Deleted Added
full compact
ip_dn_glue.c (240494) ip_dn_glue.c (241369)
1/*-
2 * Copyright (c) 2010 Riccardo Panicucci, Universita` di Pisa
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

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

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
27/*
1/*-
2 * Copyright (c) 2010 Riccardo Panicucci, Universita` di Pisa
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

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

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
27/*
28 * $FreeBSD: head/sys/netpfil/ipfw/ip_dn_glue.c 240494 2012-09-14 11:51:49Z glebius $
28 * $FreeBSD: head/sys/netpfil/ipfw/ip_dn_glue.c 241369 2012-10-09 06:15:16Z kevlo $
29 *
30 * Binary compatibility support for /sbin/ipfw RELENG_7 and RELENG_8
31 */
32
33#include "opt_inet6.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

310
311static size_t pipesize7 = sizeof(struct dn_pipe7);
312static size_t pipesize8 = sizeof(struct dn_pipe8);
313static size_t pipesizemax8 = sizeof(struct dn_pipe_max8);
314
315/* Indicate 'ipfw' version
316 * 1: from FreeBSD 7.2
317 * 0: from FreeBSD 8
29 *
30 * Binary compatibility support for /sbin/ipfw RELENG_7 and RELENG_8
31 */
32
33#include "opt_inet6.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

310
311static size_t pipesize7 = sizeof(struct dn_pipe7);
312static size_t pipesize8 = sizeof(struct dn_pipe8);
313static size_t pipesizemax8 = sizeof(struct dn_pipe_max8);
314
315/* Indicate 'ipfw' version
316 * 1: from FreeBSD 7.2
317 * 0: from FreeBSD 8
318 * -1: unknow (for now is unused)
318 * -1: unknown (for now is unused)
319 *
320 * It is update when a IP_DUMMYNET_DEL or IP_DUMMYNET_CONFIGURE request arrives
319 *
320 * It is update when a IP_DUMMYNET_DEL or IP_DUMMYNET_CONFIGURE request arrives
321 * NOTE: if a IP_DUMMYNET_GET arrives and the 'ipfw' version is unknow,
321 * NOTE: if a IP_DUMMYNET_GET arrives and the 'ipfw' version is unknown,
322 * it is suppose to be the FreeBSD 8 version.
323 */
324static int is7 = 0;
325
326static int
327convertflags2new(int src)
328{
329 int dst = 0;

--- 517 unchanged lines hidden ---
322 * it is suppose to be the FreeBSD 8 version.
323 */
324static int is7 = 0;
325
326static int
327convertflags2new(int src)
328{
329 int dst = 0;

--- 517 unchanged lines hidden ---