/*
    NetUDPChecksum.h, Copyright  (c) by Boris Lutz,
    Swiss Federal Institute of Technology,
    Computer Engineering and Networks Laboratory.
 
    TOPSY -- A Teachable Operating System.
             Implementation of a tiny and simple
             micro kernel for teaching purposes.
 
    For further information, please visit http://www.tik.ee.ethz.ch/~topsy
 
    This software is provided under the terms of the GNU General Public
    Licence. A full copy of the GNU GPL is provided in the file COPYING
    found in the development root of Topsy.
*/
/*
 
    File:                  $Source: /home/ruf/cvs_Topsy/cvs/Topsy/Net/Modules/UDP/NetUDPChecksum.h,v $
    Author(s):
    Affiliation:           ETH Zuerich, TIK
    Version:               $Revision: 2922 $
    Creation Date:
    Last Date of Change:   $Date: 2007-03-19 17:48:52 +0100 (Mon, 19 Mär 2007) $      by: $Author: baderma $
 
 
    $Log: NetUDPChecksum.h,v $
    Revision 1.4  2001/01/26 18:03:47  cjeker
    todays work, but it still produces some wierd errors
 
    Revision 1.3  2001/01/26 08:15:54  cjeker
    *** empty log message ***
 
    Revision 1.2  2001/01/25 20:25:30  blutz
    well I did a lot of work on Net/Modules and changed some NetAttr defines
 
    Revision 1.1  2001/01/25 18:24:52  blutz
    moved some files and working on UDP Down
 
    Revision 1.1  2001/01/25 09:18:57  blutz
    Created NetUDP Modules and started working on them...
 
 
*/
#ifndef _NET_UDP_CHECKSUM_H_
#define _NET_UDP_CHECKSUM_H_


#include "NetHAL.h"
#include "NetBuf.h"
#include "NetAttr.h"


typedef struct netudp_pseudo_header_t
{
  NetBufHdr netbuf;

  u8 saddr0;
  u8 saddr1;
  u8 saddr2;
  u8 saddr3;

  u8 daddr0;
  u8 daddr1;
  u8 daddr2;
  u8 daddr3;

  u8 zero;
  u8 protocol;
  u16 len;
}
netudp_pseudo_header;

// function prototypes
int netudpChecksum(NetBuf buf, NetAttrs attrs, int len);


#endif
