~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to packages/base/libc/netherneth.inc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2004-08-12 16:29:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040812162937-moo8ulvysp1ln771
Tags: 1.9.4-5
fp-compiler: needs ld, adding dependency on binutils.  (Closes: #265265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
type
 
4
   Pether_addr = ^ether_addr;
 
5
   ether_addr = record
 
6
        ether_addr_octet : array[0..(ETH_ALEN)-1] of u_int8_t;
 
7
     end;
 
8
 
 
9
   Pether_header = ^ether_header;
 
10
   ether_header = record
 
11
        ether_dhost : array[0..(ETH_ALEN)-1] of u_int8_t;
 
12
        ether_shost : array[0..(ETH_ALEN)-1] of u_int8_t;
 
13
        ether_type : u_int16_t;
 
14
     end;
 
15
 
 
16
 
 
17
const
 
18
   ETHERTYPE_PUP = $0200;
 
19
   ETHERTYPE_IP = $0800;
 
20
   ETHERTYPE_ARP = $0806;
 
21
   ETHERTYPE_REVARP = $8035;
 
22
   ETHER_ADDR_LEN = ETH_ALEN;
 
23
   ETHER_TYPE_LEN = 2;
 
24
   ETHER_CRC_LEN = 4;
 
25
   ETHER_HDR_LEN = ETH_HLEN;
 
26
   ETHER_MIN_LEN = ETH_ZLEN + ETHER_CRC_LEN;
 
27
   ETHER_MAX_LEN = ETH_FRAME_LEN + ETHER_CRC_LEN;
 
28
 
 
29
function ETHER_IS_VALID_LEN(foo : cardinal) : boolean;
 
30
 
 
31
 
 
32
const
 
33
   ETHERTYPE_TRAIL = $1000;
 
34
   ETHERTYPE_NTRAILER = 16;
 
35
   ETHERMTU = ETH_DATA_LEN;
 
36
   ETHERMIN = (ETHER_MIN_LEN - ETHER_HDR_LEN) - ETHER_CRC_LEN;
 
37
 
 
38
{ ---------------------------------------------------------------------
 
39
    Borland compatibility types
 
40
  ---------------------------------------------------------------------}
 
41
 
 
42
Type  
 
43
  TEtherAddr = ether_addr;
 
44
  PEtherAddr = ^TEtherAddr;
 
45
    
 
46
    
 
 
b'\\ No newline at end of file'