Lines Matching refs:mtod
102 struct ip *ip = mtod(m, struct ip *);
451 *(mtod(m, struct in_addr *)) = *p--;
458 (void)memcpy(mtod(m, caddr_t) + sizeof(struct in_addr),
460 q = (struct in_addr *)(mtod(m, caddr_t) +
484 struct ip *ip = mtod(m, struct ip *);
508 struct ipoption *p = mtod(opt, struct ipoption *);
510 struct ip *ip = mtod(m, struct ip *);
535 bcopy(ip, mtod(m, void *), sizeof(struct ip));
540 bcopy(ip, mtod(m, void *), sizeof(struct ip));
542 ip = mtod(m, struct ip *);
634 cp = mtod(m, u_char *) + sizeof(struct in_addr);
635 bcopy(mtod(m, void *), cp, (unsigned)cnt);
636 bzero(mtod(m, void *), sizeof(struct in_addr));
679 bcopy((caddr_t)&cp[IPOPT_OFFSET+1], mtod(m, caddr_t),
720 struct ip *ip = mtod(m, struct ip *);