ieee80211_node.9 (233648) | ieee80211_node.9 (238542) |
---|---|
1.\" 2.\" Copyright (c) 2004 Bruce M. Simpson <bms@spc.org> 3.\" Copyright (c) 2004 Darron Broad <darron@kewl.org> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" | 1.\" 2.\" Copyright (c) 2004 Bruce M. Simpson <bms@spc.org> 3.\" Copyright (c) 2004 Darron Broad <darron@kewl.org> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" |
27.\" $FreeBSD: head/share/man/man9/ieee80211_node.9 233648 2012-03-29 05:02:12Z eadler $ | 27.\" $FreeBSD: head/share/man/man9/ieee80211_node.9 238542 2012-07-17 02:05:39Z kevlo $ |
28.\" 29.Dd April 28, 2010 30.Dt IEEE80211_NODE 9 31.Os 32.Sh NAME 33.Nm ieee80211_node 34.Nd software 802.11 stack node management functions 35.Sh SYNOPSIS --- 144 unchanged lines hidden (view full) --- 180and then provides a private allocation routine that does this: 181.Bd -literal -offset indent 182static struct ieee80211_node * 183iwi_node_alloc(struct ieee80211vap *vap, 184 const uint8_t mac[IEEE80211_ADDR_LEN]) 185{ 186 struct iwi_node *in; 187 | 28.\" 29.Dd April 28, 2010 30.Dt IEEE80211_NODE 9 31.Os 32.Sh NAME 33.Nm ieee80211_node 34.Nd software 802.11 stack node management functions 35.Sh SYNOPSIS --- 144 unchanged lines hidden (view full) --- 180and then provides a private allocation routine that does this: 181.Bd -literal -offset indent 182static struct ieee80211_node * 183iwi_node_alloc(struct ieee80211vap *vap, 184 const uint8_t mac[IEEE80211_ADDR_LEN]) 185{ 186 struct iwi_node *in; 187 |
188 in = malloc(sizeof (struct iwi_node), M_80211_NODE, | 188 in = malloc(sizeof(struct iwi_node), M_80211_NODE, |
189 M_NOWAIT | M_ZERO); 190 if (in == NULL) 191 return NULL; 192 in->in_station = -1; 193 return &in->in_node; 194} 195.Ed 196.Pp --- 55 unchanged lines hidden --- | 189 M_NOWAIT | M_ZERO); 190 if (in == NULL) 191 return NULL; 192 in->in_station = -1; 193 return &in->in_node; 194} 195.Ed 196.Pp --- 55 unchanged lines hidden --- |