60 mode = NEG_REPLY;
if (snum != 0)
seqNum = snum;
77 void CtlPkt::fmtReply() {
101 return type == ADD_IFACE &&
mode == REQUEST
102 &&
get(
iface) &&
get(ip) &&
get(rates)
113 if (snum != 0)
seqNum = snum;
125 return type == ADD_IFACE &&
mode == REQUEST
126 &&
get(ip) &&
get(port)
146 return type == DROP_IFACE &&
mode == REQUEST
155 type = DROP_IFACE;
mode = POS_REPLY;
156 if (snum != 0)
seqNum = snum;
164 return type == DROP_IFACE &&
mode == REQUEST
186 return type == MOD_IFACE &&
mode == REQUEST
187 &&
get(
iface) &&
get(rates)
196 if (snum != 0)
seqNum = snum;
204 return type == MOD_IFACE &&
mode == REQUEST
224 return type == GET_IFACE &&
mode == REQUEST
239 if (snum != 0)
seqNum = snum;
254 return type == GET_IFACE &&
mode == REQUEST
255 &&
get(
iface) &&
get(ip) &&
get(port) &&
get(rates) &&
get(availRates)
277 return type == GET_IFACE_SET &&
mode == REQUEST
278 &&
get(
iface) &&
get(count)
289 type = GET_IFACE_SET;
mode = POS_REPLY;
290 if (snum != 0)
seqNum = snum;
303 return type == GET_IFACE_SET &&
mode == REQUEST
304 &&
get(
count) &&
get(nexti) &&
get(s)
339 ipa_t& peerIp, ipp_t& peerPort,
fAdr_t& peerAdr, uint64_t& nonce) {
340 return type == ADD_LINK &&
mode == REQUEST
341 &&
get(
nodeType) &&
get(iface) &&
get(lnk) &&
get(peerIp)
342 &&
get(peerPort) &&
get(peerAdr) &&
get(
nonce)
354 if (snum != 0)
seqNum = snum;
367 return type == ADD_LINK &&
mode == REQUEST
368 &&
get(lnk) &&
get(peerAdr)
392 return type == DROP_LINK &&
mode == REQUEST
393 &&
get(lnk) &&
get(peerAdr)
402 if (snum != 0)
seqNum = snum;
411 return type == DROP_LINK &&
mode == REQUEST
433 return type == MOD_LINK &&
mode == REQUEST
434 &&
get(lnk) &&
get(rates)
443 if (snum != 0)
seqNum = snum;
451 return type == MOD_LINK &&
mode == REQUEST
471 return type == GET_LINK &&
mode == REQUEST
481 ipa_t peerIp, ipp_t peerPort,
fAdr_t peerAdr,
484 if (snum != 0)
seqNum = snum;
487 put(peerAdr);
put(rates);
put(availRates);
496 ipa_t& peerIp, ipp_t& peerPort,
fAdr_t& peerAdr,
498 return type == GET_LINK &&
mode == REQUEST
499 &&
get(lnk) &&
get(iface) &&
get(ntyp) &&
get(peerIp)
500 &&
get(peerPort) &&
get(peerAdr)
501 &&
get(rates) &&
get(availRates)
523 return type == GET_LINK_SET &&
mode == REQUEST
524 &&
get(lnk) &&
get(count)
534 type = GET_LINK_SET;
mode = POS_REPLY;
535 if (snum != 0)
seqNum = snum;
547 return type == GET_LINK_SET &&
mode == REQUEST
548 &&
get(
count) &&
get(nexti) &&
get(s)
568 return type == ADD_COMTREE &&
mode == REQUEST
577 type = ADD_COMTREE;
mode = POS_REPLY;
578 if (snum != 0)
seqNum = snum;
586 return type == ADD_COMTREE &&
mode == REQUEST
606 return type == DROP_COMTREE &&
mode == REQUEST
616 type = DROP_COMTREE;
mode = POS_REPLY;
617 if (snum != 0)
seqNum = snum;
628 return type == DROP_COMTREE &&
mode == REQUEST
629 &&
get(plnkAvailRates)
654 return type == MOD_COMTREE &&
mode == REQUEST
655 &&
get(comt) &&
get(coreFlag) &&
get(plnk)
663 type = MOD_COMTREE;
mode = POS_REPLY;
664 if (snum != 0)
seqNum = snum;
672 return type == MOD_COMTREE &&
mode == REQUEST
692 return type == GET_COMTREE &&
mode == REQUEST
705 type = GET_COMTREE;
mode = POS_REPLY;
706 if (snum != 0)
seqNum = snum;
720 return type == GET_COMTREE &&
mode == REQUEST
721 &&
get(comt) &&
get(coreFlag) &&
get(plnk) &&
get(lnkCount)
743 return type == GET_COMTREE_SET &&
mode == REQUEST
744 &&
get(comt) &&
get(count)
756 type = GET_COMTREE_SET;
mode = POS_REPLY;
757 if (snum != 0)
seqNum = snum;
770 return type == GET_COMTREE_SET &&
mode == REQUEST
771 &&
get(
count) &&
get(nextc) &&
get(s)
786 ipa_t peerIp, ipp_t peerPort,
fAdr_t peerAdr, int64_t snum) {
805 ipa_t& peerIp, ipp_t& peerPort,
fAdr_t& peerAdr) {
806 return type == ADD_COMTREE_LINK &&
mode == REQUEST
807 &&
get(comt) &&
get(lnk) &&
get(
coreFlag)
808 &&
get(peerIp) &&
get(peerPort) &&
get(peerAdr)
819 type = ADD_COMTREE_LINK;
mode = POS_REPLY;
820 if (snum != 0)
seqNum = snum;
822 put(lnk);
put(availRates);
833 return type == ADD_COMTREE_LINK &&
mode == REQUEST
834 &&
get(lnk) &&
get(availRates)
847 ipp_t peerPort,
fAdr_t peerAdr, int64_t snum) {
861 ipp_t& peerPort,
fAdr_t& peerAdr) {
862 return type == DROP_COMTREE_LINK &&
mode == REQUEST
863 &&
get(comt) &&
get(lnk) &&
get(peerIp)
864 &&
get(peerPort) &&
get(peerAdr)
873 type = DROP_COMTREE_LINK;
mode = POS_REPLY;
874 if (snum != 0)
seqNum = snum;
885 return type == DROP_COMTREE_LINK &&
mode == REQUEST
910 return type == MOD_COMTREE_LINK &&
mode == REQUEST
911 &&
get(comt) &&
get(lnk) &&
get(rates)
920 type = MOD_COMTREE_LINK;
mode = POS_REPLY;
921 if (snum != 0)
seqNum = snum;
932 return type == MOD_COMTREE_LINK &&
mode == REQUEST
955 return type == GET_COMTREE_LINK &&
mode == REQUEST
956 &&
get(comt) &&
get(lnk)
969 int qid,
fAdr_t dest, int64_t snum) {
970 type = GET_COMTREE_LINK;
mode = POS_REPLY;
971 if (snum != 0)
seqNum = snum;
987 return type == GET_COMTREE_LINK &&
mode == REQUEST
988 &&
get(comt) &&
get(lnk) &&
get(rates)
989 &&
get(qid) &&
get(dest)
1013 return type == ADD_ROUTE &&
mode == REQUEST
1014 &&
get(comt) &&
get(destAdr) &&
get(lnk)
1022 type = ADD_ROUTE;
mode = POS_REPLY;
1023 if (snum != 0)
seqNum = snum;
1031 return type == ADD_ROUTE &&
mode == REQUEST
1055 return type == DROP_ROUTE &&
mode == REQUEST
1056 &&
get(comt) &&
get(destAdr)
1064 type = DROP_ROUTE;
mode = POS_REPLY;
1065 if (snum != 0)
seqNum = snum;
1073 return type == DROP_ROUTE &&
mode == REQUEST
1098 return type == MOD_ROUTE &&
mode == REQUEST
1099 &&
get(comt) &&
get(destAdr) &&
get(lnk)
1107 type = MOD_ROUTE;
mode = POS_REPLY;
1108 if (snum != 0)
seqNum = snum;
1116 return type == MOD_ROUTE &&
mode == REQUEST
1140 return type == GET_ROUTE &&
mode == REQUEST
1141 &&
get(comt) &&
get(destAdr)
1152 type = GET_ROUTE;
mode = POS_REPLY;
1153 if (snum != 0)
seqNum = snum;
1166 return type == GET_ROUTE &&
mode == REQUEST
1167 &&
get(comt) &&
get(destAdr) &&
get(lnk)
1191 return type == GET_ROUTE_SET &&
mode == REQUEST
1192 &&
get(rtx) &&
get(count)
1204 type = GET_ROUTE_SET;
mode = POS_REPLY;
1205 if (snum != 0)
seqNum = snum;
1218 return type == GET_ROUTE_SET &&
mode == REQUEST
1219 &&
get(
count) &&
get(nextRtx) &&
get(s)
1243 return type == ADD_ROUTE_LINK &&
mode == REQUEST
1244 &&
get(comt) &&
get(destAdr) &&
get(lnk)
1252 type = ADD_ROUTE_LINK;
mode = POS_REPLY;
1253 if (snum != 0)
seqNum = snum;
1261 return type == ADD_ROUTE_LINK &&
mode == REQUEST
1285 return type == DROP_ROUTE_LINK &&
mode == REQUEST
1286 &&
get(comt) &&
get(destAdr) &&
get(lnk)
1294 type = DROP_ROUTE_LINK;
mode = POS_REPLY;
1295 if (snum != 0)
seqNum = snum;
1303 return type == DROP_ROUTE_LINK &&
mode == REQUEST
1319 return type == ADD_FILTER &&
mode == REQUEST
1328 type = ADD_FILTER;
mode = POS_REPLY;
1329 if (snum != 0)
seqNum = snum;
1340 return type == ADD_FILTER &&
mode == REQUEST
1361 return type == DROP_FILTER &&
mode == REQUEST
1370 type = DROP_FILTER;
mode = POS_REPLY;
1371 if (snum != 0)
seqNum = snum;
1379 return type == DROP_FILTER &&
mode == REQUEST
1391 put(filterNum);
put(filterString);
1401 return type == MOD_FILTER &&
mode == REQUEST
1402 &&
get(filterNum) &&
get(filterString)
1410 type = MOD_FILTER;
mode = POS_REPLY;
1411 if (snum != 0)
seqNum = snum;
1419 return type == MOD_FILTER &&
mode == REQUEST
1439 return type == GET_FILTER &&
mode == REQUEST
1449 type = GET_FILTER;
mode = POS_REPLY;
1450 if (snum != 0)
seqNum = snum;
1461 return type == GET_FILTER &&
mode == REQUEST
1462 &&
get(filterString)
1474 put(filterNum);
put(count);
1484 return type == GET_FILTER_SET &&
mode == REQUEST
1485 &&
get(filterNum) &&
get(count)
1496 type = GET_FILTER_SET;
mode = POS_REPLY;
1497 if (snum != 0)
seqNum = snum;
1509 return type == GET_FILTER_SET &&
mode == REQUEST
1510 &&
get(
count) &&
get(nexti) &&
get(s)
1526 return type == GET_LOGGED_PACKETS &&
mode == REQUEST
1537 type = GET_LOGGED_PACKETS;
mode = POS_REPLY;
1538 if (snum != 0)
seqNum = snum;
1540 put(count);
put(logString);
1550 return type == GET_LOGGED_PACKETS &&
mode == REQUEST
1551 &&
get(
count) &&
get(logString)
1573 return type == ENABLE_PACKET_LOG &&
mode == REQUEST
1574 &&
get(enable) &&
get(local)
1582 type = ENABLE_PACKET_LOG;
mode = POS_REPLY;
1583 if (snum != 0)
seqNum = snum;
1591 return type == ENABLE_PACKET_LOG &&
mode == REQUEST
1603 put(clientIp);
put(rates);
1613 return type == NEW_SESSION &&
mode == REQUEST
1614 &&
get(clientIp) &&
get(rates)
1627 type = NEW_SESSION;
mode = POS_REPLY;
1628 if (snum != 0)
seqNum = snum;
1647 return type == NEW_SESSION &&
mode == REQUEST
1648 &&
get(clientAdr) &&
get(rtrAdr)
1661 put(clientAdr);
put(rtrAdr);
1671 return type == CANCEL_SESSION &&
mode == REQUEST
1672 &&
get(clientAdr) &&
get(rtrAdr)
1680 type = CANCEL_SESSION;
mode = POS_REPLY;
1681 if (snum != 0)
seqNum = snum;
1689 return type == CANCEL_SESSION &&
mode == REQUEST
1701 put(clientAdr);
put(rtrAdr);
1711 return type == CLIENT_CONNECT &&
mode == REQUEST
1712 &&
get(clientAdr) &&
get(rtrAdr)
1720 type = CLIENT_CONNECT;
mode = POS_REPLY;
1721 if (snum != 0)
seqNum = snum;
1729 return type == CLIENT_CONNECT &&
mode == REQUEST
1741 put(clientAdr);
put(rtrAdr);
1751 return type == CLIENT_DISCONNECT &&
mode == REQUEST
1752 &&
get(clientAdr) &&
get(rtrAdr)
1760 type = CLIENT_DISCONNECT;
mode = POS_REPLY;
1761 if (snum != 0)
seqNum = snum;
1769 return type == CLIENT_DISCONNECT &&
mode == REQUEST
1782 ipp_t port, uint64_t nonce, int64_t snum) {
1798 ipp_t& port, uint64_t& nonce) {
1799 return type == CONFIG_LEAF &&
mode == REQUEST
1800 &&
get(leafAdr) &&
get(rtrAdr) &&
get(
rtrIp)
1801 &&
get(port) &&
get(
nonce)
1809 type = CONFIG_LEAF;
mode = POS_REPLY;
1810 if (snum != 0)
seqNum = snum;
1818 return type == CONFIG_LEAF &&
mode == REQUEST
1831 put(firstAdr);
put(lastAdr);
1841 return type == SET_LEAF_RANGE &&
mode == REQUEST
1842 &&
get(firstAdr) &&
get(lastAdr)
1850 type = SET_LEAF_RANGE;
mode = POS_REPLY;
1851 if (snum != 0)
seqNum = snum;
1859 return type == SET_LEAF_RANGE &&
mode == REQUEST
1875 return type == BOOT_ROUTER &&
mode == REQUEST
1883 type = BOOT_ROUTER;
mode = POS_REPLY;
1884 if (snum != 0)
seqNum = snum;
1892 return type == BOOT_ROUTER &&
mode == REQUEST
1908 return type == BOOT_LEAF &&
mode == REQUEST
1916 type = BOOT_LEAF;
mode = POS_REPLY;
1917 if (snum != 0)
seqNum = snum;
1925 return type == BOOT_LEAF &&
mode == REQUEST
1941 return type == BOOT_COMPLETE &&
mode == REQUEST
1949 type = BOOT_COMPLETE;
mode = POS_REPLY;
1950 if (snum != 0)
seqNum = snum;
1958 return type == BOOT_COMPLETE &&
mode == REQUEST
1974 return type == BOOT_ABORT &&
mode == REQUEST
1982 type = BOOT_ABORT;
mode = POS_REPLY;
1983 if (snum != 0)
seqNum = snum;
1991 return type == BOOT_ABORT &&
mode == REQUEST
2090 case ADD_IFACE: s =
"add_iface";
break;
2091 case DROP_IFACE: s =
"drop_iface";
break;
2092 case GET_IFACE: s =
"get_iface";
break;
2093 case MOD_IFACE: s =
"mod_iface";
break;
2094 case ADD_LINK: s =
"add_link";
break;
2095 case DROP_LINK: s =
"drop_link";
break;
2096 case GET_LINK: s =
"get_link";
break;
2097 case GET_LINK_SET: s =
"get_link_set";
break;
2098 case GET_COMTREE_SET: s =
"get_comtree_set";
break;
2099 case GET_IFACE_SET: s =
"get_iface_set";
break;
2100 case GET_ROUTE_SET: s =
"get_route_set";
break;
2101 case MOD_LINK: s =
"mod_link";
break;
2102 case ADD_COMTREE: s =
"add_comtree";
break;
2103 case DROP_COMTREE: s =
"drop_comtree";
break;
2104 case GET_COMTREE: s =
"get_comtree";
break;
2105 case MOD_COMTREE: s =
"mod_comtree";
break;
2106 case ADD_COMTREE_LINK: s =
"add_comtree_link";
break;
2107 case DROP_COMTREE_LINK: s =
"drop_comtree_link";
break;
2108 case MOD_COMTREE_LINK: s =
"mod_comtree_link";
break;
2109 case GET_COMTREE_LINK: s =
"get_comtree_link";
break;
2110 case ADD_ROUTE: s =
"add_route";
break;
2111 case DROP_ROUTE: s =
"drop_route";
break;
2112 case GET_ROUTE: s =
"get_route";
break;
2113 case MOD_ROUTE: s =
"mod_route";
break;
2114 case ADD_ROUTE_LINK: s =
"add_route_link";
break;
2115 case DROP_ROUTE_LINK: s =
"drop_route_link";
break;
2117 case ADD_FILTER: s =
"add_filter";
break;
2118 case DROP_FILTER: s =
"drop_filter";
break;
2119 case GET_FILTER: s =
"get_filter";
break;
2120 case MOD_FILTER: s =
"mod_filter";
break;
2121 case GET_FILTER_SET: s =
"get_filter_set";
break;
2122 case GET_LOGGED_PACKETS: s =
"get_logged_packets";
break;
2123 case ENABLE_PACKET_LOG: s =
"enable_packet_log";
break;
2125 case NEW_SESSION: s =
"new_session";
break;
2126 case CANCEL_SESSION: s =
"cancel_session";
break;
2127 case CLIENT_CONNECT: s =
"client_connect";
break;
2128 case CLIENT_DISCONNECT: s =
"client_disconnect";
break;
2129 case CONFIG_LEAF: s =
"config_leaf";
break;
2130 case SET_LEAF_RANGE: s =
"set_leaf_range";
break;
2131 case BOOT_ROUTER: s =
"boot_router";
break;
2132 case BOOT_LEAF: s =
"boot_leaf";
break;
2133 case BOOT_COMPLETE: s =
"boot_complete";
break;
2134 case BOOT_ABORT: s =
"boot_abort";
break;
2135 case COMTREE_PATH: s =
"comtree_path";
break;
2136 case ADD_NODE: s =
"comtree_new_leaf";
break;
2137 case ADD_BRANCH: s =
"comtree_add_branch";
break;
2138 case PRUNE: s =
"comtree_prune";
break;
2139 default: s =
"undefined";
break;
2144 bool CtlPkt::string2cpType(
string& s, CpType& type) {
2145 if (s ==
"undef") type = UNDEF_CPTYPE;
2147 else if (s ==
"add_iface") type = ADD_IFACE;
2148 else if (s ==
"drop_iface") type = DROP_IFACE;
2149 else if (s ==
"get_iface") type = GET_IFACE;
2150 else if (s ==
"mod_iface") type = MOD_IFACE;
2152 else if (s ==
"add_link") type = ADD_LINK;
2153 else if (s ==
"drop_link") type = DROP_LINK;
2154 else if (s ==
"get_link") type = GET_LINK;
2155 else if (s ==
"mod_link") type = MOD_LINK;
2156 else if (s ==
"get_link_set") type = GET_LINK_SET;
2158 else if (s ==
"add_comtree") type = ADD_COMTREE;
2159 else if (s ==
"drop_comtree") type = DROP_COMTREE;
2160 else if (s ==
"get_comtree") type = GET_COMTREE;
2161 else if (s ==
"mod_comtree") type = MOD_COMTREE;
2163 else if (s ==
"add_comtree_link") type = ADD_COMTREE_LINK;
2164 else if (s ==
"drop_comtree_link") type = DROP_COMTREE_LINK;
2165 else if (s ==
"get_comtree_link") type = GET_COMTREE_LINK;
2166 else if (s ==
"mod_comtree_link") type = MOD_COMTREE_LINK;
2168 else if (s ==
"add_route") type = ADD_ROUTE;
2169 else if (s ==
"drop_route") type = DROP_ROUTE;
2170 else if (s ==
"get_route") type = GET_ROUTE;
2171 else if (s ==
"mod_route") type = MOD_ROUTE;
2172 else if (s ==
"add_route_link") type = ADD_ROUTE;
2173 else if (s ==
"drop_route_link") type = DROP_ROUTE;
2175 else if (s ==
"add_filter") type = ADD_FILTER;
2176 else if (s ==
"drop_filter") type = DROP_FILTER;
2177 else if (s ==
"mod_filter") type = MOD_FILTER;
2178 else if (s ==
"get_filter") type = GET_FILTER;
2179 else if (s ==
"get_filter_set") type = GET_FILTER_SET;
2180 else if (s ==
"get_logged_packets") type = GET_LOGGED_PACKETS;
2181 else if (s ==
"enable_packet_log") type = ENABLE_PACKET_LOG;
2183 else if (s ==
"new_session") type = NEW_SESSION;
2184 else if (s ==
"cancel_session") type = CANCEL_SESSION;
2185 else if (s ==
"client_connect") type = CLIENT_CONNECT;
2186 else if (s ==
"client_disconnect") type = CLIENT_DISCONNECT;
2188 else if (s ==
"set_leaf_range") type = SET_LEAF_RANGE;
2189 else if (s ==
"config_leaf") type = CONFIG_LEAF;
2191 else if (s ==
"boot_router") type = BOOT_ROUTER;
2192 else if (s ==
"boot_complete") type = BOOT_COMPLETE;
2193 else if (s ==
"boot_abort") type = BOOT_ABORT;
2194 else if (s ==
"boot_leaf") type = BOOT_LEAF;
2196 else if (s ==
"comtree_path") type = COMTREE_PATH;
2197 else if (s ==
"comtree_new_leaf") type = ADD_NODE;
2198 else if (s ==
"comtree_add_branch") type = ADD_BRANCH;
2199 else if (s ==
"comtree_prune") type = PRUNE;
2205 string CtlPkt::cpMode2string(CpMode mode) {
2208 case REQUEST: s =
"request";
break;
2209 case POS_REPLY: s =
"pos reply";
break;
2210 case NEG_REPLY: s =
"neg reply";
break;
2216 bool CtlPkt::string2cpMode(
string& s, CpMode& mode) {
2217 if (s ==
"undef") mode = UNDEF_MODE;
2218 else if (s ==
"request") mode = REQUEST;
2219 else if (s ==
"pos reply") mode = POS_REPLY;
2220 else if (s ==
"neg reply") mode = NEG_REPLY;
2232 ss <<
" (" << cpMode2string(mode) <<
"," <<
seqNum <<
"): ";
2233 if (mode == NEG_REPLY) {
2241 ipa_t ip1; ipp_t port1;
2249 if (mode == REQUEST) {
2261 if (mode == REQUEST) {
2267 if (mode == REQUEST) {
2279 if (mode == REQUEST) {
2286 if (mode == REQUEST) {
2287 xtrAddLink(ntyp,iface,lnk,ip1,port1,adr1,nonce);
2290 ss <<
" " << Forest::nodeType2string(ntyp);
2302 if (mode == REQUEST) {
2304 if (
link != 0) ss <<
" " << lnk;
2309 if (mode == REQUEST) {
2316 ss <<
" " << Forest::nodeType2string(ntyp);
2325 if (mode == REQUEST) {
2327 ss <<
" " << lnk <<
" " <<
count;
2330 ss <<
" " << count <<
" " << lnk <<
" " << s;
2333 case GET_COMTREE_SET:
2334 if (mode == REQUEST) {
2336 ss <<
" " << comt <<
" " <<
count;
2339 ss <<
" " << count <<
" " << comt <<
" " << s;
2343 if (mode == REQUEST) {
2345 ss <<
" " << lnk <<
" " <<
count;
2348 ss <<
" " << count <<
" " << lnk <<
" " << s;
2352 if (mode == REQUEST) {
2354 ss <<
" " << lnk <<
" " <<
count;
2357 ss <<
" " << count <<
" " << lnk <<
" " << s;
2361 if (mode == REQUEST) {
2368 if (mode == REQUEST) {
2374 if (mode == REQUEST) {
2382 if (mode == REQUEST) {
2388 ss <<
" " << (coreFlag ?
"inCore" :
"notInCore");
2394 if (mode == REQUEST) {
2397 ss <<
" " << (coreFlag ?
"inCore" :
"notInCore");
2401 case ADD_COMTREE_LINK:
2402 if (mode == REQUEST) {
2406 ss <<
" " << (coreFlag ?
"inCore" :
"notInCore");
2416 case DROP_COMTREE_LINK:
2417 if (mode == REQUEST) {
2428 case MOD_COMTREE_LINK:
2429 if (mode == REQUEST) {
2438 case GET_COMTREE_LINK:
2439 if (mode == REQUEST) {
2453 if (mode == REQUEST) {
2461 if (mode == REQUEST) {
2468 if (mode == REQUEST) {
2480 if (mode == REQUEST) {
2487 case ADD_ROUTE_LINK:
2488 if (mode == REQUEST) {
2495 case DROP_ROUTE_LINK:
2496 if (mode == REQUEST) {
2505 if (mode == POS_REPLY) {
2511 if (mode == REQUEST) {
2517 if (mode == REQUEST) {
2524 if (mode == REQUEST) {
2532 case GET_FILTER_SET:
2533 if (mode == REQUEST) {
2544 case GET_LOGGED_PACKETS:
2545 if (mode == POS_REPLY) {
2547 ss <<
" " << count <<
" " << s;
2550 case ENABLE_PACKET_LOG:
2551 if (mode == REQUEST) {
2553 ss <<
" " << (enable ?
"on" :
"off");
2554 ss <<
" " << (local ?
"local" :
"remote");
2559 if (mode == REQUEST) {
2572 case CANCEL_SESSION:
2573 if (mode == REQUEST) {
2579 case CLIENT_CONNECT:
2580 if (mode == REQUEST) {
2586 case CLIENT_DISCONNECT:
2587 if (mode == REQUEST) {
2594 if (mode == REQUEST) {
2603 case SET_LEAF_RANGE:
2604 if (mode == REQUEST) {