Files
vasilito 5851974b20 feat: build system transition to release fork + archive hardening
Release fork infrastructure:
- REDBEAR_RELEASE=0.1.1 with offline enforcement (fetch/distclean/unfetch blocked)
- 195 BLAKE3-verified source archives in standard format
- Atomic provisioning via provision-release.sh (staging + .complete sentry)
- 5-phase improvement plan: restore format auto-detection, source tree
  validation (validate-source-trees.py), archive-map.json, REPO_BINARY fallback

Archive normalization:
- Removed 87 duplicate/unversioned archives from shared pool
- Regenerated all archives in consistent format with source/ + recipe.toml
- BLAKE3SUMS and manifest.json generated from stable tarball set

Patch management:
- verify-patches.sh: pre-sync dry-run report (OK/REVERSED/CONFLICT)
- 121 upstream-absorbed patches moved to absorbed/ directories
- 43 active patches verified clean against rebased sources
- Stress test: base updated to upstream HEAD, relibc reset and patched

Compilation fixes:
- relibc: Vec imports in redox-rt (proc.rs, lib.rs, sys.rs)
- relibc: unsafe from_raw_parts in mod.rs (2024 edition)
- fetch.rs: rev comparison handles short/full hash prefixes
- kibi recipe: corrected rev mismatch

New scripts: restore-sources.sh, provision-release.sh, verify-sources-archived.sh,
check-upstream-releases.sh, validate-source-trees.py, verify-patches.sh,
repair-archive-format.sh, generate-manifest.py

Documentation: AGENTS.md, README.md, local/AGENTS.md updated for release fork model
2026-05-02 01:41:17 +01:00

63 lines
2.0 KiB
Diff

diff --git a/src/header/netinet_in/cbindgen.toml b/src/header/netinet_in/cbindgen.toml
index d88dc7f..24fe4bc 100644
--- a/src/header/netinet_in/cbindgen.toml
+++ b/src/header/netinet_in/cbindgen.toml
@@ -113,6 +113,7 @@ include = [
"ip_mreq_source",
"group_req",
"group_source_req",
+ "in6_pktinfo",
]
[export.rename]
diff --git a/src/header/netinet_in/mod.rs b/src/header/netinet_in/mod.rs
index 0e4ced5..9a2a913 100644
--- a/src/header/netinet_in/mod.rs
+++ b/src/header/netinet_in/mod.rs
@@ -54,6 +54,34 @@ pub struct ipv6_mreq {
pub ipv6mr_interface: u32,
}
+/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netinet_in.h.html>.
+#[repr(C)]
+pub struct in6_pktinfo {
+ pub ipi6_addr: in6_addr,
+ pub ipi6_ifindex: u32,
+}
+
+impl Clone for in6_pktinfo {
+ fn clone(&self) -> Self {
+ Self {
+ ipi6_addr: in6_addr { s6_addr: self.ipi6_addr.s6_addr },
+ ipi6_ifindex: self.ipi6_ifindex,
+ }
+ }
+}
+
+impl Default for in6_pktinfo {
+ fn default() -> Self {
+ Self {
+ ipi6_addr: in6_addr { s6_addr: [0; 16] },
+ ipi6_ifindex: 0,
+ }
+ }
+}
+
+#[unsafe(no_mangle)]
+pub extern "C" fn _cbindgen_export_in6_pktinfo(in6_pktinfo: in6_pktinfo) {}
+
// Address String Lengths
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netinet_in.h.html>.
pub const INET_ADDRSTRLEN: c_int = 16;
@@ -106,6 +134,10 @@ pub const IPV6_DROP_MEMBERSHIP: c_int = 21;
pub const IPV6_LEAVE_GROUP: c_int = 21;
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netinet_in.h.html>.
pub const IPV6_V6ONLY: c_int = 26;
+/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man7/ipv6.7.html>.
+pub const IPV6_PKTINFO: c_int = 50;
+/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man7/ipv6.7.html>.
+pub const IPV6_RECVPKTINFO: c_int = 49;
/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man7/ip.7.html>.
pub const IP_MULTICAST_IF: c_int = 32;
/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man7/ip.7.html>.