Deleted Added
full compact
mld6.c (105194) mld6.c (109623)
1/* $FreeBSD: head/sys/netinet6/mld6.c 105194 2002-10-16 01:54:46Z sam $ */
1/* $FreeBSD: head/sys/netinet6/mld6.c 109623 2003-01-21 08:56:16Z alfred $ */
2/* $KAME: mld6.c,v 1.27 2001/04/04 05:17:30 itojun Exp $ */
3
4/*
5 * Copyright (C) 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

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

395 == NULL)
396 return;
397
398 /*
399 * Allocate mbufs to store ip6 header and MLD header.
400 * We allocate 2 mbufs and make chain in advance because
401 * it is more convenient when inserting the hop-by-hop option later.
402 */
2/* $KAME: mld6.c,v 1.27 2001/04/04 05:17:30 itojun Exp $ */
3
4/*
5 * Copyright (C) 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

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

395 == NULL)
396 return;
397
398 /*
399 * Allocate mbufs to store ip6 header and MLD header.
400 * We allocate 2 mbufs and make chain in advance because
401 * it is more convenient when inserting the hop-by-hop option later.
402 */
403 MGETHDR(mh, M_DONTWAIT, MT_HEADER);
403 MGETHDR(mh, M_NOWAIT, MT_HEADER);
404 if (mh == NULL)
405 return;
404 if (mh == NULL)
405 return;
406 MGET(md, M_DONTWAIT, MT_DATA);
406 MGET(md, M_NOWAIT, MT_DATA);
407 if (md == NULL) {
408 m_free(mh);
409 return;
410 }
411 mh->m_next = md;
412
413 mh->m_pkthdr.rcvif = NULL;
414 mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr);

--- 60 unchanged lines hidden ---
407 if (md == NULL) {
408 m_free(mh);
409 return;
410 }
411 mh->m_next = md;
412
413 mh->m_pkthdr.rcvif = NULL;
414 mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr);

--- 60 unchanged lines hidden ---