Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2014 08:44:42 +0100
From:      Michal Buchtik <buchtajz@borsice.net>
To:        freebsd-net@freebsd.org
Subject:   netmap-ipfw IPv6 problem?
Message-ID:  <546C4A6A.4060401@borsice.net>

next in thread | raw e-mail | index | archive | help
Hello,
I try netmap-ipfw and have problem with IPv6 rule

Running on FreeBSD 10.1-RELEASE (compiled from source, kernel with
option NETMAP  added)

$ ipfw/ipfw add 00100 allow ipv6 from any to any
connected to 127.0.0.1:5555
ipfw: getsockopt(IP_FW_ADD): Protocol not supported

and on kipfw output i see
ipfw: no IPv6 support in kernel

ipv6-icmp  works
$ ipfw/ipfw add 00100 allow ipv6-icmp from any to any
connected to 127.0.0.1:5555
00100 allow ipv6-icmp from any to any

$ ipfw/ipfw list
connected to 127.0.0.1:5555
nalloc 2248 nbytes 176 ptr 0x0
00100 allow ipv6-icmp from any to any
65535 allow ip from any to any


but when try kernel ipfw, it works

# ipfw add 10001 allow ip6 from any to any
10001 allow ip6 from any to any
# ipfw list
10000 allow ip from any to any
10001 allow ip6 from any to any
65535 deny ip from any to any

kipfw start output

$ ./kipfw netmap:igb0 netmap:igb1
[ 589.405494] missing.c:main       [724] initializing tick to 200
[ 589.405508] missing.c:callout_startup [361] start
init_children mod_idx value 9
+++ start module 0 ipfw ipfw at 0x61e3c0 order 0x1
+++ start module 1 sy_ipfw SYSINIT at 0x0 order 0x2
ipfw2 initialized, divert loadable, nat loadable, default to accept,
logging disabled
+++ start module 2 sy_Vnet_ipfw SYSINIT at 0x0 order 0x3
[ 589.405545] missing.c:callout_init [308] c 0x61e990 mpsafe 8
[ 589.405580] missing.c:pfil_head_get [89] called
[ 589.405583] missing.c:pfil_add_hook [96] called
+++ start module 3 dummynet dummynet at 0x61e418 order 0x4
DUMMYNET 0x0 with IPv6 initialized (100409)
[ 589.405594] missing.c:taskqueue_create_fast [427] start dummynet fn
0x4154c0 ctx 0x61ea08
[ 589.405598] missing.c:taskqueue_start_threads [435] tqp 0x61ea08 count
1 (dummy)
[ 589.405600] missing.c:callout_init [308] c 0x61e9d0 mpsafe 8
+++ start module 4 dn_fifo dn_fifo at 0x61e448 order 0x5
[ 589.405605] ip_dummynet.c:load_dn_sched [2245] dn_sched FIFO loaded
+++ start module 5 dn_wf2qp dn_wf2qp at 0x61e4f8 order 0x6
[ 589.405610] ip_dummynet.c:load_dn_sched [2245] dn_sched WF2Q+ loaded
+++ start module 6 dn_rr dn_rr at 0x61e5a8 order 0x7
[ 589.405614] ip_dummynet.c:load_dn_sched [2245] dn_sched RR loaded
+++ start module 7 dn_qfq dn_qfq at 0x61e658 order 0x8
[ 589.405618] ip_dummynet.c:load_dn_sched [2245] dn_sched QFQ loaded
+++ start module 8 dn_prio dn_prio at 0x61e708 order 0x9
[ 589.405622] ip_dummynet.c:load_dn_sched [2245] dn_sched PRIO loaded
*** Global Sysctl Table entries = 41, total size = 2144 ***
[ 589.405660] session.c:do_server  [541] +++ listening tcp 127.0.0.1:5555
[ 589.405675] netmap_io.c:netmap_add_port [310] opening netmap device
netmap:igb0
[ 589.548909] netmap_io.c:netmap_add_port [326] --- mem_id 1
[ 589.548926] netmap_io.c:netmap_add_port [329] create sess 0x801449070
my_netmap_port 0x801429580
[ 589.548929] netmap_io.c:netmap_add_port [310] opening netmap device
netmap:igb1
[ 589.692204] netmap_io.c:netmap_add_port [326] --- mem_id 1
[ 589.692220] netmap_io.c:netmap_add_port [329] create sess 0x8014490a0
my_netmap_port 0x801429800
[ 589.692223] netmap_io.c:netmap_add_port [342] 0x801429800 igb1 1 <->
0x801429580 igb0 1 SWAP
[ 589.692463] missing.c:callout_run [378] running 0x61e9d0 due at 1 now 1434
[ 589.692479] session.c:mainloop   [624] callouts 1 skipped 0

Can someone suggest me what's wrong?

Regards,
Michal



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?546C4A6A.4060401>