| 145 | } |
| 146 | |
| 147 | void addShellRequest(const char *wCmd,GmmInfo*gmm,PdpContext *pdp) |
| 148 | { |
| 149 | ShellRequest *req = new ShellRequest(); |
| 150 | req->msrCommand = wCmd; |
| 151 | req->msrArg1 = gmm->mImsi.hexstr(); |
| 152 | if (pdp && pdp->mgp) { |
| 153 | char ipaddr[40], nsapi[10]; |
| 154 | ip_ntoa(pdp->mgp->mg_ip, ipaddr); |
| 155 | req->msrArg2 = ipaddr; |
| 156 | sprintf(nsapi,"%d",pdp->mNSapi); |
| 157 | req->msrArg3 = nsapi; |
| 158 | } |
| 159 | gGgsn.mShellQ.write(req); |
| 160 | } |
| 161 | |
| 162 | void addShellRequest(const char *wCmd,const char *arg1) |
| 163 | { |
no test coverage detected