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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [netinet/] [ip.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef _NETINET_IP_H
2
#define _NETINET_IP_H
3
 
4
#include <features.h>
5
#include <netinet/in.h>
6
#include <linux/ip.h>
7
 
8
#ifdef _BSD_SOURCE
9
 
10
/*
11
 *      BSD has the following structure
12
 */
13
 
14
struct ip
15
{
16
#if defined(__LITTLE_ENDIAN_BITFIELD)
17
        __u8    ip_hl:4,
18
                ip_v:4;
19
#else
20
        __u8    ip_v:4,
21
                ip_hl:4;
22
#endif
23
#define IPVERSION       4
24
        __u8    ip_tos;
25
        __u16   ip_len;
26
        __u16   ip_id;
27
        __u16   ip_off;
28
        __u8    ip_ttl;
29
        __u8    ip_p;
30
        __u16   ip_csum;
31
        struct  in_addr ip_src,ip_dst;
32
};
33
 
34
#define IP_DF   0x4000          /* dont fragment flag */
35
#define IP_MF   0x2000          /* more fragments flag */
36
 
37
#endif
38
 
39
#endif /* _NETINET_IP_H */

powered by: WebSVN 2.1.0

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