diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.c,v 1.91 2013/07/12 00:43:50 djm Exp $ */ | 1 | /* $OpenBSD: misc.c,v 1.92 2013/10/14 23:28:23 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2005,2006 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2005,2006 Damien Miller. All rights reserved. |
@@ -43,6 +43,7 @@ | |||
43 | #include <netinet/ip.h> | 43 | #include <netinet/ip.h> |
44 | #include <netinet/tcp.h> | 44 | #include <netinet/tcp.h> |
45 | 45 | ||
46 | #include <ctype.h> | ||
46 | #include <errno.h> | 47 | #include <errno.h> |
47 | #include <fcntl.h> | 48 | #include <fcntl.h> |
48 | #include <netdb.h> | 49 | #include <netdb.h> |
@@ -1017,6 +1018,13 @@ iptos2str(int iptos) | |||
1017 | snprintf(iptos_str, sizeof iptos_str, "0x%02x", iptos); | 1018 | snprintf(iptos_str, sizeof iptos_str, "0x%02x", iptos); |
1018 | return iptos_str; | 1019 | return iptos_str; |
1019 | } | 1020 | } |
1021 | |||
1022 | void | ||
1023 | lowercase(char *s) | ||
1024 | { | ||
1025 | for (; *s; s++) | ||
1026 | *s = tolower((u_char)*s); | ||
1027 | } | ||
1020 | void | 1028 | void |
1021 | sock_set_v6only(int s) | 1029 | sock_set_v6only(int s) |
1022 | { | 1030 | { |