[fpc-pascal] Translating c records

Rainer Stratmann rainerstratmann at t-online.de
Wed Apr 24 22:41:04 CEST 2019

struct sockaddr_ll {
     unsigned short sll_family;   
     unsigned short sll_protocol; 
     int            sll_ifindex;  
     unsigned short sll_hatype;   
     unsigned char  sll_pkttype;  
     unsigned char  sll_halen;    
     unsigned char  sll_addr[8];  

 sockaddr_ll = record
  sll_family : word;
  sll_protocol : word;
  sll_ifindex : integer;
  sll_hatype : word;
  sll_pkttype : byte;
  sll_halen : byte;
  sll_addr: array[ 0 .. 7 ] of byte;

Is this correct?

More information about the fpc-pascal mailing list