summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorphessler <>2025-12-06 09:48:30 +0000
committerphessler <>2025-12-06 09:48:30 +0000
commitf4f87fb91b4a97eaa42c01cc9189912b2d9c45d7 (patch)
treecf78c171c3d43f00ec46194ff7b17014a4a0e469 /src
parentb1458c6502782b95b371125d4c54ebdfe0a47671 (diff)
downloadopenbsd-f4f87fb91b4a97eaa42c01cc9189912b2d9c45d7.tar.gz
openbsd-f4f87fb91b4a97eaa42c01cc9189912b2d9c45d7.tar.bz2
openbsd-f4f87fb91b4a97eaa42c01cc9189912b2d9c45d7.zip
sort the "va" keyword to be in alpha order, some programs use bsearch
noticed by deraadt@
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/nc/netcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index e3ff649938..6438fbbc5d 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.236 2025/12/05 17:48:47 phessler Exp $ */ 1/* $OpenBSD: netcat.c,v 1.237 2025/12/06 09:48:30 phessler Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * Copyright (c) 2015 Bob Beck. All rights reserved. 4 * Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -1650,12 +1650,12 @@ process_tos_opt(char *s, int *val)
1650 { "cs6", IPTOS_DSCP_CS6 }, 1650 { "cs6", IPTOS_DSCP_CS6 },
1651 { "cs7", IPTOS_DSCP_CS7 }, 1651 { "cs7", IPTOS_DSCP_CS7 },
1652 { "ef", IPTOS_DSCP_EF }, 1652 { "ef", IPTOS_DSCP_EF },
1653 { "va", IPTOS_DSCP_VA },
1654 { "inetcontrol", IPTOS_PREC_INTERNETCONTROL }, 1653 { "inetcontrol", IPTOS_PREC_INTERNETCONTROL },
1655 { "lowdelay", IPTOS_LOWDELAY }, 1654 { "lowdelay", IPTOS_LOWDELAY },
1656 { "netcontrol", IPTOS_PREC_NETCONTROL }, 1655 { "netcontrol", IPTOS_PREC_NETCONTROL },
1657 { "reliability", IPTOS_RELIABILITY }, 1656 { "reliability", IPTOS_RELIABILITY },
1658 { "throughput", IPTOS_THROUGHPUT }, 1657 { "throughput", IPTOS_THROUGHPUT },
1658 { "va", IPTOS_DSCP_VA },
1659 { NULL, -1 }, 1659 { NULL, -1 },
1660 }; 1660 };
1661 1661