BSD - Linux ?'s

BSD - Linux ?'s

Post by Matt Falens » Thu, 29 Dec 1994 05:47:22



What are the differences btw Linux & FreeBSD?  Which would be better?
where can BSD be obtained? what pros/cons with BSD?  I am an avid
Linux fan, but a friend of mine is considering BSD, and I'm trying
to swing him to Linux... Any info on BSD would be appreciated, since
I know nothing about it!

Matt

--
 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
o My opinions are just that - MINE, MINE MINE!! You can't have them !! o
o                                                                      o
o Matt Falenski  Westmoreland County Community College  Data Center WS o
o                                                                      o
o Don't open your eyes, you won't like what you see.  -  N I N         o
 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

 
 
 

BSD - Linux ?'s

Post by john dyso » Thu, 29 Dec 1994 06:57:17



>What are the differences btw Linux & FreeBSD?  Which would be better?
>where can BSD be obtained? what pros/cons with BSD?  I am an avid
>Linux fan, but a friend of mine is considering BSD, and I'm trying
>to swing him to Linux... Any info on BSD would be appreciated, since
>I know nothing about it!

FreeBSD is a derivative of the BSD 4.4Lite distribution from Berkeley.  It
uses the proven Berkeley networking code and is fairly robust (an earlier
version of FreeBSD is being used on a very high volume FTP site --
up to 500 sessions.)  Most of the communications about FreeBSD are

info about that stuff.  The OS stands up to heavy loads and works "ok"
in 4MB (but slowly using the GCC 2.6.2 compiler.)  Most of the disadvantage
of FreeBSD is that even though the user base is large -- Linux has a
much larger user base.  FreeBSD is not going away soon and it is
gaining interest from parties that need a robust OS.  You will not
generally go wrong with either OS (FreeBSD or Linux).  Get in
contact with me or Jordan by email, and we can answer more
specific questions.  Each OS has warts, and I have my personal
opinion on which is better.  BTW, both FreeBSD and Linux are available
at freebsd.cdrom.com, wcarchive.cdrom.com or ftp.freebsd.org (all the
same machine..., FreeBSD V1.1.5 running typically 250-450 users with
peaks of 500).



 
 
 

1. 'sockaddr' type versus 'osockaddr', under linux & bsd... help!

I'm trying to port back to bsd a linux daemon that was ported to linux,
years ago.
I don't understand the difference between sockaddr and osockaddr
(apart from the fact that sockaddr begins with the length ... that's for
the structure difference ...). When should I use one or the other ?

Under linux (2.0.29),  osockaddr, used in the program is defined to be
sockaddr, which is defined as
struct sockaddr
{
        unsigned short  sa_family;      /* address family, AF_xxx       */
        char            sa_data[14];    /* 14 bytes of protocol address */

Under bsd (netbsd), it appears that osockaddr is exactly the same thing
as below, but that sockaddr is

struct sockaddr {
        u_char  sa_len;                 /* total length */
        u_char  sa_family;              /* address family */
        char    sa_data[14];            /* actually longer; address value */

The problem is that I can't use the short version all the time because
all socket functions (connect, sendto, bind ...) require a 'sockaddr *'.

Is it sufficient to use always the 'short' version (sockaddr under linux and
osockaddr under bsd) and to typecast for socket system calls ?
Probably not, because it seems that the 'old' protocol requires use of
htons and ntohs for sa_family... I guess it because old is 'u_char' and
new is 'unsigned short'.

Please help getting me out of this *mess* .... Thanks !

Please cc: by mail and post to the newsgroup. Thanks.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

2. Sendmail mail sizes

3. News Article: BSD '3 times as popular as desktop Linux' - Apple

4. new unix permissions

5. Does the 'linux' command change how *BSD runs?

6. read-file-system prob.

7. BSD 'adventure' for Linux

8. annex's

9. BSD, BSD or BSD?

10. kermit help: 'make bsd' and 'kermit vs watchdog'

11. BSD, BSD or BSD?