Home | History | Annotate | Download | only in rp-pppoe

Lines Matching full:pseudoheader

196     unsigned char pseudoHeader[12];
201 memcpy(pseudoHeader, ipHdr+12, 8);
202 pseudoHeader[8] = 0;
203 pseudoHeader[9] = ipHdr[9];
204 pseudoHeader[10] = (count >> 8) & 0xFF;
205 pseudoHeader[11] = (count & 0xFF);
208 sum += * (UINT16_t *) pseudoHeader;
209 sum += * ((UINT16_t *) (pseudoHeader+2));
210 sum += * ((UINT16_t *) (pseudoHeader+4));
211 sum += * ((UINT16_t *) (pseudoHeader+6));
212 sum += * ((UINT16_t *) (pseudoHeader+8));
213 sum += * ((UINT16_t *) (pseudoHeader+10));