Update of /cvsroot/blob/blob/include/net
In directory sc8-pr-cvs1:/tmp/cvs-serv27822
Added Files:
arp.h ether.h ip_bits.h
Log Message:
- Header files to Russell's bootp/tftp code. No changes made so far.
--- NEW FILE: arp.h ---
/*
* arp.h
*
* Copyright 1996-2001 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
extern void do_arp (unsigned char *thwaddr, unsigned char *tipaddr);
--- NEW FILE: ether.h ---
/*
* ether.h
*
* Copyright 1996-2001 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
extern int writeether (void *buf, int length);
extern int readether (void *buf, int size);
--- NEW FILE: ip_bits.h ---
/*
* ip_bits.h
*
* Copyright 1996-2001 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#define SIZE_ETHER 14
#define SIZE_IP 20
#define SIZE_UDP 8
#define SIZE_BOOTP 300
#define OFF_ETHER (0)
#define OFF_IP (OFF_ETHER + SIZE_ETHER)
#define OFF_UDP (OFF_IP + SIZE_IP)
#define OFF_BOOTP (OFF_UDP + SIZE_UDP)
#define OFF_TFTP (OFF_UDP + SIZE_UDP)
#define MIN_UDPPKTSIZE (OFF_UDP + SIZE_UDP)
extern unsigned int checksum (unsigned char *ptr, int len, unsigned int cksum);
extern void printip (char *msg, unsigned char *ip);
extern int ipbits_tx (unsigned char *ptr, unsigned int size);
extern int ipbits_rcv (unsigned char *ptr, unsigned int size, unsigned int *dsz, int sport, int dport);
|