Skip to content
Snippets Groups Projects
  • Alessandro Rubini's avatar
    general: add missing copyright notes. · 5e844431
    Alessandro Rubini authored
    
    This commit fixes all copyright notes, using "git blame" as a
    reference.  For simple files I just added a 2-lines boilerplate about
    being WR and GPL.
    
    Some parts I left untouched:
    
      trivial-init and related files (unclear to me what this is,
      and pf-microcode.h is magic binary pfilter values).
    
      tools/lm32-etheruart: I don't know what this is and who the author is
    
      libsdbfs: this comes from another repo and I'd better not change it
    
      sfp_lib.h and hal_shmem.h: I lost track about the origin of this,
      among the several packages.
    
    Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
    5e844431
ipv4.h 607 B
/*
 * This work is part of the White Rabbit project
 *
 * Released according to the GNU GPL, version 2 or any later version.
 */
#ifndef IPV4_H
#define IPV4_H

#include <inttypes.h>

void ipv4_init(void);
void ipv4_poll(void);

/* Internal to IP stack: */
unsigned int ipv4_checksum(unsigned short *buf, int shorts);

void arp_init(void);
void arp_poll(void);

extern int needIP;
void setIP(unsigned char *IP);
void getIP(unsigned char *IP);

int process_icmp(uint8_t * buf, int len);
int process_bootp(uint8_t * buf, int len);	/* non-zero if IP was set */
int send_bootp(uint8_t * buf, int retry);

#endif