natm.c (121816) | natm.c (122320) |
---|---|
1/* $NetBSD: natm.c,v 1.5 1996/11/09 03:26:26 chuck Exp $ */ 2/* 3 * 4 * Copyright (c) 1996 Charles D. Cranor and Washington University. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 22 unchanged lines hidden (view full) --- 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34/* 35 * natm.c: native mode ATM access (both aal0 and aal5). 36 */ 37 38#include <sys/cdefs.h> | 1/* $NetBSD: natm.c,v 1.5 1996/11/09 03:26:26 chuck Exp $ */ 2/* 3 * 4 * Copyright (c) 1996 Charles D. Cranor and Washington University. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 22 unchanged lines hidden (view full) --- 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34/* 35 * natm.c: native mode ATM access (both aal0 and aal5). 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/netnatm/natm.c 121816 2003-10-31 18:32:15Z brooks $"); | 39__FBSDID("$FreeBSD: head/sys/netnatm/natm.c 122320 2003-11-08 22:28:40Z sam $"); |
40 41#include <sys/param.h> 42#include <sys/conf.h> 43#include <sys/kernel.h> 44#include <sys/lock.h> 45#include <sys/malloc.h> 46#include <sys/mbuf.h> 47#include <sys/protosw.h> --- 632 unchanged lines hidden (view full) --- 680 */ 681void 682natmintr(struct mbuf *m) 683{ 684 int s; 685 struct socket *so; 686 struct natmpcb *npcb; 687 | 40 41#include <sys/param.h> 42#include <sys/conf.h> 43#include <sys/kernel.h> 44#include <sys/lock.h> 45#include <sys/malloc.h> 46#include <sys/mbuf.h> 47#include <sys/protosw.h> --- 632 unchanged lines hidden (view full) --- 680 */ 681void 682natmintr(struct mbuf *m) 683{ 684 int s; 685 struct socket *so; 686 struct natmpcb *npcb; 687 |
688 GIANT_REQUIRED; 689 |
|
688#ifdef DIAGNOSTIC 689 M_ASSERTPKTHDR(m); 690#endif 691 692 npcb = (struct natmpcb *)m->m_pkthdr.rcvif; /* XXX: overloaded */ 693 so = npcb->npcb_socket; 694 695 s = splimp(); /* could have atm devs @ different levels */ --- 60 unchanged lines hidden --- | 690#ifdef DIAGNOSTIC 691 M_ASSERTPKTHDR(m); 692#endif 693 694 npcb = (struct natmpcb *)m->m_pkthdr.rcvif; /* XXX: overloaded */ 695 so = npcb->npcb_socket; 696 697 s = splimp(); /* could have atm devs @ different levels */ --- 60 unchanged lines hidden --- |