First page Back Continue Last page Overview Graphics
static XkReturn aspDemux(Protl self, Sessn lls, Msg *msg)
static XkReturn aspDemux(Protl self, Sessn lls, Msg *msg)
{
AspHdr h;
Sessn s;
ActiveId activeid;
PassiveId passiveid;
ProtlState *pstate;
Enable *e;
void *buf;
pstate = (ProtlState *)self->state;
/* extract the header from the message */
buf = msgStripHdr(msg, HLEN);
aspHdrLoad(&h, buf, HLEN, msg);
/* construct a demux key from the header */
bzero((char *)&activeid, sizeof(activeid));
activeid.localport = h.dport;
activeid.remoteport = h.sport;
activeid.lls = lls;
Notes: