nd6_nbr.c (108470) | nd6_nbr.c (109623) |
---|---|
1/* $FreeBSD: head/sys/netinet6/nd6_nbr.c 108470 2002-12-30 21:18:15Z schweikh $ */ | 1/* $FreeBSD: head/sys/netinet6/nd6_nbr.c 109623 2003-01-21 08:56:16Z alfred $ */ |
2/* $KAME: nd6_nbr.c,v 1.86 2002/01/21 02:33:04 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 --- 347 unchanged lines hidden (view full) --- 357 if (max_linkhdr + maxlen >= MCLBYTES) { 358#ifdef DIAGNOSTIC 359 printf("nd6_ns_output: max_linkhdr + maxlen >= MCLBYTES " 360 "(%d + %d > %d)\n", max_linkhdr, maxlen, MCLBYTES); 361#endif 362 return; 363 } 364 | 2/* $KAME: nd6_nbr.c,v 1.86 2002/01/21 02:33:04 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 --- 347 unchanged lines hidden (view full) --- 357 if (max_linkhdr + maxlen >= MCLBYTES) { 358#ifdef DIAGNOSTIC 359 printf("nd6_ns_output: max_linkhdr + maxlen >= MCLBYTES " 360 "(%d + %d > %d)\n", max_linkhdr, maxlen, MCLBYTES); 361#endif 362 return; 363 } 364 |
365 MGETHDR(m, M_DONTWAIT, MT_DATA); | 365 MGETHDR(m, M_NOWAIT, MT_DATA); |
366 if (m && max_linkhdr + maxlen >= MHLEN) { | 366 if (m && max_linkhdr + maxlen >= MHLEN) { |
367 MCLGET(m, M_DONTWAIT); | 367 MCLGET(m, M_NOWAIT); |
368 if ((m->m_flags & M_EXT) == 0) { 369 m_free(m); 370 m = NULL; 371 } 372 } 373 if (m == NULL) 374 return; 375 m->m_pkthdr.rcvif = NULL; --- 466 unchanged lines hidden (view full) --- 842 if (max_linkhdr + maxlen >= MCLBYTES) { 843#ifdef DIAGNOSTIC 844 printf("nd6_na_output: max_linkhdr + maxlen >= MCLBYTES " 845 "(%d + %d > %d)\n", max_linkhdr, maxlen, MCLBYTES); 846#endif 847 return; 848 } 849 | 368 if ((m->m_flags & M_EXT) == 0) { 369 m_free(m); 370 m = NULL; 371 } 372 } 373 if (m == NULL) 374 return; 375 m->m_pkthdr.rcvif = NULL; --- 466 unchanged lines hidden (view full) --- 842 if (max_linkhdr + maxlen >= MCLBYTES) { 843#ifdef DIAGNOSTIC 844 printf("nd6_na_output: max_linkhdr + maxlen >= MCLBYTES " 845 "(%d + %d > %d)\n", max_linkhdr, maxlen, MCLBYTES); 846#endif 847 return; 848 } 849 |
850 MGETHDR(m, M_DONTWAIT, MT_DATA); | 850 MGETHDR(m, M_NOWAIT, MT_DATA); |
851 if (m && max_linkhdr + maxlen >= MHLEN) { | 851 if (m && max_linkhdr + maxlen >= MHLEN) { |
852 MCLGET(m, M_DONTWAIT); | 852 MCLGET(m, M_NOWAIT); |
853 if ((m->m_flags & M_EXT) == 0) { 854 m_free(m); 855 m = NULL; 856 } 857 } 858 if (m == NULL) 859 return; 860 m->m_pkthdr.rcvif = NULL; --- 536 unchanged lines hidden --- | 853 if ((m->m_flags & M_EXT) == 0) { 854 m_free(m); 855 m = NULL; 856 } 857 } 858 if (m == NULL) 859 return; 860 m->m_pkthdr.rcvif = NULL; --- 536 unchanged lines hidden --- |