[Ffmpeg-devel] [RFC] AF_INET or PF_INET

Måns Rullgård mans
Thu Feb 22 14:17:06 CET 2007


Alex Beregszaszi said:
> Hi,
>
> I know the above defines are the same on sane systems. FFmpeg uses the
> former in some places, and the latter in others.
>
> Can we make this consistent?
>
> Which should we choose?
>
> The winsock (sic) manuals prefer PF_INET, however as I see we need a to
> define PF_INET=AF_INET on BeOS, and also the IPv6 code uses AF_INET6 -
> not sure whether there is PF_INET6. Thus I would stick to AF_INET* and
> avoid PF_*.

POSIX only talks about AF_*.  The PF_* family is old BSD, nowadays
defined only for compatibility.

Please change all uses of PF_* to AF_.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list