Deleted Added
full compact
config.c (234988) config.c (235789)
1/*-
2 * Copyright (c) 2011 James Gritton
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#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011 James Gritton
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#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/usr.sbin/jail/config.c 234988 2012-05-03 21:39:23Z jamie $");
28__FBSDID("$FreeBSD: head/usr.sbin/jail/config.c 235789 2012-05-22 16:33:10Z bapt $");
29
30#include <sys/types.h>
31#include <sys/errno.h>
32#include <sys/socket.h>
33#include <sys/sysctl.h>
34
35#include <arpa/inet.h>
36#include <netinet/in.h>

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

47struct ipspec {
48 const char *name;
49 unsigned flags;
50};
51
52extern FILE *yyin;
53extern int yynerrs;
54
29
30#include <sys/types.h>
31#include <sys/errno.h>
32#include <sys/socket.h>
33#include <sys/sysctl.h>
34
35#include <arpa/inet.h>
36#include <netinet/in.h>

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

47struct ipspec {
48 const char *name;
49 unsigned flags;
50};
51
52extern FILE *yyin;
53extern int yynerrs;
54
55extern int yyparse(void);
56
55struct cfjails cfjails = TAILQ_HEAD_INITIALIZER(cfjails);
56
57static void free_param(struct cfparams *pp, struct cfparam *p);
58static void free_param_strings(struct cfparam *p);
59
60static const struct ipspec intparams[] = {
61 [IP_ALLOW_DYING] = {"allow.dying", PF_INTERNAL | PF_BOOL},
62 [IP_COMMAND] = {"command", PF_INTERNAL},

--- 769 unchanged lines hidden ---
57struct cfjails cfjails = TAILQ_HEAD_INITIALIZER(cfjails);
58
59static void free_param(struct cfparams *pp, struct cfparam *p);
60static void free_param_strings(struct cfparam *p);
61
62static const struct ipspec intparams[] = {
63 [IP_ALLOW_DYING] = {"allow.dying", PF_INTERNAL | PF_BOOL},
64 [IP_COMMAND] = {"command", PF_INTERNAL},

--- 769 unchanged lines hidden ---