Module Name:    src
Committed By:   rillig
Date:           Fri Mar  8 19:45:59 UTC 2024

Modified Files:
        src/sys/net/agr: if_agrioctl.h

Log Message:
ifconfig: fix agr status

Previously, when the interface was collecting, its status was reported
as '<COLLECTING,DISTRIBUTING>', even when it was not distributing.

sbin/ifconfig/agr.c(170): warning: 'b\0DISTRIBUTING\0' overlaps earlier
    'b\0COLLECTING\0' on bit 0 [376]


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/net/agr/if_agrioctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/agr/if_agrioctl.h
diff -u src/sys/net/agr/if_agrioctl.h:1.2 src/sys/net/agr/if_agrioctl.h:1.3
--- src/sys/net/agr/if_agrioctl.h:1.2	Sat Dec 10 23:21:39 2005
+++ src/sys/net/agr/if_agrioctl.h	Fri Mar  8 19:45:59 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_agrioctl.h,v 1.2 2005/12/10 23:21:39 elad Exp $	*/
+/*	$NetBSD: if_agrioctl.h,v 1.3 2024/03/08 19:45:59 rillig Exp $	*/
 
 /*-
  * Copyright (c)2005 YAMAMOTO Takashi,
@@ -64,7 +64,7 @@ struct agrportinfo {
 #define	AGRPORTINFO_BITS \
 	"\177\020" \
 	"b\0COLLECTING\0" \
-	"b\0DISTRIBUTING\0"
+	"b\1DISTRIBUTING\0"
 
 struct agrportlist {
 	int apl_nports;

Reply via email to