diff options
author | julian <julian@FreeBSD.org> | 1999-11-19 07:04:36 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-11-19 07:04:36 +0000 |
commit | 391b6293c54f0f8ae00845dc50cf50a42cccabd7 (patch) | |
tree | beb8c08110cd8bda3871e913c6b787130f504d7d /share/examples/netgraph | |
parent | b02336e915dd02922c79c674b290754a193ec0e3 (diff) | |
download | FreeBSD-src-391b6293c54f0f8ae00845dc50cf50a42cccabd7.zip FreeBSD-src-391b6293c54f0f8ae00845dc50cf50a42cccabd7.tar.gz |
Add an example of how to run raw IP across a sync port.
Diffstat (limited to 'share/examples/netgraph')
-rw-r--r-- | share/examples/netgraph/raw | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/share/examples/netgraph/raw b/share/examples/netgraph/raw new file mode 100644 index 0000000..e0970f3 --- /dev/null +++ b/share/examples/netgraph/raw @@ -0,0 +1,16 @@ +#!/bin/sh +# script to connect a raw synchronous card to a system interface. +# Assumes the file if_sr was compiled with options NETGRAPH. +# $FreeBSD$ + +CARD=sr0 + +# create an interface "ng0" and attach it to the sync port. +# The packets had jolly well better be ip because we are not discriminating. +ngctl mkpeer ${CARD}: iface rawdata inet + +# if ng0 already exists, use a CONNECT command instead of a mkpeer. e.g. +# ngctl connect ${CARD}: ng0: rawdata inet + +# Then use ifconfig on interface ng0 as usual + |