raw socket, bpf, netgraph, etc

2000-02-14 Thread Yevmenkin, Maksim N, CSCIO
Hello All, Is it possible to get access to link layer (AF_LINK) via raw socket? kind of Linux SOCK_PACKET. It seems to me that it is not. (hope I wrong :) I can access raw IP via socket(AF_INET, SOCK_RAW, IPPROTO_RAW) and event get access to IP header with setsockopt. But not AF_LINK :( On the

Re: raw socket, bpf, netgraph, etc

2000-02-14 Thread David Malone
On Mon, Feb 14, 2000 at 10:33:47AM -0800, Archie Cobbs wrote: > Yevmenkin, Maksim N, CSCIO writes: > > i was thinking about netgraph. would't it be nice to have netgraph interface > > in each network driver? > > You already do. See ng_ether(8). > > Compile your kernel with options NETGRAPH and

Re: raw socket, bpf, netgraph, etc

2000-02-14 Thread Archie Cobbs
David Malone writes: > > Compile your kernel with options NETGRAPH and then each Ethernet > > interface is a netgraph node. Take control of it by connecting > > to the "divert" hook. > > I was trying to figure out if it is possible to route stuff out on > a particular interface based on source ad

Re: raw socket, bpf, netgraph, etc

2000-02-14 Thread Archie Cobbs
Yevmenkin, Maksim N, CSCIO writes: > i was thinking about netgraph. would't it be nice to have netgraph interface > in each network driver? You already do. See ng_ether(8). Compile your kernel with options NETGRAPH and then each Ethernet interface is a netgraph node. Take control of it by conne