policy_parse.y (62583) | policy_parse.y (92917) |
---|---|
1/* $FreeBSD: head/lib/libipsec/policy_parse.y 62583 2000-07-04 16:22:05Z itojun $ */ | 1/* $FreeBSD: head/lib/libipsec/policy_parse.y 92917 2002-03-21 23:54:04Z obrien $ */ |
2/* $KAME: policy_parse.y,v 1.10 2000/05/07 05:25:03 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 60 unchanged lines hidden (view full) --- 70static caddr_t pbuf = NULL; /* sadb_x_policy buffer */ 71static int tlen = 0; /* total length of pbuf */ 72static int offset = 0; /* offset of pbuf */ 73static int p_dir, p_type, p_protocol, p_mode, p_level, p_reqid; 74static struct sockaddr *p_src = NULL; 75static struct sockaddr *p_dst = NULL; 76 77struct _val; | 2/* $KAME: policy_parse.y,v 1.10 2000/05/07 05:25:03 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 60 unchanged lines hidden (view full) --- 70static caddr_t pbuf = NULL; /* sadb_x_policy buffer */ 71static int tlen = 0; /* total length of pbuf */ 72static int offset = 0; /* offset of pbuf */ 73static int p_dir, p_type, p_protocol, p_mode, p_level, p_reqid; 74static struct sockaddr *p_src = NULL; 75static struct sockaddr *p_dst = NULL; 76 77struct _val; |
78extern void yyerror __P((char *msg)); 79static struct sockaddr *parse_sockaddr __P((struct _val *buf)); 80static int rule_check __P((void)); 81static int init_x_policy __P((void)); 82static int set_x_request __P((struct sockaddr *src, struct sockaddr *dst)); 83static int set_sockaddr __P((struct sockaddr *addr)); 84static void policy_parse_request_init __P((void)); 85static caddr_t policy_parse __P((char *msg, int msglen)); | 78extern void yyerror(char *msg); 79static struct sockaddr *parse_sockaddr(struct _val *buf); 80static int rule_check(void); 81static int init_x_policy(void); 82static int set_x_request(struct sockaddr *src, struct sockaddr *dst); 83static int set_sockaddr(struct sockaddr *addr); 84static void policy_parse_request_init(void); 85static caddr_t policy_parse(char *msg, int msglen); |
86 | 86 |
87extern void __policy__strbuffer__init__ __P((char *msg)); 88extern int yyparse __P((void)); 89extern int yylex __P((void)); | 87extern void __policy__strbuffer__init__(char *msg); 88extern int yyparse(void); 89extern int yylex(void); |
90 91%} 92 93%union { 94 u_int num; 95 struct _val { 96 int len; 97 char *buf; --- 335 unchanged lines hidden --- | 90 91%} 92 93%union { 94 u_int num; 95 struct _val { 96 int len; 97 char *buf; --- 335 unchanged lines hidden --- |