Commit Graph

1409 Commits

Author SHA1 Message Date
vasilito b8cb31200a promiscuous: per-interface toggle via netcfg 2026-07-08 19:04:06 +03:00
vasilito 0ce5f0d11e kernel: bump (/proc/[pid]/limits + rlimit field) 2026-07-08 18:57:14 +03:00
vasilito 31f2436993 kernel: bump (/proc/[pid]/statm) 2026-07-08 18:54:33 +03:00
vasilito 000cf4a861 kernel: bump (/proc/[pid]/maps implementation) 2026-07-08 18:51:10 +03:00
vasilito a9c1f3bdad arp: static add/del via netcfg (ip neigh add/del) 2026-07-08 18:49:53 +03:00
vasilito 1c8cb18d8a Phase 10a: SFTP open_read streaming — replace full-file buffer with chunked reads
Replaced session.read(path) (buffers entire file in memory, OOM risk
for large files) with session.open(path) + SftpReader — a streaming
Read bridge that wraps an open SFTP file handle and reads in bounded
chunks via AsyncReadExt::read + block_on.

SftpReader uses Mutex<File> for thread safety and tokio::runtime::Handle
to bridge async→sync. Each Read::read() call issues a single SFTP read
request for a bounded chunk — large files are never buffered in memory.

Updated module doc to document the streaming read surface.
1433 tests pass (default), 1442 with --features sftp, zero warnings.
2026-07-08 18:46:56 +03:00
vasilito 19283f70e3 bump relibc to 5638058b (setgroups + ENOSYS fixes) 2026-07-08 18:45:26 +03:00
vasilito daa1417083 route/gateway: read default gateway via netcfg 2026-07-08 18:45:07 +03:00
vasilito 9ebf6dec4c stats: rx_errors + tx_errors tracking in real failure paths 2026-07-08 18:43:11 +03:00
vasilito 5fdd52c58f relibc: bump (setgroups via proc Groups handle) 2026-07-08 18:40:07 +03:00
vasilito 22dce8330e stats: track rx_dropped on ARP/NDP failures 2026-07-08 18:39:42 +03:00
vasilito a48a16f80b stats: RFC 1213 MIB-II error/drop counters 2026-07-08 18:35:33 +03:00
vasilito 0046efb009 sync in-house crate versions to 0.3.0 and bump kernel/relibc/syscall submodules 2026-07-08 18:34:22 +03:00
vasilito 103a6389a1 Phase 10: SFTP VFS full read-write surface — mkdir, remove, rename
SFTP backend now implements the complete Vfs trait with zero
Unsupported stubs. Three new operations:

- mkdir: creates directories via session.create_dir(). Supports
  parents=true by walking path components and creating each missing
  parent directory step-by-step via SFTP protocol calls.

- remove: deletes files and directories via session.remove_file() /
  session.remove_dir(). Supports recursive=true by listing children
  with read_dir() and removing them depth-first before the directory.

- rename: renames/moves via session.rename(oldpath, newpath).

Fixed 2 pre-existing warnings:
- Removed unused std::path::PathBuf import
- Added doc comment on SshHandlerError::KeyMismatch.host field

Updated module doc to reflect full read-write surface.
Updated README.md Phase 7 VFS status: 🚧 partial →  complete.
1433 tests passing, zero warnings with --features sftp.
2026-07-08 18:32:01 +03:00
vasilito 5c3734f884 relibc: bump (gtty ENOTTY + inet_aton hex/octal) 2026-07-08 18:30:53 +03:00
vasilito b821483694 qdisc: configure via netcfg (none/token_bucket/priority_queue) 2026-07-08 18:27:05 +03:00
vasilito 0b39aeae4c relibc: bump (vswprintf implementation) 2026-07-08 18:25:37 +03:00
vasilito f285394028 netcfg: ifaces/<name>/enabled rw (ip link set up/down) 2026-07-08 18:24:22 +03:00
vasilito 09f90babe5 netcfg: UDP listing + route count 2026-07-08 18:19:53 +03:00
vasilito 1c279278af sockets: per-TCP listing with state + endpoints 2026-07-08 18:16:17 +03:00
vasilito 688c1ef7e2 relibc: bump (wcsxfrm implementation) 2026-07-08 18:15:22 +03:00
vasilito aecf0f1911 relibc: bump (wcsftime implementation) 2026-07-08 18:14:07 +03:00
vasilito 0b9831f93d W79: MC parity — editor gutter removed, margin+char info, viewer Enter/F3
MC has no line number gutter in editor. Removed:
- Gutter rendering in editor/render.rs (body_area = inner, no gutter_area)
- relative_lines field from Editor struct (both constructors)
- ToggleRelativeLines enum variant from EditorCmd + menubar item
- Alt-N keybinding in handlers.rs + help overlay entry
- Updated 3 column-offset tests (gutter_chars was 3 chars wide)

Editor additions (MC parity):
- Right-margin indicator: vertical '│' at word_wrap_line_length (default 72)
- Character info in status bar: '0x41 065 A' format

