| version 1.46, 2001/10/29 07:02:35 |
version 1.47, 2001/11/02 08:05:48 |
| Line 1321 ip6_nexthdr(m, off, proto, nxtp) |
|
| Line 1321 ip6_nexthdr(m, off, proto, nxtp) |
|
| if (nxtp) |
if (nxtp) |
| *nxtp = ip6e.ip6e_nxt; |
*nxtp = ip6e.ip6e_nxt; |
| off += (ip6e.ip6e_len + 2) << 2; |
off += (ip6e.ip6e_len + 2) << 2; |
| |
if (m->m_pkthdr.len < off) |
| |
return -1; |
| return off; |
return off; |
| |
|
| case IPPROTO_HOPOPTS: |
case IPPROTO_HOPOPTS: |
| Line 1332 ip6_nexthdr(m, off, proto, nxtp) |
|
| Line 1334 ip6_nexthdr(m, off, proto, nxtp) |
|
| if (nxtp) |
if (nxtp) |
| *nxtp = ip6e.ip6e_nxt; |
*nxtp = ip6e.ip6e_nxt; |
| off += (ip6e.ip6e_len + 1) << 3; |
off += (ip6e.ip6e_len + 1) << 3; |
| |
if (m->m_pkthdr.len < off) |
| |
return -1; |
| return off; |
return off; |
| |
|
| case IPPROTO_NONE: |
case IPPROTO_NONE: |