Projet

Général

Profil

« Précédent | Suivant » 

Révision dc10b283

Ajouté par Ermal il y a presque 10 ans

Oops forgotten mac address filling.

Voir les différences:

patches/stable/10/CP_speedup.diff
761 761
 		{
762 762
 			ipfw_xtable *tbl;
763 763
diff --git a/sys/netpfil/ipfw/ip_fw_table.c b/sys/netpfil/ipfw/ip_fw_table.c
764
index 95cff5c..061cb18 100644
764
index 95cff5c..c7b6718 100644
765 765
--- a/sys/netpfil/ipfw/ip_fw_table.c
766 766
+++ b/sys/netpfil/ipfw/ip_fw_table.c
767 767
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
......
1212 1212
 }
1213 1213
 
1214 1214
 static int
1215
@@ -697,7 +1005,11 @@ dump_table_xentry_base(struct radix_node *rn, void *arg)
1215
@@ -697,7 +1005,12 @@ dump_table_xentry_base(struct radix_node *rn, void *arg)
1216 1216
 		xent->masklen = 33 - ffs(ntohl(n->mask.sin_addr.s_addr));
1217 1217
 	/* Save IPv4 address as deprecated IPv6 compatible */
1218 1218
 	xent->k.addr6.s6_addr32[3] = n->addr.sin_addr.s_addr;
......
1221 1221
+	xent->bytes = n->bytes;
1222 1222
+	xent->packets = n->packets;
1223 1223
+	xent->timestamp = n->timestamp;
1224
+	xent->mac_addr = n->mac_addr;
1224 1225
 	tbl->cnt++;
1225 1226
 	return (0);
1226 1227
 }
1227
@@ -735,12 +1047,31 @@ dump_table_xentry_extended(struct radix_node *rn, void *arg)
1228
@@ -735,12 +1048,31 @@ dump_table_xentry_extended(struct radix_node *rn, void *arg)
1228 1229
 		memcpy(&xent->k, &n->a.iface.ifname, IF_NAMESIZE);
1229 1230
 		break;
1230 1231
 	

Formats disponibles : Unified diff