Lines Matching refs:IPOPT_OFFSET
162 if (optlen < IPOPT_OFFSET + sizeof(*cp)) {
166 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) {
167 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
266 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
278 if (optlen < IPOPT_OFFSET + sizeof(*cp)) {
279 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
282 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) {
283 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
311 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
324 if ((off = cp[IPOPT_OFFSET]) < 5) {
329 cp[IPOPT_OFFSET + 1] += (1 << 4);
330 if ((cp[IPOPT_OFFSET + 1] & 0xf0) == 0) {
331 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
338 switch (cp[IPOPT_OFFSET + 1] & 0x0f) {
346 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
356 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
363 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
370 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
375 code = &cp[IPOPT_OFFSET + 1] - (u_char *)ip;
380 cp[IPOPT_OFFSET] += sizeof(uint32_t);
418 opts->ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr);
461 opts->ip_srcrt.srcopt[IPOPT_OFFSET] = IPOPT_MINOFF;
683 bcopy((caddr_t)&cp[IPOPT_OFFSET+1], mtod(m, caddr_t),
689 bcopy((&cp[IPOPT_OFFSET+1] + sizeof(struct in_addr)),
690 &cp[IPOPT_OFFSET+1],
751 if (optlen != IPOPT_OFFSET + sizeof(uint16_t) ||
752 (*((uint16_t *)&cp[IPOPT_OFFSET]) != 0))