Package: freebsd-utils / 10.1~svn273304-1

002_ifconfig.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: freebsd-utils-jessie/src/sbin/ifconfig/ifconfig.c
===================================================================
--- freebsd-utils-jessie.orig/src/sbin/ifconfig/ifconfig.c
+++ freebsd-utils-jessie/src/sbin/ifconfig/ifconfig.c
@@ -76,6 +76,13 @@ static const char rcsid[] =
 
 #include "ifconfig.h"
 
+#ifndef IFCAP_RXCSUM_IPV6
+#define IFCAP_RXCSUM_IPV6 0x200000
+#endif
+#ifndef IFCAP_TXCSUM_IPV6
+#define IFCAP_TXCSUM_IPV6 0x400000
+#endif
+
 /*
  * Since "struct ifreq" is composed of various union members, callers
  * should pay special attention to interpret the value.
@@ -158,7 +165,7 @@ main(int argc, char *argv[])
 	all = downonly = uponly = namesonly = noload = verbose = 0;
 
 	/* Parse leading line options */
-	strlcpy(options, "adklmnuv", sizeof(options));
+	strlcpy(options, "+adklmnuv", sizeof(options));
 	for (p = opts; p != NULL; p = p->next)
 		strlcat(options, p->opt, sizeof(options));
 	while ((c = getopt(argc, argv, options)) != -1) {
@@ -954,7 +961,7 @@ status(const struct afswtch *afp, const
 	putchar('\n');
 
 	for (;;) {
-		if ((descr = reallocf(descr, descrlen)) != NULL) {
+		if ((descr = realloc(descr, descrlen)) != NULL) {
 			ifr.ifr_buffer.buffer = descr;
 			ifr.ifr_buffer.length = descrlen;
 			if (ioctl(s, SIOCGIFDESCR, &ifr) == 0) {