IP_ADDR_LEN
IP_MAX_OPT_LENGTH + IP_ADDR_LEN, -1 /* not initialized */ },
IP_MAX_OPT_LENGTH + IP_ADDR_LEN, -1 /* not initialized */ },
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
if (!(optlen < IP_ADDR_LEN || off > optlen - 3)) {
off = optlen - IP_ADDR_LEN;
bcopy(&opt[off], &dst, IP_ADDR_LEN);
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy(&dst, (char *)opt + off, IP_ADDR_LEN);
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
bcopy((char *)opt + off, &dst, IP_ADDR_LEN);
off = IP_ADDR_LEN + IPOPT_TS_TIMELEN;
bcopy(&dst, (char *)opt + off, IP_ADDR_LEN);
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
off = IP_ADDR_LEN + IPOPT_TS_TIMELEN;
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy((char *)opt + off, &nexthop, IP_ADDR_LEN);
off2 = opt[IPOPT_OFFSET] - IP_ADDR_LEN - 1;
bcopy(opt + off2, &tmp, IP_ADDR_LEN);
bcopy(opt + off1, opt + off2, IP_ADDR_LEN);
bcopy(&tmp, opt + off2, IP_ADDR_LEN);
off2 -= IP_ADDR_LEN;
off1 += IP_ADDR_LEN;
len_needed = ip_hdr_length + ICMPH_SIZE + IP_ADDR_LEN;
bcopy(&ipif->ipif_net_mask, &icmph[1], IP_ADDR_LEN);
buf += IP_ADDR_LEN; /* Leave room for final destination */
len += IP_ADDR_LEN;
bzero(buf1, IP_ADDR_LEN);
off = optlen - IP_ADDR_LEN;
bcopy(opt + off, buf1, IP_ADDR_LEN);
off -= IP_ADDR_LEN;
buf + off + IP_ADDR_LEN,
IP_ADDR_LEN);
off -= IP_ADDR_LEN;
bcopy(&dst, buf + off + IP_ADDR_LEN,
IP_ADDR_LEN);
off2 = opt[IPOPT_OFFSET] - IP_ADDR_LEN - 1;
bcopy((char *)opt + off2, &dst, IP_ADDR_LEN);
bcopy(&ipha->ipha_dst, (char *)opt + off2, IP_ADDR_LEN);
bcopy(&dst, &ipha->ipha_dst, IP_ADDR_LEN);
off2 -= IP_ADDR_LEN;
bcopy((char *)opt + off1, &src, IP_ADDR_LEN);
IP_ADDR_LEN);
bcopy(&src, (char *)opt + off2, IP_ADDR_LEN);
off1 += IP_ADDR_LEN;
off2 -= IP_ADDR_LEN;
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy((char *)opt + off, &dst, IP_ADDR_LEN);
off += IP_ADDR_LEN;
off = ((optlen - IP_ADDR_LEN - 3) & ~(IP_ADDR_LEN-1)) +
bcopy(&opt[off], &dst, IP_ADDR_LEN);
opt[IP_ADDR_LEN] = opt[0];
opt[IP_ADDR_LEN+1] = opt[IPOPT_OLEN] - IP_ADDR_LEN;
opt[IP_ADDR_LEN+2] = opt[IPOPT_OFFSET];
for (i = 0; i < IP_ADDR_LEN; i++)
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy((char *)opt + off, &dst, IP_ADDR_LEN);
bcopy(&ifaddr, (char *)opt + off, IP_ADDR_LEN);
off += IP_ADDR_LEN;
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy(&ifaddr, (char *)opt + off, IP_ADDR_LEN);
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
bcopy((char *)opt + off, &dst, IP_ADDR_LEN);
off = IP_ADDR_LEN + IPOPT_TS_TIMELEN;
bcopy(&ifaddr, (char *)opt + off, IP_ADDR_LEN);
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy(&ifaddr, (char *)opt + off, IP_ADDR_LEN);
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
bcopy((char *)opt + off, &dst, IP_ADDR_LEN);
off = IP_ADDR_LEN + IPOPT_TS_TIMELEN;
bcopy(&ifaddr, (char *)opt + off, IP_ADDR_LEN);
opt[IPOPT_OFFSET] += IP_ADDR_LEN;
if (optlen < IP_ADDR_LEN ||
off > optlen - IP_ADDR_LEN) {
bcopy((char *)opt + off, &dst, IP_ADDR_LEN);
off += IP_ADDR_LEN;
off = IP_ADDR_LEN + IPOPT_TS_TIMELEN;
bcopy((char *)&arh[1] + arh->arh_hlen, &src, IP_ADDR_LEN);
bcopy(arhp, &src_paddr, IP_ADDR_LEN); /* ar$spa */
arhp += IP_ADDR_LEN;
bcopy(arhp, &dst_paddr, IP_ADDR_LEN); /* ar$tpa */
#define REPLY_LEN (sizeof (icmp_ipha) + sizeof (icmph_t) + IP_ADDR_LEN)
bcopy(&ipif->ipif_net_mask, &icmph[1], IP_ADDR_LEN);
bcopy(addr_ucp, &v4addr, IP_ADDR_LEN);
bcopy(addr, &ire->ire_addr, IP_ADDR_LEN);
bcopy(gateway, &ire->ire_gateway_addr, IP_ADDR_LEN);
bcopy(mask, &ire->ire_mask, IP_ADDR_LEN);
if (ill->ill_phys_addr_length == IP_ADDR_LEN &&
if (!(optlen < IP_ADDR_LEN || off > optlen - 3)) {
off = optlen - IP_ADDR_LEN;
bcopy(&optptr[off], &dst, IP_ADDR_LEN);
addrlen = IP_ADDR_LEN;
IPV6_ADDR_LEN : IP_ADDR_LEN; \
bcopy(&ipha->ipha_src, ph + 1, IP_ADDR_LEN);
bcopy(&addr4, ph + 1, IP_ADDR_LEN);
uchar_t obuf[SCTP_MAX_IP_OPTIONS_LENGTH + IP_ADDR_LEN];
IP_MAX_OPT_LENGTH + IP_ADDR_LEN, -1 /* not initialized */ },
IP_MAX_OPT_LENGTH + IP_ADDR_LEN, -1 /* not initialized */ },
IP_MAX_OPT_LENGTH + IP_ADDR_LEN, -1 /* not initialized */ },
IP_MAX_OPT_LENGTH + IP_ADDR_LEN, -1 /* not initialized */ },
IP_ADDR_LEN : sizeof (in6_addr_t);