Deleted Added
full compact
ip6_input.c (105199) ip6_input.c (108107)
1/* $FreeBSD: head/sys/netinet6/ip6_input.c 105199 2002-10-16 02:25:05Z sam $ */
1/* $FreeBSD: head/sys/netinet6/ip6_input.c 108107 2002-12-19 22:58:27Z bmilekic $ */
2/* $KAME: ip6_input.c,v 1.259 2002/01/21 04:58:09 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

--- 1608 unchanged lines hidden (view full) ---

1618struct ip6aux *
1619ip6_addaux(m)
1620 struct mbuf *m;
1621{
1622 struct m_tag *tag = m_tag_find(m, PACKET_TAG_IPV6_INPUT, NULL);
1623 if (!tag) {
1624 tag = m_tag_get(PACKET_TAG_IPV6_INPUT,
1625 sizeof (struct ip6aux),
2/* $KAME: ip6_input.c,v 1.259 2002/01/21 04:58:09 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

--- 1608 unchanged lines hidden (view full) ---

1618struct ip6aux *
1619ip6_addaux(m)
1620 struct mbuf *m;
1621{
1622 struct m_tag *tag = m_tag_find(m, PACKET_TAG_IPV6_INPUT, NULL);
1623 if (!tag) {
1624 tag = m_tag_get(PACKET_TAG_IPV6_INPUT,
1625 sizeof (struct ip6aux),
1626 M_NOWAIT);
1626 M_DONTWAIT);
1627 if (tag)
1628 m_tag_prepend(m, tag);
1629 }
1630 if (tag)
1631 bzero(tag+1, sizeof (struct ip6aux));
1632 return tag ? (struct ip6aux*)(tag+1) : NULL;
1633}
1634

--- 29 unchanged lines hidden ---
1627 if (tag)
1628 m_tag_prepend(m, tag);
1629 }
1630 if (tag)
1631 bzero(tag+1, sizeof (struct ip6aux));
1632 return tag ? (struct ip6aux*)(tag+1) : NULL;
1633}
1634

--- 29 unchanged lines hidden ---