never stop questioning

cipe-mips.txt

cipe-mips.txt
Posted Aug 17, 1999

cipe-mips.txt

tags | tool, firewall
systems | unix
MD5 | 0b9c65d33ca463aeae63b6010046086c

cipe-mips.txt

Change Mirror Download
This message contains instructions how to get CIPE working on the MIPS 
platform which has no module support and therefore requires it to be
put into the kernel.


From: Harris Vaegan-Lloyd <harris@unixpac.com.au>
Organization: Unixpac Pty Ltd
To: Olaf Titz <olaf@bigred.inka.de>
Subject: Re: status of cipe?

[...]
First I made the directory /usr/src/linux/net/cip3i/

and put the files..
Makefile crc32.c device.c encaps.o idea0.o output.o
cip3i.o crc32.o device.o idea0.c output sock.c
cipe.h crypto.h encaps.c idea0.h output.c

In there..

The Makefile contains ...
### No user-serviceable parts below here

O_OBJS := device.o sock.o output.o encaps.o crc32.o idea0.o
O_TARGET := cip3i.o

tar:
tar -cvf /dev/f1 .
....

At the top of net/Makefile (line 35) I added ..
ifeq ($CONFIG_CIPE),y)
SUB_DIRS += cip3i
endif

line 1156 of net/ipv4/af_inet.c I added ..

/*
* Initialise the cipe driver.
*/
#ifdef CONFIG_CIPE
cipe_init();
#endif
int cipe_init(void)
{
int i;

cipe_maxdev=8;

#ifdef 1
printk(KERN_INFO
DEVNAME ": CIPE driver vers %s (c) Olaf Titz 1996-1998, %d
channels,
debug=%d\n",
driver_version, cipe_maxdev, cipe_debug);
#else
printk(KERN_INFO
DEVNAME ": CIPE driver vers %s (c) Olaf Titz 1996-1998, %d
channels\n",
driver_version, cipe_maxdev);
#endif

prnseed=~jiffies;
cipe_ctrls = (struct cipe_ctrl **)
kmalloc(sizeof(void*)*cipe_maxdev,
GFP_KERNEL);
if (!cipe_ctrls) {
printk(KERN_ERR
DEVNAME ": failed to allocate master control
structure\n");
return -ENOMEM;
}
memset(cipe_ctrls, 0, sizeof(void*)*cipe_maxdev);
for (i=0; i<cipe_maxdev; ++i)
if (cipe_alloc(i)<0)
return -ENOMEM;
return 0;
}


(cipe_init was adapted from cipe_module_init I think..)

I specified the cipe_debug and cipe_maxdev values my hand in there. It
minimal debugging and 8 devices.

There should be some stuff in the net/cip3i/config.in as well if you're
using make config or make menuconfig.. But the MIPS port doesn't have
such niceties ;). so I just added CONFIG_CIPE=y to the .config file. (Or
the arch/mips/defconfig).

Some include had to be changed as well (Just the usual ones for glibc)
then all was fine. In fact it worked the first time I tried it without
any spelling mistakes in it..
[...]

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close