/[svn]/ircd-hybrid-8/src/conf_parser.y
ViewVC logotype

Diff of /ircd-hybrid-8/src/conf_parser.y

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

revision 1376 by michael, Wed Apr 25 19:04:19 2012 UTC revision 1377 by michael, Mon Apr 30 19:35:16 2012 UTC
# Line 1392  class_name: NAME '=' QSTRING ';' Line 1392  class_name: NAME '=' QSTRING ';'
1392  class_ping_time: PING_TIME '=' timespec ';'  class_ping_time: PING_TIME '=' timespec ';'
1393  {  {
1394    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1395      PingFreq(yy_class) = $3;      yy_class->ping_freq = $3;
1396  };  };
1397    
1398  class_ping_warning: PING_WARNING '=' timespec ';'  class_ping_warning: PING_WARNING '=' timespec ';'
1399  {  {
1400    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1401      PingWarning(yy_class) = $3;      yy_class->ping_warning = $3;
1402  };  };
1403    
1404  class_number_per_ip: NUMBER_PER_IP '=' NUMBER ';'  class_number_per_ip: NUMBER_PER_IP '=' NUMBER ';'
1405  {  {
1406    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1407      MaxPerIp(yy_class) = $3;      yy_class->max_perip = $3;
1408  };  };
1409    
1410  class_connectfreq: CONNECTFREQ '=' timespec ';'  class_connectfreq: CONNECTFREQ '=' timespec ';'
1411  {  {
1412    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1413      ConFreq(yy_class) = $3;      yy_class->con_freq = $3;
1414  };  };
1415    
1416  class_max_number: MAX_NUMBER '=' NUMBER ';'  class_max_number: MAX_NUMBER '=' NUMBER ';'
1417  {  {
1418    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1419      MaxTotal(yy_class) = $3;      yy_class->max_total = $3;
1420  };  };
1421    
1422  class_max_global: MAX_GLOBAL '=' NUMBER ';'  class_max_global: MAX_GLOBAL '=' NUMBER ';'
1423  {  {
1424    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1425      MaxGlobal(yy_class) = $3;      yy_class->max_global = $3;
1426  };  };
1427    
1428  class_max_local: MAX_LOCAL '=' NUMBER ';'  class_max_local: MAX_LOCAL '=' NUMBER ';'
1429  {  {
1430    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1431      MaxLocal(yy_class) = $3;      yy_class->max_local = $3;
1432  };  };
1433    
1434  class_max_ident: MAX_IDENT '=' NUMBER ';'  class_max_ident: MAX_IDENT '=' NUMBER ';'
1435  {  {
1436    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1437      MaxIdent(yy_class) = $3;      yy_class->max_ident = $3;
1438  };  };
1439    
1440  class_sendq: SENDQ '=' sizespec ';'  class_sendq: SENDQ '=' sizespec ';'
1441  {  {
1442    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1443      MaxSendq(yy_class) = $3;      yy_class->max_sendq = $3;
1444  };  };
1445    
1446  class_cidr_bitlen_ipv4: CIDR_BITLEN_IPV4 '=' NUMBER ';'  class_cidr_bitlen_ipv4: CIDR_BITLEN_IPV4 '=' NUMBER ';'
1447  {  {
1448    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1449      CidrBitlenIPV4(yy_class) = $3;      yy_class->cidr_bitlen_ipv4 = $3;
1450  };  };
1451    
1452  class_cidr_bitlen_ipv6: CIDR_BITLEN_IPV6 '=' NUMBER ';'  class_cidr_bitlen_ipv6: CIDR_BITLEN_IPV6 '=' NUMBER ';'
1453  {  {
1454    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1455      CidrBitlenIPV6(yy_class) = $3;      yy_class->cidr_bitlen_ipv6 = $3;
1456  };  };
1457    
1458  class_number_per_cidr: NUMBER_PER_CIDR '=' NUMBER ';'  class_number_per_cidr: NUMBER_PER_CIDR '=' NUMBER ';'
1459  {  {
1460    if (conf_parser_ctx.pass == 1)    if (conf_parser_ctx.pass == 1)
1461      NumberPerCidr(yy_class) = $3;      yy_class->number_per_cidr = $3;
1462  };  };
1463    
1464  /***************************************************************************  /***************************************************************************

Legend:
Removed from v.1376  
changed lines
  Added in v.1377

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28