/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.142 by hauk, Thu Oct 2 02:42:41 2003 UTC revision 1.143 by hauk, Wed Oct 8 02:14:23 2003 UTC
# Line 122  Line 122 
122      int  ssl;      int  ssl;
123      int  sslversion;      int  sslversion;
124      char *request;      char *request;
125        char *request_checksum;
126      Generic_T generic;      Generic_T generic;
127      char *pathname;      char *pathname;
128      char *certmd5;      char *certmd5;
# Line 206  Line 207 
207    static Service_T depend_list= NULL;    static Service_T depend_list= NULL;
208    static struct IHavePrecedence ihp= {FALSE, FALSE, FALSE};    static struct IHavePrecedence ihp= {FALSE, FALSE, FALSE};
209    static struct PortSet portset= {-1, NULL, 0, SOCK_STREAM, AF_INET, FALSE,    static struct PortSet portset= {-1, NULL, 0, SOCK_STREAM, AF_INET, FALSE,
210     SSL_VERSION_AUTO, NULL, NULL, NULL, NULL, NULL, ACTION_ALERT, NET_TIMEOUT};                                    SSL_VERSION_AUTO, NULL,NULL,  NULL, NULL,
211                                      NULL, NULL, ACTION_ALERT, NET_TIMEOUT};
212    static struct ResourceSet resourceset= {0, 0, OPERATOR_EQUAL, 1,    static struct ResourceSet resourceset= {0, 0, OPERATOR_EQUAL, 1,
213      ACTION_ALERT};      ACTION_ALERT};
214    static struct TimestampSet timestampset= {OPERATOR_EQUAL, 0, 0, ACTION_ALERT};    static struct TimestampSet timestampset= {OPERATOR_EQUAL, 0, 0, ACTION_ALERT};
# Line 732  sendexpect      : SEND STRING { addgener Line 734  sendexpect      : SEND STRING { addgener
734    
735  request         : /* EMPTY */  request         : /* EMPTY */
736                  | REQUEST PATH  { portset.request= url_encode($2); FREE($2); }                  | REQUEST PATH  { portset.request= url_encode($2); FREE($2); }
737                    | REQUEST PATH CHECKSUM STRING {
738                       portset.request= url_encode($2); FREE($2);
739                       portset.request_checksum= $4;
740                      }
741                  ;                  ;
742    
743  nettimeout      : /* EMPTY */ {  nettimeout      : /* EMPTY */ {
# Line 1331  static void addport(struct PortSet *pp) Line 1337  static void addport(struct PortSet *pp)
1337    p->protocol= pp->protocol;    p->protocol= pp->protocol;
1338    p->pathname= pp->pathname;    p->pathname= pp->pathname;
1339    p->hostname= pp->hostname;    p->hostname= pp->hostname;
1340      p->request_checksum= pp->request_checksum;
1341    
1342    if(pp->family == AF_INET) {    if(pp->family == AF_INET) {
1343      snprintf(address, STRLEN, "INET[%s:%d]", pp->hostname, pp->port);      snprintf(address, STRLEN, "INET[%s:%d]", pp->hostname, pp->port);
# Line 2201  static void reset_portset() { Line 2208  static void reset_portset() {
2208    portset.ssl= FALSE;    portset.ssl= FALSE;
2209    portset.sslversion= SSL_VERSION_AUTO;    portset.sslversion= SSL_VERSION_AUTO;
2210    portset.request= NULL;    portset.request= NULL;
2211      portset.request_checksum= NULL;
2212    portset.generic= NULL;    portset.generic= NULL;
2213    portset.protocol= NULL;    portset.protocol= NULL;
2214    portset.pathname= NULL;    portset.pathname= NULL;

Legend:
Removed from v.1.142  
changed lines
  Added in v.1.143

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26