Home | History | Annotate | Download | only in net

Lines Matching refs:iobuf

27 #include <gpxe/iobuf.h>
118 struct io_buffer *iobuf;
135 iobuf = alloc_iob ( MAX_LL_HEADER_LEN + sizeof ( *arphdr ) +
137 if ( ! iobuf )
139 iob_reserve ( iobuf, MAX_LL_HEADER_LEN );
142 arphdr = iob_put ( iobuf, sizeof ( *arphdr ) );
148 memcpy ( iob_put ( iobuf, ll_protocol->ll_addr_len ),
150 memcpy ( iob_put ( iobuf, net_protocol->net_addr_len ),
152 memset ( iob_put ( iobuf, ll_protocol->ll_addr_len ),
154 memcpy ( iob_put ( iobuf, net_protocol->net_addr_len ),
158 if ( ( rc = net_tx ( iobuf, netdev, &arp_protocol,
186 * @v iobuf I/O buffer
197 static int arp_rx ( struct io_buffer *iobuf, struct net_device *netdev,
199 struct arphdr *arphdr = iobuf->data;
263 net_tx ( iob_disown ( iobuf ), netdev, &arp_protocol,
267 free_iob ( iobuf );