summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_winsproxy.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert all uses of uint8/16/32 to _t in nmbd and the include file.Richard Sharpe2015-05-011-1/+1
| | | | | Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-nmbd: move nmbd proto out of main proto.hGünther Deschner2010-08-261-0/+1
| | | | Guenther
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r14007: Coverity bug CID #197. Don't compare against 0, weJeremy Allison2007-10-101-1/+1
| | | | | | mean the ttl instead. Jeremy. (This used to be commit ccb2a52e29de7e2847ccd93aa99236f63202a4af)
* r13892: Doh ! My bugfix had a bug :-). Spotted by Willi Mann <willi@wm1.at>,Jeremy Allison2007-10-101-2/+2
| | | | | | if rrec can be null make sure we *never* deref it. Jeremy. (This used to be commit d6d7a5ac62b6ee08e365c5982302b1d8dc69a78f)
* r13880: Fix coverity bug CID #97, mem leak on error path.Jeremy Allison2007-10-101-4/+4
| | | | | Jeremy. (This used to be commit 0dc37dd2d85d59e7287cebcb7019194cf6754074)
* r13875: Fix coverity bug #148. Deref of rrec before NULL check.Jeremy Allison2007-10-101-2/+7
| | | | | Jeremy. (This used to be commit 0f1dffb2f2ce5ace1b3216f578ab115c976624c7)
* r12107: Move to a tdb-based wins database. At the moment we stillJeremy Allison2007-10-101-5/+17
| | | | | | | use it as though it were an in-memory db and dump out to a flat file every 2 mins, but that can now change. Jeremy. (This used to be commit a342681792724c1ae8561ba8d352c4ee6e2a5332)
* r5717: BUG 2215: horrible code in nmbd_winsproxy.c; gcc folks at redhat ↵Gerald Carter2007-10-101-4/+7
| | | | | | claim its in violation of the C spec. It's so horrible I believe them (This used to be commit fa7eb5693314efb14d42a739f8006ddf8d41e9d5)
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-2/+2
| | | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
* Use "unix netbios name" type unstring - 64 bytes long to manipulate netbiosJeremy Allison2004-03-151-2/+2
| | | | | | | names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to expand to utf8 size on read. Jeremy. (This used to be commit 834d816caf9cd6318da00febde50d9233469dac2)
* Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com ↵Jeremy Allison2004-03-131-4/+4
| | | | | | | | | | | (MORIYAMA Masayuki). Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name when represented in dos charset (ie. cp932). So go back to using fstrings for these but translate into nstrings (ie. 16 byte length values) for transport on the wire. Jeremy. (This used to be commit b4ea493599ab414f7828b83f40a5a8b43479ff64)
* Fix the character set handling properly in nmbd. Also fix bug whereJeremy Allison2003-08-271-134/+126
| | | | | | | | iconv wasn't re-initialised on reading of "charset" parameters. This caused workgroup name to be set incorrectly if it contained an extended character. Jeremy. (This used to be commit 84ae44678a6c59c999bc1023fdd9b7ad87f4ec18)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* move to SAFE_FREE()Simo Sorce2001-09-171-3/+3
| | | | (This used to be commit 1446a1562b1c618c023b056f476e26da7ee3d532)
* Modified auto alignment of ud[] struct on stack to be declared as anJeremy Allison2000-01-281-2/+2
| | | | | | | array of pointers. This should cause alignment on a correct boundary.. Spotted by Darren Reed <darrenr@telnetmedia.com>. Jeremy. (This used to be commit 91f4d0675333d7c5d7bb5ff077faaf83e1fd9bfe)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-1/+1
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)
* Removed acconfig.h configure configure.in include/config.h.in: Made ↵Jeremy Allison1998-11-141-3/+3
| | | | | | | | | | smbwrapper not made by default. nmbd*: Changed all calls to namestr() to nmbd_namestr() to fix broken FreeBSD include file problem...sigh. Jeremy. (This used to be commit 9ee8f39aed8772a05c203161b4ae6b7d90d67481)
* added some defensive programming to nmbd. This mostly means zeroingAndrew Tridgell1998-08-301-0/+1
| | | | | | | | | areas of memory before freeing them. While doing this I also found a couple of real bugs. In two places we were freeing some memory that came from the stack, which leads to a certain core dump on many sytems. (This used to be commit c5e5c25c854e54f59291057ba47c4701b5910ebe)
* The function add_name_to_subnet(), in file nmbd_namelistdb.c, returns aChristopher R. Hertel1998-06-231-2/+3
| | | | | | | | | | | | | | | pointer to the newly constructed name list entry. In most cases, this return value is ignored. The two exceptions are in asyncdns.c and nmbd_winsproxy.c. Most of the calls which ignored the return value were not cast to void, so I added the cast. This helped me sort out which calls really did use the return value. I also discovered one case, in nmbd_winsserver.c, in which the return value was being stored to a variable which, in turn, was not used. Chris -)----- (This used to be commit 384122d165ed6d5d211a29e5a63a63bf5cd82c75)
* This is a first step toward moving long namelists into a database. IChristopher R. Hertel1998-06-091-5/+9
| | | | | | | | | | | | split the name_record structure into pieces. The goal is that the key (the name) be separate from the data associated with the key. Databases such as gdbm store information in [key,content] pairs. There is no functional change in with this update. It's just a step in the direction that Jeremy and I have been discussing. Chris -)----- (This used to be commit e420a4bd7d368a0e910893400fb7b46ab8694a08)
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-221-1/+1
| | | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy. (This used to be commit b9c16977231efb274e08856f7f3f4408dad6d96c)
* includes.h: Added FreeBSD 3.x fixes. Added HPUX10.x fixes.Jeremy Allison1998-01-071-1/+1
| | | | | | | | | | | interface.c: Added netmask fix. nmbd_nameregister.c: Fixed unitialised variable warnings. nmbd_winsproxy.c: Fixed unitialised variable warnings. nmbd_winsserver.c: Fixed DEC warnings. print_svid.c: Fixed DEC warnings. printing.c: Added LPRng fixes. Jeremy. (This used to be commit 28aff043c4a3693a0c20e87c7ce11eb4bf285b78)
* nmbd_incomingdgrams.c: Fix bug with Syntax 5.1 servers reported by SGI whereJeremy Allison1997-12-161-1/+24
| | | | | | | | | | | | | they do host announcements to LOCAL_MASTER_BROWSER_NAME<00> rather than WORKGROUP<1d>. nmbd_incomingrequests.c: Deal with WINS_PROXY_NAME issues - don't reply with that name if it's the same broadcast net. nmbd_serverlistdb.c: Stopped writing "Unknown" for local master browsers we don't know. nmbd_winsproxy.c: Deal with WINS_PROXY_NAME issues - don't reply with that name if it's the same broadcast net. Jeremy. (This used to be commit 5adfff94c9020bd57f84ccbc8fba5b1d8d1615af)
* This is it ! The mega-merge of the JRA_NMBD_REWRITE branchJeremy Allison1997-12-131-0/+195
back into the main tree. For the cvs logs of all the files starting nmbd_*.c, look in the JRA_NMBD_REWRITE branch. That branch has now been discontinued. Jeremy. (This used to be commit d80b0cb645f81d16734929a0b27a91c6650499bb)