Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/nbt_server/interfaces.c

    r414 r745  
    3030#include "lib/socket/netif.h"
    3131#include "param/param.h"
     32#include "lib/util/util_net.h"
    3233
    3334
     
    186187
    187188                /* listen for broadcasts on port 137 */
    188                 bcast_nbtsock = nbt_name_socket_init(iface, nbtsrv->task->event_ctx, lp_iconv_convenience(nbtsrv->task->lp_ctx));
     189                bcast_nbtsock = nbt_name_socket_init(iface, nbtsrv->task->event_ctx);
    189190                if (!bcast_nbtsock) {
    190191                        talloc_free(iface);
     
    193194
    194195                bcast_address = socket_address_from_strings(bcast_nbtsock, bcast_nbtsock->sock->backend_name,
    195                                                             bcast, lp_nbt_port(lp_ctx));
     196                                                            bcast, lpcfg_nbt_port(lp_ctx));
    196197                if (!bcast_address) {
    197198                        talloc_free(iface);
     
    202203                if (!NT_STATUS_IS_OK(status)) {
    203204                        DEBUG(0,("Failed to bind to %s:%d - %s\n",
    204                                  bcast, lp_nbt_port(lp_ctx), nt_errstr(status)));
     205                                 bcast, lpcfg_nbt_port(lp_ctx), nt_errstr(status)));
    205206                        talloc_free(iface);
    206207                        return status;
     
    212213
    213214        /* listen for unicasts on port 137 */
    214         iface->nbtsock = nbt_name_socket_init(iface, nbtsrv->task->event_ctx,
    215                                               lp_iconv_convenience(nbtsrv->task->lp_ctx));
     215        iface->nbtsock = nbt_name_socket_init(iface, nbtsrv->task->event_ctx);
    216216        if (!iface->nbtsock) {
    217217                talloc_free(iface);
     
    221221        unicast_address = socket_address_from_strings(iface->nbtsock,
    222222                                                      iface->nbtsock->sock->backend_name,
    223                                                       bind_address, lp_nbt_port(lp_ctx));
     223                                                      bind_address, lpcfg_nbt_port(lp_ctx));
    224224
    225225        status = socket_listen(iface->nbtsock->sock, unicast_address, 0, 0);
    226226        if (!NT_STATUS_IS_OK(status)) {
    227227                DEBUG(0,("Failed to bind to %s:%d - %s\n",
    228                          bind_address, lp_nbt_port(lp_ctx), nt_errstr(status)));
     228                         bind_address, lpcfg_nbt_port(lp_ctx), nt_errstr(status)));
    229229                talloc_free(iface);
    230230                return status;
     
    284284        /* if we are allowing incoming packets from any address, then
    285285           we also need to bind to the wildcard address */
    286         if (!lp_bind_interfaces_only(lp_ctx)) {
     286        if (!lpcfg_bind_interfaces_only(lp_ctx)) {
    287287                const char *primary_address;
    288288
     
    294294                } else {
    295295                        primary_address = inet_ntoa(interpret_addr2(
    296                                                         lp_netbios_name(lp_ctx)));
     296                                                        lpcfg_netbios_name(lp_ctx)));
    297297                }
    298298                primary_address = talloc_strdup(tmp_ctx, primary_address);
     
    319319                netmask = talloc_strdup(tmp_ctx, iface_n_netmask(ifaces, i));
    320320
    321                 status = nbtd_add_socket(nbtsrv, lp_ctx, 
     321                status = nbtd_add_socket(nbtsrv, lp_ctx,
    322322                                         address, address, bcast, netmask);
    323323                NT_STATUS_NOT_OK_RETURN(status);
    324324        }
    325325
    326         if (lp_wins_server_list(lp_ctx)) {
     326        if (lpcfg_wins_server_list(lp_ctx)) {
    327327                status = nbtd_add_wins_socket(nbtsrv);
    328328                NT_STATUS_NOT_OK_RETURN(status);
Note: See TracChangeset for help on using the changeset viewer.