Diff for /fwsync/patches/sync.c between versions 1.1 and 1.3

version 1.1, 2022/06/22 13:01:55 version 1.3, 2022/08/19 09:42:33
Line 1 Line 1
 /*-  /*-
 * Copyright (c) 2022 Michael Pounov <misho@elwix.org> * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  *   *
    * Copyright (c) 2022 Michael Pounov <misho@elwix.org>, CloudSigma AG
  *   *
 * Redistribution and use in source forms, with and without modification, * Redistribution and use in source and binary forms, with or without
 * are permitted provided that this entire comment appears intact. * modification, are permitted provided that the following conditions
  * are met:
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *   *
 * Redistribution in binary form may occur without any restrictions. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * Obviously, it would be nice if you gave credit where credit is due * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * but requiring it would be too onerous. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *   *
  * This software is provided ``AS IS'' without any warranties of any kind.  
  *  
  * command line interface for sync state of IP firewall   * command line interface for sync state of IP firewall
  */   */
 #include <stdio.h>  #include <stdio.h>
Line 104  ipfw_config_sync(int ac, char **av) Line 117  ipfw_config_sync(int ac, char **av)
                                 if (inet_pton(AF_INET6, host, &cfg->addr[0].ip6.sin6_addr) != 1)                                  if (inet_pton(AF_INET6, host, &cfg->addr[0].ip6.sin6_addr) != 1)
                                         errx(EX_DATAERR, "invalid edge IPv6 address\n");                                          errx(EX_DATAERR, "invalid edge IPv6 address\n");
                 }                  }
        } else if (!strcmp(*av, "collector")) {        } else if (ac && !strcmp(*av, "collector")) {
                 SYNC_SHIFT_ARG;                  SYNC_SHIFT_ARG;
                 if (!ac)                  if (!ac)
                         errx(EX_DATAERR, "missing destination(s) address[,port]\n");                          errx(EX_DATAERR, "missing destination(s) address[,port]\n");

Removed from v.1.1  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>