Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108569111
D40441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40441.diff
View Options
diff --git a/sbin/ifconfig/af_inet6.c b/sbin/ifconfig/af_inet6.c
--- a/sbin/ifconfig/af_inet6.c
+++ b/sbin/ifconfig/af_inet6.c
@@ -433,8 +433,6 @@
{
struct in6_px *px = sin6tab_nl[which];
- newaddr &= 1;
-
px->set = true;
px->plen = 128;
if (which == ADDR) {
@@ -546,8 +544,6 @@
struct addrinfo hints, *res;
int error = -1;
- newaddr &= 1;
-
sin->sin6_len = sizeof(*sin);
if (which != MASK)
sin->sin6_family = AF_INET6;
diff --git a/sbin/ifconfig/ifconfig.h b/sbin/ifconfig/ifconfig.h
--- a/sbin/ifconfig/ifconfig.h
+++ b/sbin/ifconfig/ifconfig.h
@@ -252,7 +252,6 @@
extern ifconfig_handle_t *lifh;
extern struct ifreq ifr;
extern int allmedia;
-extern int newaddr;
extern int exit_code;
extern char *f_inet, *f_inet6, *f_ether, *f_addr;
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -101,7 +101,7 @@
static int setmask;
static int doalias;
static int clearaddr;
-int newaddr = 1;
+static int newaddr = 1;
int exit_code = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 11:13 AM (3 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16194829
Default Alt Text
D40441.diff (1 KB)
Attached To
Mode
D40441: ifconfig: remove 'newaddr' global variable
Attached
Detach File
Event Timeline
Log In to Comment