ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device.C
(Generate patch)

Comparing gvpe/src/device.C (file contents):
Revision 1.6 by pcg, Thu Mar 3 16:54:34 2005 UTC vs.
Revision 1.9 by pcg, Sat Jul 9 02:35:42 2005 UTC

14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with gvpe; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/ 20*/
21 21
22#include "config.h" 22#include "config.h"
23 23
24#include <cstring> 24#include <cstring>
32 32
33void *net_packet::operator new(size_t s) 33void *net_packet::operator new(size_t s)
34{ 34{
35 if (s > sizeof (data_packet)) 35 if (s > sizeof (data_packet))
36 { 36 {
37 slog (L_ERR, _("FATAL: allocation for network packet larger than max supported packet size (%d > %d).\n"), 37 slog (L_ERR, _("FATAL: allocation for network packet larger than max supported packet size (%d > %d)."),
38 s, sizeof (data_packet)); 38 s, sizeof (data_packet));
39 abort (); 39 abort ();
40 } 40 }
41 41
42 if (pkt_cachen) 42 if (pkt_cachen)
67# include "device-tincd.C" 67# include "device-tincd.C"
68#elif IFTYPE_native && IF_linux 68#elif IFTYPE_native && IF_linux
69# include "device-linux.C" 69# include "device-linux.C"
70#elif IFTYPE_native && IF_cygwin 70#elif IFTYPE_native && IF_cygwin
71# include "device-cygwin.C" 71# include "device-cygwin.C"
72#elif IFTYPE_native && IF_darwin
73# include "device-darwin.C"
72#else 74#else
73# error No interface implementation for your IFTYPE/IFSUBTYPE combination. 75# error No interface implementation for your IFTYPE/IFSUBTYPE combination.
74#endif 76#endif
75 77
76 78

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines