MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / addShellRequest

Function addShellRequest

SGSNGGSN/Ggsn.cpp:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void 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
162void addShellRequest(const char *wCmd,const char *arg1)
163{

Callers 6

startMethod · 0.85
sendPdpContextAcceptFunction · 0.85
freePdpAllMethod · 0.85
handleAttachCompleteFunction · 0.85
handleDetachRequestFunction · 0.85

Calls 3

hexstrMethod · 0.80
ip_ntoaFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected