DF-0608 / run.log
== 1. Cited typo (netgraph7) ==
724: NG_MKRESPONSE(resp, msg, sizeof(ips), M_WAITOK | M_NULLOK);
== 2. Twin typo (old netgraph) ==
701: NG_MKRESPONSE(resp, msg, sizeof(ips), M_NOWAIT);
== 3. struct ng_cisco_ipaddr definition (expect two in_addr = 8 bytes) ==
65:struct ng_cisco_ipaddr {
66- struct in_addr ipaddr; /* IP address */
67- struct in_addr netmask; /* Netmask */
68-};
69-
== 4. ips is a pointer (sizeof(ips) = sizeof(pointer) = 8 on amd64) ==
720: struct ng_cisco_ipaddr *ips;
== 5. Compile-time size proof (userspace) ==
sizeof(struct ng_cisco_ipaddr) = 8
sizeof(*ips) = 8
sizeof(ips) [pointer, BUGGY] = 8
VERDICT: on this platform sizes coincide -> NO runtime/security impact