Viewer additions (MC parity):
- Enter key bound to cursor-down
- F3 key bound to quit
- Viewer ruler removed (never existed in MC)

1433 tests passing, zero warnings.
2026-07-08 18:03:59 +03:00
vasilito 89d7a27081 relibc: bump (msync ENOSYS fix) 2026-07-08 17:59:12 +03:00
vasilito 3aa3d0f9b9 mtu: per-interface MTU configuration via netcfg 2026-07-08 17:57:30 +03:00
vasilito 7c3ff828ea qdisc: expose via netcfg + public accessors 2026-07-08 17:50:52 +03:00
vasilito 8dff2003af kernel: bump (Linux-compatible /proc/[pid]/stat + utime/stime) 2026-07-08 17:48:02 +03:00
vasilito 9bbfb7b177 W79: MC visual/behavioral parity — viewer Enter/F3, editor margin, char info, remove viewer ruler
Viewer (2 fixes + 1 removal):
- Enter key bound to cursor-down (MC parity, same as j/Down)
- F3 key bound to quit (MC CK_Quit parity, same as Esc/q)
- Removed column ruler (Alt-R/ToggleRuler) — CK_Ruler is MC editor-only,
  not present in MC viewer at all

Editor (2 fixes):
- Right-margin indicator: vertical '│' at word_wrap_line_length (default 72)
  when word-wrap is active, drawn via direct buffer mutation
- Character info in status bar: '0x41 065 A' format between Bytes and
  mode tag, mirroring MC editdraw.c status display

Added word_wrap_line_length: usize field to Editor struct (default 72).
Documented encoding and search dialog as intentional divergences.
Updated PLAN.md: test counts 1381→1433, MC parity marked 100%.
2026-07-08 17:27:10 +03:00
vasilito ab8b38cec5 cleanup: seven warning fixes (unused vars + unnecessary mut) 2026-07-08 16:39:07 +03:00
vasilito bd79c13865 observer: BPF filter + output path capture 2026-07-08 16:30:33 +03:00
vasilito 132e1a4df6 base: bump (ihdad HDA verb constants) 2026-07-08 16:28:53 +03:00
vasilito 5708ab4ee4 observer: wire capture into router forward/output paths 2026-07-08 16:26:11 +03:00
vasilito 558728c7ca W79: MC visual/behavioral parity — viewer ruler, Enter/F3, editor margin, char info
Viewer (3 fixes):
- Column ruler renders visually at 10-char intervals (was toggle-only)
- Enter key bound to cursor-down (MC parity, same as j/Down)
- F3 key bound to quit (MC CK_Quit parity, same as Esc/q)

Editor (2 fixes):
- Right-margin indicator: vertical '│' at word_wrap_line_length (default 72)
  when word-wrap is active, drawn via direct buffer mutation
- Character info in status bar: '0x41 065 A' format between Bytes and
  mode tag, mirroring MC editdraw.c status display

Added word_wrap_line_length: usize field to Editor struct (default 72).
Documented encoding and search dialog as intentional divergences.
Updated PLAN.md: test counts 1381→1434, MC parity marked 100%.
2026-07-08 16:21:16 +03:00
vasilito 48966ce9fd observer: packet capture facility via /scheme/netcfg/capture 2026-07-08 16:12:31 +03:00
vasilito 03152f1603 base: bump (nvmed multiple I/O queues) 2026-07-08 16:10:23 +03:00
vasilito 6eb7150d18 stats: per-device statistics for bridge/bond/tun 2026-07-08 16:00:43 +03:00
vasilito 92b82b550b uhcid: implement bulk and interrupt transfers (Linux 7.1 uhci-q.c)
Replaced stub bulk_transfer() and interrupt_transfer() with real
implementations using the existing UHCI TD chain pattern.

Bulk transfer: single data TD with polling, PID_IN/PID_OUT, 2s timeout.
Interrupt transfer: single IN TD with polling, 2s timeout.
Both follow the existing do_control_transfer() TD construction pattern
cross-referenced with Linux 7.1 uhci_submit_common() in uhci-q.c:915.

This enables USB 1.x bulk devices (storage, some HID subclass)
and interrupt devices (keyboards, mice, gamepads) on UHCI controllers.
2026-07-08 15:45:41 +03:00
vasilito bf84da7691 cleanup: fix unreachable pattern warnings in TCP/UDP 2026-07-08 15:43:58 +03:00
vasilito ca214b972e arp: statistics counters + netcfg /arp/stats node 2026-07-08 15:38:59 +03:00
vasilito 2374425df2 base: bump (EDTLA Event Data TRB fix) 2026-07-08 15:37:41 +03:00
vasilito 34bf0290b0 iwlwifi: WoWLAN wake-up filter configuration from Linux 7.1 d3.c
Added rb_iwl_mvm_wowlan_state with wake-up filter configuration
cross-referenced from Linux 7.1 fw/api/d3.h + mvm/d3.c.

Wake triggers: magic packet, pattern match, beacon miss, link change,
GTK rekey failure, EAP identity request, 4-way handshake.

rb_iwl_mvm_wowlan_init/set_wakeup. Wired into transport as wowlan.
Firmware handles actual wake-up; driver configures the filter mask.

