diff options
author | yar <yar@FreeBSD.org> | 2004-01-26 12:51:00 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-01-26 12:51:00 +0000 |
commit | e0fbbdee58225122c4c5dfc09a1ed9645f9193c0 (patch) | |
tree | ae79de6246ff25115d5c3360e074b2a31d24fce8 /share | |
parent | 7487bc82a7fe1f213ff073c4b13cacc2d4729dfe (diff) | |
download | FreeBSD-src-e0fbbdee58225122c4c5dfc09a1ed9645f9193c0.zip FreeBSD-src-e0fbbdee58225122c4c5dfc09a1ed9645f9193c0.tar.gz |
Document the interface method if_input().
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/ifnet.9 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9 index b2be60f..1ab4ec0 100644 --- a/share/man/man9/ifnet.9 +++ b/share/man/man9/ifnet.9 @@ -84,6 +84,8 @@ .Fn IF_DEQUEUE "struct ifqueue *ifq" "struct mbuf *m" .\" .Ss "struct ifnet Member Functions" +.Ft void +.Fn \*(lp*if_input\*(rp "struct ifnet *ifp" "struct mbuf *m" .Ft int .Fo \*(lp*if_output\*(rp .Fa "struct ifnet *ifp" "struct mbuf *m" @@ -329,6 +331,15 @@ There are in addition a number of function pointers which the driver must initialize to complete its interface with the generic interface layer: .Bl -ohang -offset indent +.It Fn if_input +Pass a packet to an appropriate upper layer as determined +from the link-layer header of the packet. +This routine is to be called from an interrupt handler or +used to emulate reception of a packet on this interface. +A single function implementing +.Fn if_input +can be shared among multiple drivers utilizing the same link-layer +framing, e.g., Ethernet. .It Fn if_output Output a packet on interface .Fa ifp , |