22 #include "PacketStore.h"
24 #include "QuManager.h"
60 bool setBooting(
bool state) {
return booting = state; }
62 void dump(ostream& os);
85 map<uint64_t,ControlInfo> *
pending;
143 bool dropIface(CtlPkt&, CtlPkt&);
144 bool getIface(CtlPkt&, CtlPkt&);
145 bool modIface(CtlPkt&, CtlPkt&);
147 bool addLink(CtlPkt&, CtlPkt&);
148 bool dropLink(CtlPkt&, CtlPkt&);
149 void dropLink(
int,
fAdr_t=0);
150 bool getLink(CtlPkt&, CtlPkt&);
155 bool modLink(CtlPkt&, CtlPkt&);
157 bool addComtree(CtlPkt&, CtlPkt&);
158 bool dropComtree(CtlPkt&, CtlPkt&);
160 bool getComtree(CtlPkt&, CtlPkt&);
161 bool modComtree(CtlPkt&, CtlPkt&);
163 bool modComtree(
comt_t,
int, CtlPkt&);
164 bool addComtreeLink(CtlPkt&, CtlPkt&);
166 bool addComtreeLink(
comt_t,
int, CtlPkt&);
167 bool dropComtreeLink(CtlPkt&, CtlPkt&);
168 void dropComtreeLink(
int,
int,
int);
169 bool modComtreeLink(CtlPkt&, CtlPkt&);
171 bool modComtreeLink(
comt_t,
int, RateSpec, CtlPkt&);
172 bool getComtreeLink(CtlPkt&, CtlPkt&);
174 void handleClientJoinComtree(pktx, CtlPkt&, CtlPkt&);
175 void handleClientLeaveComtree(pktx, CtlPkt&, CtlPkt&);
176 void handleComtPath(pktx, CtlPkt&);
177 void handleComtAddBranch(pktx, CtlPkt&, CtlPkt&);
178 void handleComtPrune(pktx, CtlPkt&, CtlPkt&);
179 void handleAllPending(vector<pktx>&, CtlPkt&);
180 void handleComtPruneReply(pktx, CtlPkt&);
181 void handleComtNewLeafReply(pktx, CtlPkt&);
182 void handleAddBranchConfirm(pktx, CtlPkt&, CtlPkt&);
183 void handleAddBranchReply(pktx, CtlPkt&);
184 void handleConfirmReply(pktx, CtlPkt&);
186 bool addRoute(CtlPkt&, CtlPkt&);
187 bool dropRoute(CtlPkt&, CtlPkt&);
188 bool getRoute(CtlPkt&, CtlPkt&);
189 bool modRoute(CtlPkt&, CtlPkt&);
192 bool dropFilter(CtlPkt&, CtlPkt&);
193 bool getFilter(CtlPkt&, CtlPkt&);
194 bool modFilter(CtlPkt&, CtlPkt&);
215 int offset =
leafAdr->firstOut();
216 if (offset == 0)
return 0;
228 if (!
leafAdr->isOut(offset))
return false;
238 if (!
leafAdr->isIn(offset))
return;