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 |
|
/* |
3 |
|
* Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 |
|
* Copyright (c) 2005,2006 Damien Miller. All rights reserved. |
43 |
|
#include <netinet/ip.h> |
44 |
|
#include <netinet/tcp.h> |
45 |
|
|
46 |
+ |
#include <ctype.h> |
47 |
|
#include <errno.h> |
48 |
|
#include <fcntl.h> |
49 |
|
#include <netdb.h> |
1017 |
|
} |
1018 |
|
snprintf(iptos_str, sizeof iptos_str, "0x%02x", iptos); |
1019 |
|
return iptos_str; |
1020 |
+ |
} |
1021 |
+ |
|
1022 |
+ |
void |
1023 |
+ |
lowercase(char *s) |
1024 |
+ |
{ |
1025 |
+ |
for (; *s; s++) |
1026 |
+ |
*s = tolower((u_char)*s); |
1027 |
|
} |
1028 |
|
void |
1029 |
|
sock_set_v6only(int s) |