Annotation of qemu/roms/SLOF/clients/net-snk/app/netlib/tftp.h, revision 1.1

1.1     ! root        1: /******************************************************************************
        !             2:  * Copyright (c) 2004, 2008 IBM Corporation
        !             3:  * All rights reserved.
        !             4:  * This program and the accompanying materials
        !             5:  * are made available under the terms of the BSD License
        !             6:  * which accompanies this distribution, and is available at
        !             7:  * http://www.opensource.org/licenses/bsd-license.php
        !             8:  *
        !             9:  * Contributors:
        !            10:  *     IBM Corporation - initial implementation
        !            11:  *****************************************************************************/
        !            12: 
        !            13: 
        !            14: #ifndef _TFTP_H_
        !            15: #define _TFTP_H_
        !            16: 
        !            17: #include <types.h>
        !            18: //#include <netlib/ipv6.h>
        !            19: 
        !            20: struct tftphdr {
        !            21:        int16_t th_opcode;
        !            22:        uint16_t th_data;
        !            23: };
        !            24: 
        !            25: typedef struct {
        !            26:        uint32_t own_ip;
        !            27:        //ip6_addr_t own_ip6;
        !            28:        uint32_t server_ip;
        !            29:        //ip6_addr_t server_ip6;
        !            30:        int8_t filename[256];
        !            31: } __attribute__ ((packed)) filename_ip_t ;
        !            32: 
        !            33: typedef struct {
        !            34:        uint32_t bad_tftp_packets;
        !            35:        uint32_t no_packets;
        !            36:        uint32_t blocks_missed;
        !            37:        uint32_t blocks_received;
        !            38: } tftp_err_t;
        !            39: 
        !            40: int tftp(filename_ip_t *, unsigned char  *, int, unsigned int,
        !            41:          tftp_err_t *, int32_t mode, int32_t blocksize, int ip_version);
        !            42: int tftp_netsave(filename_ip_t *, uint8_t * buffer, int len,
        !            43:                 int use_ci, unsigned int retries, tftp_err_t * tftp_err);
        !            44: 
        !            45: int32_t handle_tftp(uint8_t *, int32_t);
        !            46: void handle_tftp_dun(uint8_t err_code);
        !            47: 
        !            48: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.