Lines Matching refs:iobuf
8 #include <ipxe/iobuf.h>
32 struct io_buffer *iobuf = alloc_iob ( sizeof ( *nsolicit ) + MIN_IOB_LEN );
33 iob_reserve ( iobuf, MAX_HDR_LEN );
34 nsolicit = iob_put ( iobuf, sizeof ( *nsolicit ) );
61 return tcpip_tx ( iobuf, &icmp6_protocol, NULL, &st_dest.st,
68 * @v iobuf I/O buffer
72 static int icmp6_rx ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src,
74 struct icmp6_header *icmp6hdr = iobuf->data;
77 if ( iob_len ( iobuf ) < sizeof ( *icmp6hdr ) ) {
78 DBG ( "Packet too short (%zd bytes)\n", iob_len ( iobuf ) );
79 free_iob ( iobuf );
88 return ndp_process_advert ( iobuf, st_src, st_dest );