Sync our ieee80211*.9 manual pages with the recent upgrade.
[dragonfly.git] / share / examples / netgraph / raw
1 #!/bin/sh
2 # script to connect a raw synchronous card to a system interface.
3 # Assumes the file if_sr was compiled with options NETGRAPH.
4 # $FreeBSD: src/share/examples/netgraph/raw,v 1.1 1999/11/19 07:04:36 julian Exp $
5 # $DragonFly: src/share/examples/netgraph/raw,v 1.2 2003/06/17 04:36:57 dillon Exp $
6
7 CARD=sr0
8
9 # create an interface "ng0" and attach it to the sync port.
10 # The packets had jolly well better be ip because we are not discriminating.
11 ngctl mkpeer ${CARD}: iface rawdata inet
12
13 # if ng0 already exists, use a CONNECT command instead of a mkpeer. e.g.
14 # ngctl connect ${CARD}: ng0: rawdata inet
15
16 # Then use ifconfig on interface ng0 as usual
17