I'm aware of someone hacked up samba years ago to run netbeui on freebsd...
I looked at the samba code about 8 years ago for work with the idea of being able to run netbeui -- I was impressed someone got it to work -- tcp was more heavily embedded in stuff then I would have wanted to see (not sure about now). Do you really want to run netbeui? marty