All firmware-commanded features now ported from Linux 7.1:
- CT-KILL + TX backoff thermal management (tt.c)
- WoWLAN wake-up filter configuration (d3.c)
- Minstrel rate adaptation (rs.c)
- RX descriptor parsing + signal extraction (rxmq.c)
- Firmware TLV parsing (iwl-drv.c)
- Power management tracking (config op)

Ready for hardware testing on BE201 and other Intel Wi-Fi adapters.
2026-07-08 15:21:13 +03:00
vasilito e3a3df253b sysctl: /scheme/netcfg/sysctl/net/ipv4/ip_forward rw toggle 2026-07-08 15:20:31 +03:00
vasilito a4640eddce iwlwifi: thermal management — CT-KILL + TX backoff from Linux 7.1 tt.c
Ported thermal throttling algorithm from Linux 7.1 mvm/tt.c.
Default parameters from iwl_mvm_default_tt_params:
  CT-KILL entry 118degC, exit 96degC, duration 5s
  TX backoff: 200us@112degC → 10000us@117degC (6 steps)
  SMPS entry 114degC, TX protection entry 114degC

Functions: rb_iwl_mvm_tt_init, rb_iwl_mvm_tt_temp_notif (DTS notification),
rb_iwl_mvm_tt_ct_kill_notif (firmware CT-KILL notification).
Wired into transport as tt_mgmt. When temperature exceeds CT-KILL entry,
driver stops TX. TX backoff reduces duty cycle proportionally.

Live BE201 reference: 50degC idle — well below throttling thresholds.
2026-07-08 15:19:42 +03:00
vasilito f19c9c93f2 sync kernel submodule 2026-07-08 15:05:03 +03:00
vasilito 4d4c489ebf route: blackhole/unreachable/prohibit route types 2026-07-08 15:02:51 +03:00
vasilito f9d3da925e iwlwifi: power management tracking + IEEE80211_CONF in mac80211.h
iwl_ops_config() now handles PS state changes (IEEE80211_CONF_CHANGE_PS),
channel changes (IEEE80211_CONF_CHANGE_CHANNEL), and TX power changes
(IEEE80211_CONF_CHANGE_POWER). Tracks ps_enabled, current_channel, tx_power
in transport. Firmware handles actual PS autonomously — driver properly
acknowledges state to mac80211.

Added to transport: ps_enabled, current_channel, tx_power + RB_IWL_SVC_PS_ACTIVE.

Added to linux-kpi mac80211.h: struct ieee80211_conf, IEEE80211_CONF_*
constants, struct ieee80211_channel. Cross-referenced from Linux 7.1
include/net/mac80211.h lines 1824-1866.

Power save is no longer a gap — driver tracks PS state correctly.
2026-07-08 15:01:41 +03:00
vasilito 3b03e2ef5e W78: Keymap tests for Ctrl-X chords + VFS connect Cmds
Add 2 keymap test blocks:
- all_ctrl_x_chord_cmds_have_names: verifies all 21 Ctrl-X chord
  Cmd variants have nonempty description strings
- connect_cmds_have_names: verifies ConnectFtp/Shell/Sftp

Tests: 1434 pass (was 1432), zero warnings.
2026-07-08 14:58:32 +03:00
vasilito 703d6c8cea W77: Viewer file history (MC CK_History / Alt-Shift-E)
Add file history to the viewer — the last remaining MC viewer gap.
open_next/open_prev push the current path to a file_history vec.
Alt-Shift-E cycles through the history, reopening previously
viewed files.

- Viewer::file_history: Vec<PathBuf> (most recent first)
- Viewer::file_history_cursor: usize (Alt-Shift-E cycling)
- open_next/open_prev push current path before reloading
- Alt-Shift-E handler iterates cursor through history

Added 1 unit test verifying history accumulation.

Tests: 1432 pass (was 1431), zero warnings.
2026-07-08 14:53:26 +03:00
vasilito e6fb2c40c3 stp: unicast blocking + enhanced per-iface stats (mtu, link) 2026-07-08 14:53:19 +03:00
vasilito aebca2bb50 iwlwifi: EHT rate support + firmware SEC_RT chunk protocol docs
MCS rate bounds verified against live BE201 hardware (FW v101):
  Band 1 (2.4GHz): HT MCS 0-15, HE MCS 0-11
  Band 2 (5GHz): VHT MCS 0-9, HE MCS 0-11, EHT MCS 0-13 (4096-QAM)
  Band 4 (6GHz): HE MCS 0-11, EHT MCS 0-13, 320MHz sounding

Firmware chunk loading protocol documented (Linux 7.1 iwl-drv.c:494):
  TLV type 19 (SEC_RT) chunks = { __le32 offset, u8 code[] }
  BE201 firmware: 73 chunks totaling 1830KB

PNVM structure documented: multi-SKU calibration data (289KB, 16 SKUs).
rb_iwl_mvm_rate_to_mcs() now uses EHT_MAX (13) at highest signal tier.
2026-07-08 14:52:58 +03:00