[Netnice-commitlog] netnice : Linux/net/core vif_capture.c,NONE,1.1.2.1 Makefile,1.1.6.2.2.1,1.1.6.2
Status: Alpha
Brought to you by:
taost6
From: enferex <en...@us...> - 2006-03-06 05:19:05
|
Update of /cvsroot/netnice/Linux/net/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14085 Modified Files: Tag: netnice2612b Makefile Added Files: Tag: netnice2612b vif_capture.c Log Message: Capture is for future NPF support. No kernel symbols have been exported, vif_cature is from the BSD version. Compiles fine --- NEW FILE: vif_capture.c --- /* * Copyright (c) 2001-2004 Netnice.org * All rights reserved. * * This code is derived from and highly owing to the Berkeley Packet * Filter, the standard packet capturing infrastructure for BSD. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * [...1145 lines suppressed...] *(int *) dst = AF_INET; dst += NPF_HDRSIZE; len -= NPF_HDRSIZE; while (len > 0) { if (m == 0) panic("vif_capture"); count = min(m->m_len, len); bcopy(mtod(m, void *), dst, count); m = m->m_next; dst += count; len -= count; } } d->bd_slen = curlen + totlen; } #endif /* NETNICE */ Index: Makefile =================================================================== RCS file: /cvsroot/netnice/Linux/net/core/Makefile,v retrieving revision 1.1.6.2.2.1 retrieving revision 1.1.6.2.2.2 diff -u -d -r1.1.6.2.2.1 -r1.1.6.2.2.2 --- Makefile 11 Feb 2006 05:35:19 -0000 1.1.6.2.2.1 +++ Makefile 6 Mar 2006 05:19:00 -0000 1.1.6.2.2.2 @@ -18,3 +18,4 @@ obj-$(CONFIG_NETNICE) += vif_input.o obj-$(CONFIG_NETNICE) += vif_output.o obj-$(CONFIG_NETNICE) += vif_subr.o +obj-$(CONFIG_NETNICE) += vif_capture.o |