X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/85ef2ce64f0cc31a063fccea69fdcc7281d51548..f8e139db970666e906db30417763f81e2ae5e801:/binipstuff.pas?ds=sidebyside diff --git a/binipstuff.pas b/binipstuff.pas old mode 100755 new mode 100644 index 70ac401..675b03e --- a/binipstuff.pas +++ b/binipstuff.pas @@ -86,12 +86,19 @@ type - {$ifdef ipv6} + {$ifdef ipv6} {$ifdef ver1_0} cuint16=word; cuint32=dword; sa_family_t=word; + TInetSockAddr6 = packed record + sin6_family: word; + sin6_port: word; + sin6_flowinfo: uint32; + sin6_addr: tin6_addr; + sin6_scope_id: uint32; + end; {$endif} {$endif} TinetSockAddrv = packed record @@ -317,7 +324,7 @@ end; { IPv6 address binary to/from string conversion routines -written by beware (steendijk at xs4all dot nl) +written by beware - implementation does not depend on other ipv6 code such as the tin6_addr type, the parameter can also be untyped. @@ -532,8 +539,12 @@ end; const biniplist_prefix='bipl'#0; - biniplist_prefixlen=length(biniplist_prefix); + //fpc 1.0.x doesn't seem to like use of length function in a constant + //definition + //biniplist_prefixlen=length(biniplist_prefix); + biniplist_prefixlen=5; + function biniplist_new:tbiniplist; begin result := biniplist_prefix;