1169092Sdeischen/* 2169092Sdeischen * Copyright (C) 2008 Edwin Groothuis. All rights reserved. 3169092Sdeischen * 4174618Sdas * Redistribution and use in source and binary forms, with or without 5174618Sdas * modification, are permitted provided that the following conditions 6157196Sdeischen * are met: 7157196Sdeischen * 1. Redistributions of source code must retain the above copyright 8157196Sdeischen * notice, this list of conditions and the following disclaimer. 9157196Sdeischen * 2. Redistributions in binary form must reproduce the above copyright 10157196Sdeischen * notice, this list of conditions and the following disclaimer in the 11157196Sdeischen * documentation and/or other materials provided with the distribution. 12157196Sdeischen * 13157196Sdeischen * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14157196Sdeischen * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15157196Sdeischen * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16157196Sdeischen * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 17157196Sdeischen * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18157196Sdeischen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19157196Sdeischen * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20157196Sdeischen * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21157196Sdeischen * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22157196Sdeischen * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23157196Sdeischen * SUCH DAMAGE. 24157196Sdeischen */ 25157196Sdeischen 26157196Sdeischen#include <sys/cdefs.h> 27157196Sdeischen__FBSDID("$FreeBSD$"); 28157196Sdeischen 29157196Sdeischenvoid tftp_send(int peer, uint16_t *block, struct tftp_stats *tp); 30157196Sdeischenvoid tftp_receive(int peer, uint16_t *block, struct tftp_stats *tp, 31157196Sdeischen struct tftphdr *firstblock, size_t fb_size); 32157196Sdeischen