Patch from Arnaldo Carvalho de Melo.
* NET-3 Networking Distribution for the LINUX operating
* system.
*
* NET-3 Networking Distribution for the LINUX operating
* system.
*
- * Version: $Id: arp.c,v 1.19 2000/12/19 00:34:27 ecki Exp $
+ * Version: $Id: arp.c,v 1.20 2001/04/08 17:05:05 pb Exp $
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
*990101 {1.85} Bernd Eckenfels fixed usage and return codes
*990105 (1.86) Phil Blundell: don't ignore EINVAL in arp_set
*991121 (1.87) Bernd Eckenfels: yes --device has a mandatory arg
*990101 {1.85} Bernd Eckenfels fixed usage and return codes
*990105 (1.86) Phil Blundell: don't ignore EINVAL in arp_set
*991121 (1.87) Bernd Eckenfels: yes --device has a mandatory arg
+ *010404 (1.88) Arnaldo Carvalho de Melo: use setlocale
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
#define FEATURE_ARP
#include "lib/net-features.h"
#define FEATURE_ARP
#include "lib/net-features.h"
-char *Release = RELEASE, *Version = "arp 1.87 (1999-11-21)";
+char *Release = RELEASE, *Version = "arp 1.88 (2001-04-04)";
int opt_n = 0; /* do not resolve addresses */
int opt_N = 0; /* use symbolic names */
int opt_n = 0; /* do not resolve addresses */
int opt_N = 0; /* use symbolic names */
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
*960218 {1.96} Bernd Eckenfels : netinet/in.h added
*980629 {1.97} Arnaldo Carvalho de Melo : gettext instead of catgets for i18n
*20000213 {1.99} Arnaldo Carvalho de Melo : fixed some i18n strings
*960218 {1.96} Bernd Eckenfels : netinet/in.h added
*980629 {1.97} Arnaldo Carvalho de Melo : gettext instead of catgets for i18n
*20000213 {1.99} Arnaldo Carvalho de Melo : fixed some i18n strings
+ *20010404 {1.100} Arnaldo Carvalho de Melo: use setlocale
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
#include <netdnet/dn.h>
#endif
#include <netdnet/dn.h>
#endif
-char *Release = RELEASE, *Version = "hostname 1.99 (2000-02-13)";
+char *Release = RELEASE, *Version = "hostname 1.100 (2001-04-14)";
static char *program_name;
static int opt_v;
static char *program_name;
static int opt_v;
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
- * Version: $Id: ifconfig.c,v 1.46 2001/04/01 14:50:24 pb Exp $
+ * Version: $Id: ifconfig.c,v 1.47 2001/04/08 17:05:05 pb Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
* 10/1998 - Andi Kleen. Use interface list primitives.
* 20001008 - Bernd Eckenfels, Patch from RH for setting mtu
* (default AF was wrong)
* 10/1998 - Andi Kleen. Use interface list primitives.
* 20001008 - Bernd Eckenfels, Patch from RH for setting mtu
* (default AF was wrong)
+ * 20010404 - Arnaldo Carvalho de Melo, use setlocale
*/
#define DFLT_AF "inet"
*/
#define DFLT_AF "inet"
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
/* Dummy header for libintl.h */
#if I18N
/* Dummy header for libintl.h */
#if I18N
#undef __OPTIMIZE__
#include <libintl.h>
#define _(String) gettext((String))
#undef __OPTIMIZE__
#include <libintl.h>
#define _(String) gettext((String))
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*
+ * Changes: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
+ * 20010404 - use setlocale
+ *
#define DELADDR 2
char *Release = RELEASE,
#define DELADDR 2
char *Release = RELEASE,
- *Version = "ipmaddr 1.0",
+ *Version = "ipmaddr 1.1",
*Signature = "Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>";
static void version(void)
*Signature = "Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>";
static void version(void)
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
* Rani Assaf <rani@magic.metawire.com> 980930: do not allow key for ipip/sit
* Bernd Eckenfels 990715: add linux/types.h (not clean but solves missing __u16
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
* Rani Assaf <rani@magic.metawire.com> 980930: do not allow key for ipip/sit
* Bernd Eckenfels 990715: add linux/types.h (not clean but solves missing __u16
+ * Arnaldo Carvalho de Melo 20010404: use setlocale
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
* NET-3 Networking Distribution for the LINUX operating
* system.
*
* NET-3 Networking Distribution for the LINUX operating
* system.
*
- * Version: $Id: netstat.c,v 1.41 2001/04/01 15:04:43 pb Exp $
+ * Version: $Id: netstat.c,v 1.42 2001/04/08 17:05:05 pb Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* Tuan Hoang added IGMP support for IPv4 and IPv6
*
*990420 {1.38} Tuan Hoang removed a useless assignment from igmp_do_one()
* Tuan Hoang added IGMP support for IPv4 and IPv6
*
*990420 {1.38} Tuan Hoang removed a useless assignment from igmp_do_one()
+ *20010404 {1.39} Arnaldo Carvalho de Melo - use setlocale
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
#define FEATURE_NETSTAT
#include "lib/net-features.h"
#define FEATURE_NETSTAT
#include "lib/net-features.h"
-char *Release = RELEASE, *Version = "netstat 1.40 (2001-04-01)", *Signature = "Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others";
+char *Release = RELEASE, *Version = "netstat 1.41 (2001-04-08)", *Signature = "Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others";
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
* that maintains the kernel's RARP cache. It is derived
* from Fred N. van Kempen's arp command.
*
* that maintains the kernel's RARP cache. It is derived
* from Fred N. van Kempen's arp command.
*
- * Version: $Id: rarp.c,v 1.5 1999/01/05 20:53:02 philip Exp $
+ * Version: $Id: rarp.c,v 1.6 2001/04/08 17:05:05 pb Exp $
*
* Usage: rarp -d hostname Delete entry
* rarp -s hostname ethernet_address Add entry
*
* Usage: rarp -d hostname Delete entry
* rarp -s hostname ethernet_address Add entry
* Rewritten: Phil Blundell <Philip.Blundell@pobox.com> 1997-08-03
* gettext instead of catgets: Arnaldo Carvalho de Melo <acme@conectiva.com.br> 1998-06-29
* 1998-01-01 Bernd Eckenfels reorganised usage()
* Rewritten: Phil Blundell <Philip.Blundell@pobox.com> 1997-08-03
* gettext instead of catgets: Arnaldo Carvalho de Melo <acme@conectiva.com.br> 1998-06-29
* 1998-01-01 Bernd Eckenfels reorganised usage()
+ * 2001-04-04 Arnaldo Carvalho de Melo - use setlocale
static char no_rarp_message[] = N_("This kernel does not support RARP.\n");
static char no_rarp_message[] = N_("This kernel does not support RARP.\n");
-static char version_string[] = RELEASE "\nrarp 1.02 (1998-06-30)\n";
+static char version_string[] = RELEASE "\nrarp 1.03 (2001-04-04)\n";
static struct hwtype *hardware = NULL;
static struct hwtype *hardware = NULL;
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
* route This file contains an implementation of the command
* that manages the IP routing table in the kernel.
*
* route This file contains an implementation of the command
* that manages the IP routing table in the kernel.
*
- * Version: $Id: route.c,v 1.7 2000/12/19 00:26:16 ecki Exp $
+ * Version: $Id: route.c,v 1.8 2001/04/08 17:05:05 pb Exp $
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
*960823 {x.xx} Frank Strauss: INET6 stuff
*980629 {1.95} Arnaldo Carvalho de Melo: gettext instead of catgets
*990101 {1.96} Bernd Eckenfels: fixed usage and FLAG_CACHE Output
*960823 {x.xx} Frank Strauss: INET6 stuff
*980629 {1.95} Arnaldo Carvalho de Melo: gettext instead of catgets
*990101 {1.96} Bernd Eckenfels: fixed usage and FLAG_CACHE Output
+ *20010404 {1.97} Arnaldo Carvalho de Melo: use setlocale
*
*/
#include <sys/types.h>
*
*/
#include <sys/types.h>
#define FEATURE_ROUTE
#include "lib/net-features.h" /* needs some of the system includes above! */
#define FEATURE_ROUTE
#include "lib/net-features.h" /* needs some of the system includes above! */
-char *Release = RELEASE, *Version = "route 1.96 (1999-01-01)";
+char *Release = RELEASE, *Version = "route 1.97 (2001-04-04)";
int opt_n = 0; /* numerical output flag */
int opt_v = 0; /* debugging output flag */
int opt_n = 0; /* numerical output flag */
int opt_v = 0; /* debugging output flag */
char *progname;
int options;
#if I18N
char *progname;
int options;
#if I18N
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif