| version 1.124, 2009/03/18 16:00:23 |
version 1.125, 2009/03/18 17:06:52 |
| Line 960 ip6_process_hopopts(struct mbuf *m, u_in |
|
| Line 960 ip6_process_hopopts(struct mbuf *m, u_in |
|
| return (-1); |
return (-1); |
| } |
} |
| optlen = IP6OPT_RTALERT_LEN; |
optlen = IP6OPT_RTALERT_LEN; |
| bcopy((void *)(opt + 2), (void *)&rtalert_val, 2); |
memcpy( (void *)&rtalert_val, (void *)(opt + 2), 2); |
| *rtalertp = ntohs(rtalert_val); |
*rtalertp = ntohs(rtalert_val); |
| break; |
break; |
| case IP6OPT_JUMBO: |
case IP6OPT_JUMBO: |
| Line 995 ip6_process_hopopts(struct mbuf *m, u_in |
|
| Line 995 ip6_process_hopopts(struct mbuf *m, u_in |
|
| * We may see jumbolen in unaligned location, so |
* We may see jumbolen in unaligned location, so |
| * we'd need to perform bcopy(). |
* we'd need to perform bcopy(). |
| */ |
*/ |
| bcopy(opt + 2, &jumboplen, sizeof(jumboplen)); |
memcpy( &jumboplen, opt + 2, sizeof(jumboplen)); |
| jumboplen = (u_int32_t)htonl(jumboplen); |
jumboplen = (u_int32_t)htonl(jumboplen); |
| |
|
| #if 1 |
#if 1 |
| Line 1138 ip6_savecontrol(struct in6pcb *in6p, str |
|
| Line 1138 ip6_savecontrol(struct in6pcb *in6p, str |
|
| if ((in6p->in6p_flags & IN6P_PKTINFO) != 0) { |
if ((in6p->in6p_flags & IN6P_PKTINFO) != 0) { |
| struct in6_pktinfo pi6; |
struct in6_pktinfo pi6; |
| |
|
| bcopy(&ip6->ip6_dst, &pi6.ipi6_addr, sizeof(struct in6_addr)); |
memcpy( &pi6.ipi6_addr, &ip6->ip6_dst, sizeof(struct in6_addr)); |
| in6_clearscope(&pi6.ipi6_addr); /* XXX */ |
in6_clearscope(&pi6.ipi6_addr); /* XXX */ |
| pi6.ipi6_ifindex = m->m_pkthdr.rcvif ? |
pi6.ipi6_ifindex = m->m_pkthdr.rcvif ? |
| m->m_pkthdr.rcvif->if_index : 0; |
m->m_pkthdr.rcvif->if_index : 0; |