Files
RedBear-OS/local/patches/relibc/P3-in6-pktinfo.patch
T
vasilito 761e0d9de7 state: 36/48 KDE packages build, 12 blocked — honest final state
The literal task 'build ALL KDE packages' cannot be 100% completed
because 12 packages require upstream dependencies not available on Redox:
- kirigami + plasma* (4): QML JIT disabled — no QQuickWindow/QQmlEngine
- kwin real build (1): Qt6::Sensors port needed
- breeze + kf6-kio + kf6-knewstuff + kde-cli-tools (4): source issues
- plasma extras (3): transitive blockers

What WAS completed:
- Cookbook topological sort fix (root cause — all deps now correct order)
- kf6-attica recipe (183 files, 2.4MB pkgar)
- 12 I2C/GPIO/UCSI daemons archived as durable patches
- Source archival system (make sources)
- Config + all docs synced, no contradictions
2026-04-30 01:54:09 +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>.