[EMAIL PROTECTED] wrote:
Using ngctl as suggested in the "All About Netgraph" Daemon News
article (http://people.freebsd.org/~julian/netgraph.html ) by Archie
Cobbs I get the following output:
[EMAIL PROTECTED] nghook -a fxp0: divert
nghook: can't connect to node
[EMAIL PROTECTED] ngctl list
There are 1 total nodes:
Name: ngctl4352 Type: socket ID: 00000005 Num hooks: 0
According to the article my four Ethernet interefaces (see ifconfig output
below) should display
as persistent nodes. Any reason why they do not appear? I compiled a custom
kernel on two separate
occasions, first to support IPFW/Dummynet, then later, Netgraph.
Thanks,
Tom Benjamin
##### kernel options added for 1st compile (IPFW)
options BRIDGE
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT
options DUMMYNET
options NMBCLUSTERS
options HZ=1000
##### kernel options added for 2nd compile (NETGRAPH, plus forgot IPDIVERT in
1st compile)
options IPDIVERT
options NETGRAPH
You need to also compile in or load the nodes you need.
options NETGRAPH_ETHER (I think)
(I forget the names.. look in LINT)
or
kldload ng_ether to load it dynamically
also, there is no "divert" hook for ng_ether hooks.
hooks for ng-ether are:
lower (to get incoming packets and accept outgoing packets )(connects to
the physical interface)
upper (to get outgoing packets and acceept incoming packets)(connects to
the protocol mux/demux)
orphan (above the protocol demux. only gives you packets that would
otherwise have been
discarded due to not being a known protocol.)
man 4 ng_ether
##### end kernel options
# uname -a
FreeBSD ntp-2.labs.iptv 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu May 25 14:34:57
CDT 2006
[EMAIL PROTECTED] sysctl -a|grep graph
netgraph_path 0 0K - 30 16
netgraph_sock 0 0K - 5 64
netgraph_msg 0 0K - 30 64,128,256,1024
netgraph_node 0 0K - 5 256
net.graph.maxalloc: 512
net.graph.abi_version: 11
net.graph.msg_version: 8
net.graph.control.proto: 2
net.graph.data.proto: 1
net.graph.family: 32
net.graph.recvspace: 20480
net.graph.maxdgram: 20480
# ifconfig
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet6 fe80::2b0:d0ff:fee1:1754%fxp0 prefixlen 64 scopeid 0x1
inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255
ether 00:b0:d0:e1:17:54
media: Ethernet autoselect (100baseTX)
status: active
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet6 fe80::2b0:d0ff:fee1:1755%fxp1 prefixlen 64 scopeid 0x2
inet 10.3.40.250 netmask 0xffffff00 broadcast 10.3.40.255
ether 00:b0:d0:e1:17:55
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet6 fe80::20f:b5ff:fe46:8e17%sis0 prefixlen 64 scopeid 0x3
inet 144.60.43.147 netmask 0xffffff00 broadcast 144.60.43.255
ether 00:0f:b5:46:8e:17
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
sis1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:0f:b5:46:59:63
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
netgraph_24may2006.txt
netgraph_26may2006.txt
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"