1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-23 21:54:32 +00:00

sort the "va" keyword to be in alpha order, some programs use bsearch

noticed by deraadt@
This commit is contained in:
phessler
2025-12-06 10:41:07 +00:00
parent d0cc618721
commit 76bac5ddc6
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.721 2025/12/05 17:48:47 phessler Exp $ */
/* $OpenBSD: parse.y,v 1.722 2025/12/06 10:41:07 phessler Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -6347,12 +6347,12 @@ map_tos(char *s, int *val)
{ "cs6", IPTOS_DSCP_CS6 },
{ "cs7", IPTOS_DSCP_CS7 },
{ "ef", IPTOS_DSCP_EF },
{ "va", IPTOS_DSCP_VA },
{ "inetcontrol", IPTOS_PREC_INTERNETCONTROL },
{ "lowdelay", IPTOS_LOWDELAY },
{ "netcontrol", IPTOS_PREC_NETCONTROL },
{ "reliability", IPTOS_RELIABILITY },
{ "throughput", IPTOS_THROUGHPUT }
{ "throughput", IPTOS_THROUGHPUT },
{ "va", IPTOS_DSCP_VA },
};
const struct keywords *p;

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: ping.c,v 1.250 2025/12/05 17:48:47 phessler Exp $ */
/* $OpenBSD: ping.c,v 1.251 2025/12/06 10:41:07 phessler Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1822,12 +1822,12 @@ map_tos(char *key, int *val)
{ "cs6", IPTOS_DSCP_CS6 },
{ "cs7", IPTOS_DSCP_CS7 },
{ "ef", IPTOS_DSCP_EF },
{ "va", IPTOS_DSCP_VA },
{ "inetcontrol", IPTOS_PREC_INTERNETCONTROL },
{ "lowdelay", IPTOS_LOWDELAY },
{ "netcontrol", IPTOS_PREC_NETCONTROL },
{ "reliability", IPTOS_RELIABILITY },
{ "throughput", IPTOS_THROUGHPUT },
{ "va", IPTOS_DSCP_VA },
{ NULL, -1 },
};