if_patm_tx.c (302408) | if_patm_tx.c (315221) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 24 unchanged lines hidden (view full) --- 33 * All rights reserved. 34 * 35 * Author: Hartmut Brandt <harti@freebsd.org> 36 * 37 * Driver for IDT77252 based cards like ProSum's. 38 */ 39 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 24 unchanged lines hidden (view full) --- 33 * All rights reserved. 34 * 35 * Author: Hartmut Brandt <harti@freebsd.org> 36 * 37 * Driver for IDT77252 based cards like ProSum's. 38 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: stable/11/sys/dev/patm/if_patm_tx.c 298646 2016-04-26 15:03:15Z pfg $"); | 41__FBSDID("$FreeBSD: stable/11/sys/dev/patm/if_patm_tx.c 315221 2017-03-14 02:06:03Z pfg $"); |
42 43#include "opt_inet.h" 44#include "opt_natm.h" 45 46#include <sys/types.h> 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/malloc.h> --- 385 unchanged lines hidden (view full) --- 435 bcopy(last->m_data, last->m_data + space, last->m_len); 436 last->m_data -= space; 437 bzero(last->m_data + last->m_len, pad); 438 last->m_len += pad; 439 return (m0); 440 } 441 } 442 MGET(m, M_NOWAIT, MT_DATA); | 42 43#include "opt_inet.h" 44#include "opt_natm.h" 45 46#include <sys/types.h> 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/malloc.h> --- 385 unchanged lines hidden (view full) --- 435 bcopy(last->m_data, last->m_data + space, last->m_len); 436 last->m_data -= space; 437 bzero(last->m_data + last->m_len, pad); 438 last->m_len += pad; 439 return (m0); 440 } 441 } 442 MGET(m, M_NOWAIT, MT_DATA); |
443 if (m == 0) { | 443 if (m == NULL) { |
444 m_freem(m0); 445 if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1); 446 return (NULL); 447 } 448 bzero(mtod(m, u_char *), pad); 449 m->m_len = pad; 450 last->m_next = m; 451 --- 826 unchanged lines hidden --- | 444 m_freem(m0); 445 if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1); 446 return (NULL); 447 } 448 bzero(mtod(m, u_char *), pad); 449 m->m_len = pad; 450 last->m_next = m; 451 --- 826 unchanged lines hidden --- |