Diff for /embedaddon/dnsmasq/src/outpacket.c between versions 1.1.1.2 and 1.1.1.4

version 1.1.1.2, 2014/06/15 16:31:38 version 1.1.1.4, 2021/03/17 00:56:46
Line 1 Line 1
/* dnsmasq is Copyright (c) 2000-2014 Simon Kelley/* dnsmasq is Copyright (c) 2000-2021 Simon Kelley
   
    This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
Line 29  void end_opt6(int container) Line 29  void end_opt6(int container)
    PUTSHORT(len, p);     PUTSHORT(len, p);
 }  }
   
   void reset_counter(void)
   {
     /* Clear out buffer when starting from beginning */
     if (daemon->outpacket.iov_base)
       memset(daemon->outpacket.iov_base, 0, daemon->outpacket.iov_len);
    
     save_counter(0);
   }
   
 int save_counter(int newval)  int save_counter(int newval)
 {  {
   int ret = outpacket_counter;    int ret = outpacket_counter;
     
   if (newval != -1)    if (newval != -1)
     outpacket_counter = newval;      outpacket_counter = newval;
   

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.4


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