ip6_output.c (106259) | ip6_output.c (108466) |
---|---|
1/* $FreeBSD: head/sys/netinet6/ip6_output.c 106259 2002-10-31 19:45:48Z ume $ */ | 1/* $FreeBSD: head/sys/netinet6/ip6_output.c 108466 2002-12-30 20:22:40Z sam $ */ |
2/* $KAME: ip6_output.c,v 1.279 2002/01/26 06:12:30 jinmei Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 2560 unchanged lines hidden (view full) --- 2570 2571 ip6 = mtod(m, struct ip6_hdr *); 2572 if (m->m_len > sizeof(*ip6)) { 2573 MGETHDR(mh, M_DONTWAIT, MT_HEADER); 2574 if (mh == 0) { 2575 m_freem(m); 2576 return ENOBUFS; 2577 } | 2/* $KAME: ip6_output.c,v 1.279 2002/01/26 06:12:30 jinmei Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 2560 unchanged lines hidden (view full) --- 2570 2571 ip6 = mtod(m, struct ip6_hdr *); 2572 if (m->m_len > sizeof(*ip6)) { 2573 MGETHDR(mh, M_DONTWAIT, MT_HEADER); 2574 if (mh == 0) { 2575 m_freem(m); 2576 return ENOBUFS; 2577 } |
2578 M_COPY_PKTHDR(mh, m); | 2578 M_MOVE_PKTHDR(mh, m); |
2579 MH_ALIGN(mh, sizeof(*ip6)); 2580 m->m_flags &= ~M_PKTHDR; 2581 m->m_len -= sizeof(*ip6); 2582 m->m_data += sizeof(*ip6); 2583 mh->m_next = m; 2584 m = mh; 2585 m->m_len = sizeof(*ip6); 2586 bcopy((caddr_t)ip6, mtod(m, caddr_t), sizeof(*ip6)); --- 30 unchanged lines hidden --- | 2579 MH_ALIGN(mh, sizeof(*ip6)); 2580 m->m_flags &= ~M_PKTHDR; 2581 m->m_len -= sizeof(*ip6); 2582 m->m_data += sizeof(*ip6); 2583 mh->m_next = m; 2584 m = mh; 2585 m->m_len = sizeof(*ip6); 2586 bcopy((caddr_t)ip6, mtod(m, caddr_t), sizeof(*ip6)); --- 30 unchanged lines hidden --- |