[CFT] ng_nptv6 (IPv6-to-IPv6 Network Prefix Translation)

2012-07-12 Thread HIROSHI OOTA

Hi, all

I have created a netgraph node which performs a IPv6-to-IPv6 Network  
Prefix Translation(RFC6296).

It works with ipfw(ng_ipfw). a sample configuration is follows.

1 setup netgraph
   ngctl mkpeer ipfw: nptv6 1000 inbound
   ngctl name ipfw:1000 nptv6
   ngctl connect ipfw: nptv6: 2000 outbound
   ngctl  msg nptv6: setconfig { inner=fd00:1234:1234::/48  
outer=2001:db8::/32 }

  or use rcng script(ng_nptv6.sh) which is included in archive.
2 setup ipfw
  # inbound
  ipfw 1000 allow ip6 from any to 2001:db8::/64 in
  ipfw 1010 netgraph 1000 ip6 from any to 2001:db8::/32 in
  ipfw 1090 allow ip6 from any to any in
  # outbound
  ipfw 2000 allow ip6 from 2001:db8::/64 to any out
  ipfw 2010 netgraph 2000 ip6 from 2001:db8::/32 to any out
  ipfw 2090 allow ip6 from any to any in

You can download from
http://hp.vector.co.jp/authors/VA052357/ng_nptv6-0.0.tar.xz

Comments and tests results are welcome!
--
HIROSHI OOTA
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


: out of swap space

2012-05-30 Thread HIROSHI OOTA

Hi all,
my PCEngine's wrap(NanoBSD, i386, 128Mbytes mem, no swap) won't start,  
after updating to r234569.

some of daemons was killed with the message 'out of swap space'.

vmstat in single user mode as:
---  r234568(works fine)
# uname -a
FreeBSD  10.0-CURRENT FreeBSD 10.0-CURRENT #0 r234568:   root@  i386
# vmstat
 procs  memory  pagedisks faults  
cpu
 r b w avmfre   flt  re  pi  pofr  sr ad0 ad1   in   sy   cs  
us sy id
 0 0 0  26572k   109M12   0   0   0 7   0   0   0  4027   78   
0  1 99


---  r234569(does not work)
# uname -a
FreeBSD  10.0-CURRENT FreeBSD 10.0-CURRENT #0 r234569:   root@  i386
# vmstat
 procs  memory  pagedisks faults  
cpu
 r b w avmfre   flt  re  pi  pofr  sr ad0 ad1   in   sy   cs  
us sy id
 0 0 0  21320k86M   185   0   1   076   0   0   0  4069   97   
0  2 98


Any ideas?
--
HIROSHI OOTA
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: setpgrp(1, 1) does not FAIL

2002-02-27 Thread HIROSHI OOTA

thanks for your quick fixing. 

but, It should return EPERM instead of ESRCH. Because ESRCH
means `The requested process does not exist'. 

thanks,
--

    HIROSHI OOTA
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



setpgrp(1, 1) does not FAIL

2002-02-26 Thread HIROSHI OOTA

Hello,

The following will succeed in non privilege user.
I think it should fail.

main()
{
   printf("%d\n", setpgrp(1, 1));
}
--

        HIROSHI OOTA
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



AccleRAID 352 does not work

2001-10-21 Thread HIROSHI OOTA

Hi,

Version 1.9 of that file does not work. You probably meant to
write:

--- sys/dev/mly/mly.c-  Wed Sep 12 17:37:09 2001
+++ sys/dev/mly/mly.c   Thu Oct 18 13:46:50 2001
@@ -847,7 +847,7 @@
 mci->addr.phys.controller = 0;
 mci->timeout.value = 30;
 mci->timeout.scale = MLY_TIMEOUT_SECONDS;
-if (bus < sc->mly_controllerinfo->virtual_channels_present) {
+if (bus >= sc->mly_controllerinfo->physical_channels_present) {
mc->mc_length = mci->data_size = sizeof(struct mly_ioctl_getlogdevinfovalid);
mci->sub_ioctl = MDACIOCTL_GETLOGDEVINFOVALID;
mci->addr.log.logdev = MLY_LOGDEV_ID(sc, bus, target);

--

    HIROSHI OOTA
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message