Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

Location:
vendor/current/source4/echo_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/echo_server/echo_server.c

    r740 r988  
    2626/* This defines task_server_terminate */
    2727#include "smbd/process_model.h"
    28 /* We get load_interfaces from here */
     28/* We get load_interface_list from here */
    2929#include "socket/netif.h"
    3030/* NTSTATUS-related stuff */
     
    3232/* tsocket-related functions */
    3333#include "lib/tsocket/tsocket.h"
     34#include "libds/common/roles.h"
     35
     36NTSTATUS server_service_echo_init(void);
    3437
    3538/* Structure to hold an echo server socket */
     
    156159        struct echo_udp_call *call = tevent_req_callback_data(subreq,
    157160                                     struct echo_udp_call);
    158         ssize_t ret;
    159161        int sys_errno;
    160162
    161         ret = tdgram_sendto_queue_recv(subreq, &sys_errno);
     163        tdgram_sendto_queue_recv(subreq, &sys_errno);
    162164
    163165        /*
     
    196198                                                &echo_socket->local_address);
    197199        if (ret != 0) {
    198                 status = map_nt_error_from_unix(errno);
     200                status = map_nt_error_from_unix_common(errno);
    199201                return status;
    200202        }
     
    211213                                     &echo_udp_socket->dgram);
    212214        if (ret != 0) {
    213                 status = map_nt_error_from_unix(errno);
     215                status = map_nt_error_from_unix_common(errno);
    214216                DEBUG(0, ("Failed to bind to %s:%u UDP - %s\n",
    215217                          address, port, nt_errstr(status)));
     
    264266        model_ops = process_model_startup("single");
    265267        if (model_ops == NULL) {
    266                 DEBUG(0, ("Can't find 'single' proces model_ops\n"));
     268                DEBUG(0, ("Can't find 'single' process model_ops\n"));
    267269                return NT_STATUS_INTERNAL_ERROR;
    268270        }
    269271
    270         num_interfaces = iface_count(ifaces);
     272        num_interfaces = iface_list_count(ifaces);
    271273
    272274        for(i=0; i<num_interfaces; i++) {
    273                 const char *address = talloc_strdup(tmp_ctx, iface_n_ip(ifaces, i));
     275                const char *address = talloc_strdup(tmp_ctx, iface_list_n_ip(ifaces, i));
    274276
    275277                status = echo_add_socket(echo, model_ops, "echo", address, ECHO_SERVICE_PORT);
     
    302304                                      "for domain members", false);
    303305                return;
    304         case ROLE_DOMAIN_CONTROLLER:
     306        case ROLE_ACTIVE_DIRECTORY_DC:
    305307                /* Yes, we want to run the echo server */
    306308                break;
    307309        }
    308310
    309         load_interfaces(task, lpcfg_interfaces(task->lp_ctx), &ifaces);
    310 
    311         if (iface_count(ifaces) == 0) {
     311        load_interface_list(task, task->lp_ctx, &ifaces);
     312
     313        if (iface_list_count(ifaces) == 0) {
    312314                task_server_terminate(task,
    313315                                      "echo: No network interfaces configured",
  • vendor/current/source4/echo_server/wscript_build

    r740 r988  
    66        init_function='server_service_echo_init',
    77        deps='samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET',
    8         local_include=False
     8        local_include=False,
     9        enabled=bld.AD_DC_BUILD_IS_ENABLED()
    910        )
Note: See TracChangeset for help on using the changeset viewer.