OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-alpha/] [ipsum.h] - Blame information for rev 1775

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef __ASM_IPSUM_H
2
#define __ASM_IPSUM_H
3
 
4
/*
5
 *      This routine computes a UDP checksum.
6
 */
7
extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr)
8
{
9
        /* uhh.. eventually */
10
        return 0;
11
}
12
 
13
/*
14
 *      This routine computes a TCP checksum.
15
 */
16
extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr)
17
{
18
        /* uhh.. eventually */
19
        return 0;
20
}
21
 
22
 
23
/*
24
 * This routine does all the checksum computations that don't
25
 * require anything special (like copying or special headers).
26
 */
27
 
28
extern inline unsigned short ip_compute_csum(unsigned char * buff, int len)
29
{
30
        /* uhh.. eventually */
31
        return 0;
32
}
33
 
34
/*
35
 *      This is a version of ip_compute_csum() optimized for IP headers, which
36
 *      always checksum on 4 octet boundaries.
37
 */
38
 
39
static inline unsigned short ip_fast_csum(unsigned char * buff, int wlen)
40
{
41
        /* uhh.. eventually */
42
        return 0;
43
}
44
 
45
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.