tftp-transfer.h revision 207614
197403Sobrien/* 297403Sobrien * Copyright (C) 2008 Edwin Groothuis. All rights reserved. 3169691Skan * 497403Sobrien * Redistribution and use in source and binary forms, with or without 5132720Skan * modification, are permitted provided that the following conditions 697403Sobrien * are met: 7132720Skan * 1. Redistributions of source code must retain the above copyright 897403Sobrien * notice, this list of conditions and the following disclaimer. 997403Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1097403Sobrien * notice, this list of conditions and the following disclaimer in the 1197403Sobrien * documentation and/or other materials provided with the distribution. 12132720Skan * 1397403Sobrien * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1497403Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1597403Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1697403Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 1797403Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18132720Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19169691Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20169691Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2197403Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2297403Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2397403Sobrien * SUCH DAMAGE. 2497403Sobrien */ 2597403Sobrien 2697403Sobrien#include <sys/cdefs.h> 2797403Sobrien__FBSDID("$FreeBSD: head/libexec/tftpd/tftp-transfer.h 207614 2010-05-04 13:07:40Z imp $"); 2897403Sobrien 2997403Sobrienvoid tftp_send(int peer, uint16_t *block, struct tftp_stats *tp); 3097403Sobrienvoid tftp_receive(int peer, uint16_t *block, struct tftp_stats *tp, 31169691Skan struct tftphdr *firstblock, size_t fb_size); 3297403Sobrien