⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sipb_bnfrules_forparse.h

📁 sip torture test tools
💻 H
📖 第 1 页 / 共 3 页
字号:
//sipb_bnfrules_forparse.h#ifndef __MLTD_SIPB_BNFRULES_FORPARSE_H__#define __MLTD_SIPB_BNFRULES_FORPARSE_H__static const char* sipb_bnfrules_forparse[]={       "      alphanum  =  ALPHA / DIGIT",       "      reserved    =  \";\" / \"/\" / \"?\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\"",       "                     / \"$\" / \",\"",       "      unreserved  =  alphanum / mark",       "      mark        =  \"-\" / \"_\" / \".\" / \"!\" / \"~\" / \"*\" / \"'\"",       "                     / \"(\" / \")\"",       "      escaped     =  \"%\" HEXDIG HEXDIG",       ";!!! We change this rule",       ";- - - - - - - - - - - - - - - - - - - - - -  ",       "      LWS  =  ( *WSP CRLF 1*WSP ) / ( 1*WSP ) ; linear whitespace",       ";- - - - - - - - - - - - - - - - - - - - - -  ",       "     SWS  =  [LWS] ; sep whitespace",       "      HCOLON  =  *( SP / HTAB ) \":\" SWS",       "      TEXT-UTF8-TRIM  =  1*TEXT-UTF8char *(*LWS TEXT-UTF8char)",       "      TEXT-UTF8char   =  %x21-7E / UTF8-NONASCII",       "      UTF8-NONASCII   =  %xC0-DF 1UTF8-CONT",       "                      /  %xE0-EF 2UTF8-CONT",       "                      /  %xF0-F7 3UTF8-CONT",       "                      /  %xF8-Fb 4UTF8-CONT",       "                      /  %xFC-FD 5UTF8-CONT",       "      UTF8-CONT       =  %x80-BF",       "      LHEX  =  DIGIT / %x61-66 ;lowercase a-f",       "      token       =  1*(alphanum / \"-\" / \".\" / \"!\" / \"%\" / \"*\"",       "                     / \"_\" / \"+\" / \"`\" / \"'\" / \"~\" )",       "      separators  =  \"(\" / \")\" / \"<\" / \">\" / \"@\" /",       "                     \",\" / \";\" / \":\" / \"\\\" / DQUOTE /",       "                     \"/\" / \"[\" / \"]\" / \"?\" / \"=\" /",       "                     \"{\" / \"}\" / SP / HTAB",       "      word        =  1*(alphanum / \"-\" / \".\" / \"!\" / \"%\" / \"*\" /",       "                     \"_\" / \"+\" / \"`\" / \"'\" / \"~\" /",       "                     \"(\" / \")\" / \"<\" / \">\" /",       "                     \":\" / \"\\\" / DQUOTE /",       "                     \"/\" / \"[\" / \"]\" / \"?\" /",       "                     \"{\" / \"}\" )",       "      STAR    =  SWS \"*\" SWS ; asterisk",       "      SLASH   =  SWS \"/\" SWS ; slash",       "      EQUAL   =  SWS \"=\" SWS ; equal",       "      LPAREN  =  SWS \"(\" SWS ; left parenthesis",       "      RPAREN  =  SWS \")\" SWS ; right parenthesis",       "      RAQUOT  =  \">\" SWS ; right angle quote",       "      LAQUOT  =  SWS \"<\"; left angle quote",       "      COMMA   =  SWS \",\" SWS ; comma",       "      SEMI    =  SWS \";\" SWS ; semicolon",       "      COLON   =  SWS \":\" SWS ; colon",       "      LDQUOT  =  SWS DQUOTE; open double quotation mark",       "      RDQUOT  =  DQUOTE SWS ; close double quotation mark",       "      ",       "   ;We change this rule!!!",       "   ;- - - - - - - - - - - - - - - - - - - - - - - - - -   ",       "      comment  =  LPAREN *(ctext / quoted-pair / comment1) RPAREN",       "      comment1  = LPAREN *(ctext / quoted-pair / comment2) RPAREN",       "      comment2  = LPAREN *(ctext / quoted-pair / comment3) RPAREN",       "      comment3  = LPAREN *(ctext / quoted-pair) RPAREN",       "   ;- - - - - - - - - - - - - - - - - - - - - - - - - -   ",       "   ",       "      ",       "      ctext    =  %x21-27 / %x2A-5B / %x5D-7E / UTF8-NONASCII",       "                  / LWS",       ";We change this rule",       ";- - - - - - - - - - - - - - - - - - - - - - - - - -   ",       "      quoted-string  =  SWS DQUOTE quoted-string-data DQUOTE",       "      quoted-string-data=*(qdtext / quoted-pair )",       ";- - - - - - - - - - - - - - - - - - - - - - - - - -   ",       "      qdtext         =  LWS / %x21 / %x23-5B / %x5D-7E",       "                        / UTF8-NONASCII",       "quoted-pair  =  \"\\\" (%x00-09 / %x0B-0C",       "                / %x0E-7F)",       "SIP-URI          =  \"sip:\" [ userinfo ] hostport",       "                    uri-parameters [ headers ]",       "SIPS-URI         =  \"sips:\" [ userinfo ] hostport",       "                    uri-parameters [ headers ]",       "      ",       ";!!!! we delete telephone-subscriber ",       ";- - - - - - - - - - - - - - - - - - -",       "userinfo         =   user  [ \":\" password ] \"@\"",       ";- - - - - - - - - - - - - - - - - - -",       "user             =  1*( unreserved / escaped / user-unreserved )",       "user-unreserved  =  \"&\" / \"=\" / \"+\" / \"$\" / \",\" / \";\" / \"?\" / \"/\"",       "password         =  *( unreserved / escaped /",       "                    \"&\" / \"=\" / \"+\" / \"$\" / \",\" )",       "hostport         =  host [ \":\" port ]",       "; !!! we swap hostname <-> IPv4address",       ";- - - - - - - - - - - - - - - - - - -",       "host             =  IPv4address / hostname / IPv6reference",       ";- - - - - - - - - - - - - - - - - - -",       "   ; !! we swap rules",       "   ; We change it",       ";- - - - - - - - - - - - - - - - - - - - - - -  ",       "hostname         =  domainlabel [ \".\" ] *( domainlabel \".\" ) [ domainlabel ]",       ";- - - - - - - - - - - - - - - - - - - - - - -  ",       "domainlabel      =   alphanum *(  *(\"-\") alphanum )",       "IPv4address    =  1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT",       "IPv6reference  =  \"[\" IPv6address \"]\"",       ";TODO: make it currect",       "; We change this IPv6addres rule",       ";- - - - - - - - - - - - - - - - - - - - - - -  ",       "IPv6address    =  hexpart",       "hexpart        =  hexseq / ( hexseq \"::\" [ hexseq ] [ \":\" IPv4address] ) ",       "                  / \"::\" [ hexseq ] [ \":\" IPv4address ]",       "hexseq         =  hex4 *( \":\" ( hex4 / IPv4address ))",       "; We move IPv4address from IPv6address to hexseq",       ";- - - - - - - - - - - - - - - - - - - - - - -  ",       "hex4           =  1*4HEXDIG",       "port           =  1*DIGIT",       "uri-parameters    =  *( \";\" uri-parameter)",       ";!!!! WE comment other-param",       ";- - - - - - - - - - - - - - - - - - - - - - -  ",       "uri-parameter     =  transport-param / user-param / method-param",       "                     / ttl-param / maddr-param / lr-param    ; / other-param",       ";- - - - - - - - - - - - - - - - - - - - - - -  ",       ";We change this rule!!!!",       ";- - - - - - - - - - - - - - - - - - ",       "transport-param   =  \"transport=\" transport-param-trans",       "transport-param-trans=( \"udp\" / \"tcp\" / \"sctp\" / \"tls\"",       "                       / other-transport)",       ";- - - - - - - - - - - - - - - - - - ",       "other-transport   =  token",       ";We change this rule!!!",       ";- - - - - - - - - - -",       "user-param        =  \"user=\" user-param-param ",       "user-param-param  = ( \"phone\" / \"ip\" / other-user)",       ";- - - - - - - - - - - ",       "other-user        =  token",       "method-param      =  \"method=\" Method",       "ttl-param         =  \"ttl=\" ttl",       ";We change this rule!!!",       ";- - - - - - - - - - - - - - - - - ",       "maddr-param       =  \"maddr=\" maddr-param-host",       "maddr-param-host  = host",       ";- - - - - - - - - - - - - - - - -",       "lr-param          =  \"lr\"",       "other-param       =  pname [ \"=\" pvalue ]",       "pname             =  1*paramchar",       "pvalue            =  1*paramchar",       "paramchar         =  param-unreserved / unreserved / escaped",       "param-unreserved  =  \"[\" / \"]\" / \"/\" / \":\" / \"&\" / \"+\" / \"$\"",       "headers         =  \"?\" header *( \"&\" header )",       "header          =  hname \"=\" hvalue",       "hname           =  1*( hnv-unreserved / unreserved / escaped )",       "hvalue          =  *( hnv-unreserved / unreserved / escaped )",       "hnv-unreserved  =  \"[\" / \"]\" / \"/\" / \"?\" / \":\" / \"+\" / \"$\"",       "SIP-message    =  Request / Response",       "Request        =  Request-Line",       "                  *( message-header )",       "                  CRLF",       "                  [ message-body ]",       "Request-Line   =  Method SP Request-URI SP SIP-Version CRLF",       "Request-URI    =  SIP-URI / SIPS-URI / absoluteURI",       "absoluteURI    =  scheme \":\" ( hier-part / opaque-part )",       "hier-part      =  ( net-path / abs-path ) [ \"?\" query ]",       "net-path       =  \"//\" authority [ abs-path ]",       "abs-path       =  \"/\" path-segments",       "opaque-part    =  uric-no-slash *uric",       "uric           =  reserved / unreserved / escaped",       "uric-no-slash  =  unreserved / escaped /\";\" ",       "   / \"?\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"",       "path-segments  =  segment *( \"/\" segment )",       "segment        =  *pchar *( \";\" param )",       "param          =  *pchar",       "pchar          =  unreserved / escaped /",       "                  \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"",       "scheme         =  ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )",       "authority      =  srvr / reg-name",       "srvr           =  [ [ userinfo \"@\" ] hostport ]",       "reg-name       =  1*( unreserved / escaped / \"$\" / \",\"",       "                  / \";\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" )",       "query          =  *uric",       "SIP-Version    =  \"SIP\" \"/\" 1*DIGIT \".\" 1*DIGIT",       "message-header  =  (Accept",       "                /  Accept-Encoding",       "                /  Accept-Language",       "                /  Alert-Info",       "                /  Allow",       "                /  Authentication-Info",       "                /  Authorization",       "                /  Call-ID",       "                /  Call-Info",       "                /  Contact",       "                /  Content-Disposition",       "                /  Content-Encoding",       "                /  Content-Language",       "                /  Content-Length",       "                /  Content-Type",       "                /  CSeq",       "                /  Date",       "                /  Error-Info",       "                /  Expires",       "                /  From",       "                /  In-Reply-To",

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -