René van Dorst
4bd6ffd083
Merge pull request #492 from vDorst/feat_build
...
CI: Turn on error on warning also for sdcc-compiler.
2026-09-21 18:11:15 +00:00
René van Dorst
94cfec8693
CI: Build a 4x2/8372 and 8x1/8373 version
2026-09-21 19:50:15 +02:00
René van Dorst
a4bb3f1725
CI: Enable CI option to stop at warnings
2026-09-21 19:50:15 +02:00
René van Dorst
931e6da0ab
Makefile: Add option CI to turn all warnings into errors
2026-09-21 19:50:11 +02:00
René van Dorst
88454ec7d7
Merge pull request #439 from vDorst/feat_i2c_precompute
...
I2CBUS: Calculate I2C-settings as compiletime instead at runtime.
2026-09-21 15:30:56 +02:00
René van Dorst
f0efb84abb
Merge pull request #494 from tofurky/sdcc_4.6.0_warnings
...
Fix warnings seen on SDCC 4.6.0 due to missing const qualifiers
2026-09-21 10:51:54 +02:00
René van Dorst
62d3424a92
Merge pull request #496 from DrDoof/fix/sfp-nonblocking-wake
...
sfp: do not block the main loop while a module wakes up
2026-09-21 10:32:22 +02:00
René van Dorst
b1961c6955
Merge pull request #495 from tofurky/sfp_normalize_nul
...
Properly handle NULs when normalizing SFP fields
2026-09-21 08:51:57 +02:00
René van Dorst
ce11790a0d
I2C: Silence compiler warning, de-magic values.
2026-09-20 20:31:43 +02:00
René van Dorst
55431b39f6
Merge pull request #483 from DrDoof/perf/rx-nosleep
...
rtlplayground: do not sleep in idle() while a packet is waiting
2026-09-20 13:02:59 +00:00
René van Dorst
46e1c955ba
Merge pull request #482 from DrDoof/perf/rx-budget
...
rtlplayground: take several packets per loop in handle_rx()
2026-09-20 13:02:07 +00:00
René van Dorst
d556d634ca
Merge pull request #487 from jagheterfredrik/patch-1
...
add zlib1g-dev to Dockerfile
2026-09-20 12:34:33 +00:00
René van Dorst
7b5e365d5e
Merge pull request #409 from gnacho/i18n-es
...
feat(translate): add Spanish (es) translations
2026-09-20 11:40:56 +00:00
René van Dorst
8973774594
Merge pull request #476 from bloqaudio/fix/eee-port-argument
...
eee: accept a port again, and stop the web UI discarding other ports
2026-09-20 09:50:25 +00:00
René van Dorst
48c5b0c9cf
Merge pull request #486 from bloqaudio/fix/syslog-null-conn
...
syslog: do not read the connection before there is one
2026-09-20 09:39:04 +00:00
René van Dorst
1557a7cf3c
MACHINE: rebase, update the new added devices
2026-09-20 11:30:17 +02:00
René van Dorst
131bc106af
boot/i2c-setup(): Remove the switch-statement defaults.
...
All the possibilities are handled, or otherwise a compile-time macro
I2CBUS_VALID ensures invalid options are rejected with a compiler error.
Also fix a compiler warning.
2026-09-20 11:25:35 +02:00
René van Dorst
19ccc4003d
i2c: Add compiletime check macro for validating the i2c pins.
...
Use 0x7 as error value for an invalid I2C SDA/SCL-pin value.
The macro `I2CBUS_VALID` checks for this value.
When a invalid pin is ues, the compiler errors out with:
"machine.c:<line>: error 176: sizeof applied to an incomplete type",
Error message is not ideal but at-least points to the right location in
the code.
2026-09-20 11:25:35 +02:00
René van Dorst
b5fe9f217f
i2c/sfp: Demagic shift-values
2026-09-20 11:25:35 +02:00
René van Dorst
f65d14f452
I2CBUS: Calculate I2C-settings as compiletime instead at runtime.
...
We can reduce the i2c-settings to just one byte, and this new const value
can directly be used by the I2C-peripheral without additional computation.
This saves 1-xdata load and a lot of bit-shifting.
I see a codesize savings of +200 bytes.
2026-09-20 11:25:34 +02:00
René van Dorst
b92fba870c
Merge pull request #484 from bloqaudio/fix/upload-auth-gate
...
httpd: gate /upload on authentication before it changes state, and make the length limit count
2026-09-20 09:21:25 +00:00
René van Dorst
4deee377a7
Merge pull request #485 from bloqaudio/fix/led-set-index
...
leds: index the second LED register from the set it belongs to
2026-09-20 08:40:52 +00:00
René van Dorst
fe42b07e2b
Merge pull request #481 from DrDoof/fix/rx-checksum
...
uip: verify TCP and UDP checksums using the RX descriptor flag
2026-09-20 07:59:46 +00:00
René van Dorst
7d47edb649
Merge pull request #477 from bloqaudio/fix/port-speed-select
...
web: show the speed a port is set to, not always auto
2026-09-19 11:26:03 +00:00
René van Dorst
fdb19fe0ee
Merge pull request #451 from SkullyDev/main
...
HASIVO_S600W_4GT_2XGT_SE machine
2026-09-19 11:25:30 +00:00
René van Dorst
eaebeba528
Merge pull request #464 from DrDoof/fix/json-escape
...
httpd: don't let a quote in a port name break the web page
2026-09-18 18:40:16 +00:00
René van Dorst
b36fd95356
Merge pull request #450 from bloqaudio/feat/idle-poll-pause
...
web: stop polling when the page has had no input for ten minutes
2026-09-18 18:36:34 +00:00
René van Dorst
a62866a93a
Merge pull request #472 from DrDoof/fix/httpd-sent-len
...
httpd: account for the bytes actually sent
2026-09-18 16:19:46 +02:00
René van Dorst
530e2683f0
Merge pull request #471 from ScApi/main
...
Add support for Goalake IG108 / Netcore GS9 / PB-2132 PCB
2026-09-18 11:14:53 +02:00
René van Dorst
0cc09e4015
Merge pull request #467 from DrDoof/test/table-engine-mock
...
test: run the table code and the JSON pages on the host
2026-09-17 18:56:40 +00:00
René van Dorst
bf41fbd202
Merge pull request #463 from DrDoof/fix/cmd-error-status
...
cmd: report a rejected command as an error and keep it out of the history
2026-09-17 17:33:56 +00:00
René van Dorst
c02623a610
Merge pull request #468 from mintsoft/readme-fix
...
Updating images for new UI
2026-09-17 17:16:19 +00:00
René van Dorst
9bae4052a3
Merge pull request #454 from bennydiamond/Fix_MACHINE_LIANGUO_HYWS_SGT0108S
...
Support Lianguo HYWS-SGT0108S - Missing closing bracket
2026-09-16 09:12:33 +02:00
René van Dorst
94992562fd
Merge pull request #458 from DrDoof/fix/httpd-session-init
...
httpd: do not accept a session cookie before the first login
2026-09-15 18:14:27 +00:00
René van Dorst
6150ada5f8
Merge pull request #457 from DrDoof/fix/flash-zero-length
...
flash: bail out of reads of zero length
2026-09-15 18:10:50 +00:00
René van Dorst
8116ef0a5b
Merge pull request #461 from DrDoof/ci/pull-request
...
ci: build pull requests too
2026-09-15 18:06:42 +00:00
René van Dorst
2f005d2993
Merge pull request #324 from bloqaudio/pr/host-test-harness
...
test: add host-side unit-test harness, covering cmd_editor
2026-09-14 21:59:07 +00:00
René van Dorst
9f107b6e60
Merge pull request #410 from DrDoof/fix/httpd-rexmit-cont
...
httpd: retransmit a continued chunk from where it was sent
2026-09-14 18:12:43 +00:00
René van Dorst
15b10d9ed0
Merge pull request #427 from bennydiamond/Flash_SingleIO_ReadStatus
...
Temporary revert to SingleIO for Flash operations (except data read)
2026-09-14 17:19:29 +00:00
René van Dorst
abf1cd1344
Merge pull request #429 from bloqaudio/feat/webui-v2
...
web: replace the multi-page UI with a themed single-page app
2026-09-14 17:17:39 +00:00
René van Dorst
b5b52776bc
Merge pull request #449 from bloqaudio/fix/bank2-dhcp-bank3
...
Move DHCP out of BANK2 into BANK3
2026-09-14 16:55:24 +00:00
René van Dorst
0486c34bfd
Merge pull request #448 from bloqaudio/fix/stp-port-keyword
...
stp: accept the documented port keyword again
2026-09-14 16:55:08 +00:00
René van Dorst
62c6c65f1c
Merge pull request #435 from bennydiamond/Support_HYWS-SGT0108S
...
Support for Lianguo HYWS-SGT0108S 8 + 1 unmanaged
2026-09-14 09:46:20 +02:00
René van Dorst
c691591295
Merge branch 'main' into Support_HYWS-SGT0108S
2026-09-14 09:40:16 +02:00
René van Dorst
1aae2fac30
Merge pull request #364 from dw4rren/add-mokerlink-poe-2g080110gs
...
add support for MokerLink POE-2G080110GS
2026-09-14 09:23:15 +02:00
René van Dorst
5a2c4ca029
Merge pull request #421 from DrDoof/fix/fileadder-binary-safe-length
...
fileadder: track the data length instead of measuring it with strlen
2026-09-13 11:51:37 +00:00
René van Dorst
63e367d298
Merge pull request #424 from DrDoof/refactor/split-sfp-boot
...
Move the boot and SFP handling out of the common area into BANK3
2026-09-13 09:51:57 +00:00
René van Dorst
5e513daf17
Merge pull request #423 from DrDoof/fix/arp-refresh-from-ip
...
Refresh ARP entries from incoming IP traffic
2026-09-13 08:41:10 +00:00
René van Dorst
f49ca0d6fe
Merge pull request #366 from gnacho/fix/kp9000-v31-mac-offset
...
Add factory MAC flash offset for keepLink KP-9000-9XHML-X V3.1 + mac command
2026-09-12 07:58:54 +00:00
René van Dorst
dad65fd550
Merge pull request #426 from DrDoof/fix/igmp-port-shift
...
igmp: mask the port number before shifting by it
2026-09-11 20:22:34 +00:00
René van Dorst
dc82e044bc
Merge pull request #436 from mintsoft/fix_gh_build
...
Fix Github Build - Add zlib
2026-09-11 17:22:37 +00:00
René van Dorst
3f65db9984
Merge pull request #413 from DrDoof/fix/vlan-name-bounds
...
vlan: bound the name table before writing into it
2026-09-09 08:47:05 +02:00
René van Dorst
dd09be9dd0
Merge pull request #412 from DrDoof/fix/httpd-init-conn
...
httpd: do not initialise tstate through uip_conn
2026-09-08 22:22:08 +00:00
René van Dorst
b2b7f8a0c6
Merge pull request #414 from DrDoof/fix/dhcp-restart-leak
...
dhcp: do not leave the old socket behind when starting again
2026-09-08 22:19:18 +00:00
René van Dorst
5b28ddf80a
Merge pull request #416 from DrDoof/fix/phy-100m-half-adv
...
phy: advertise half duplex only when half duplex was asked for
2026-09-08 22:06:11 +00:00
René van Dorst
5ecce86ef1
Merge pull request #422 from DrDoof/fix/no-idle-in-isr
...
Do not enter Idle mode from the external interrupt 2 handler
2026-09-08 21:47:02 +00:00
René van Dorst
1ed12d1101
Merge pull request #417 from DrDoof/fix/dhcp-missing-t1
...
dhcp: renew at half the lease when the server omits T1
2026-09-08 19:50:39 +00:00
René van Dorst
6488433584
Merge pull request #401 from DrDoof/fix/ports-sfp-row
...
ports: read the right link state in the port table
2026-09-06 20:18:24 +00:00
René van Dorst
59088b4787
Merge pull request #407 from DrDoof/fix/arp-aging
...
Age the ARP cache by calling uip_arp_timer()
2026-09-06 20:10:54 +00:00
René van Dorst
58aead38cf
Merge pull request #399 from DrDoof/fix/lag-cli-and-gui
...
lag: fix the web page's group numbering, and the command's syntax line
2026-09-06 18:56:12 +00:00
René van Dorst
9c3433cf6b
Merge pull request #406 from DrDoof/fix/dhcp-xid-check
...
dhcp: fix transaction-id check so it actually compares
2026-09-06 18:37:42 +00:00
René van Dorst
00ee3d1325
Merge pull request #408 from DrDoof/fix/isr-no-console-write
...
Do not call write_char() from the external interrupt handlers
2026-09-06 18:11:30 +00:00
René van Dorst
12c15603ed
Merge pull request #395 from vDorst/fix_l2_cli_static_entry
...
Fix l2 cli static entry and use wait_table_ready() in more places
2026-09-06 14:17:41 +00:00
René van Dorst
3a7da77a99
Move wait_table_ready() up and replace all the same code for this function.
2026-09-06 10:06:02 +02:00
René van Dorst
13509d56e5
Fix l2 table, same as #355 but for CLI.
2026-09-06 10:06:02 +02:00
René van Dorst
8a7b146892
Merge pull request #396 from feelfree69/fix/syslog_port
...
Fix printing of syslog portNumber in WebUI
2026-09-04 11:35:33 +02:00
René van Dorst
aded07730e
Merge pull request #365 from janh/zx-swtgw215as
...
Add PCB V2.1 to ZX-SWTGW215AS documentation and use MAC address on flash
2026-09-04 09:07:31 +02:00
René van Dorst
58d059384d
Merge branch 'main' into zx-swtgw215as
2026-09-04 09:07:08 +02:00
René van Dorst
e26693826e
Merge pull request #393 from bloqaudio/fix/l2-delete-own-mac
...
httpd: refuse to delete the switch's own L2 entry
2026-09-03 21:09:16 +00:00
René van Dorst
be6bd2a5b3
Merge pull request #380 from vDorst/fix_vlan_docs
...
Fix VLAN command documenation. 'u'-suffix is not accepted anymore.
2026-09-03 21:03:23 +00:00
René van Dorst
6c43091b7a
Merge pull request #329 from DrDoof/feat/cmd-output
...
httpd: answer /cmd with what the command printed, and show it in the console tab
2026-09-03 20:33:26 +00:00
René van Dorst
fc86ea8be5
Merge pull request #333 from DrDoof/feat/syslog-hostname-port
...
syslog: send a hostname, allow a port other than 514, and stop the save from dropping the address
2026-09-03 20:02:41 +00:00
René van Dorst
91780110f2
Merge pull request #389 from DrDoof/fix/login-page-i18n
...
httpd: let the login page fetch its translations
2026-09-03 20:00:17 +00:00
René van Dorst
f6348765b4
Merge pull request #343 from bloqaudio/feat/mgmt-static-l2
...
port: pin the management MAC to the CPU port with a static L2 entry
2026-09-03 18:25:11 +00:00
René van Dorst
6b39bcc448
JS: vlan don't accept u-suffic anymore.
...
Als update CHANGELOG about CPU_PORT
2026-09-02 19:44:41 +02:00
René van Dorst
4c8e0ce975
Merge pull request #375 from bloqaudio/fix/post-body-split
...
httpd: buffer a plain POST body that arrives after the headers
2026-09-02 08:59:56 +02:00
René van Dorst
71344825c7
Merge pull request #382 from DrDoof/fix/sfp-empty-slot-json
...
sfp: stop the web pages printing the previous slot's bytes
2026-09-02 08:25:42 +02:00
René van Dorst
74a1c6831a
Merge pull request #335 from bloqaudio/feat/ports-connected-devices
...
ports: show the devices connected behind each port
2026-09-01 18:02:22 +00:00
René van Dorst
a79c483f94
Merge pull request #385 from 7Ji/fg_8gt_1sx
...
Add FG-8GT-1SX
2026-09-01 17:35:54 +00:00
René van Dorst
75aa23468c
Merge pull request #374 from bloqaudio/upload-cleanup
...
httpd: clean up the upload path in handle_post()
2026-09-01 17:30:56 +00:00
René van Dorst
373a21f4a1
Add CHANGELOG.md and vlan command breaking change.
2026-09-01 19:05:21 +02:00
René van Dorst
58b12c4aa6
Merge pull request #384 from DrDoof/fix/cmd-history-ring
...
cmd: keep the history pointer inside the ring
2026-09-01 09:22:12 +02:00
René van Dorst
e60a09fb7e
Merge pull request #383 from DrDoof/fix/isolate-off-top-port
...
cmd: let "isolate off" put the top port back in the member list
2026-09-01 08:23:05 +02:00
René van Dorst
73d9a8ccb1
Fix VLAN command documentation. 'u'-suffix is not accepted anymore.
2026-08-31 23:04:57 +02:00
René van Dorst
1947356ec5
Merge pull request #368 from vDorst/fix_all_compiler_warnings
...
Disable all `__sfr32` SDCC bug 4070 and fix all compiler warnings.
2026-08-31 19:47:06 +00:00
René van Dorst
2fa4686b33
fix review points.
2026-08-31 21:00:37 +02:00
René van Dorst
b6d2d7c072
Merge pull request #351 from DrDoof/feat/lag-interface
...
port: let a pvid name an aggregation group
2026-08-31 13:37:14 +02:00
René van Dorst
3c72f0e1b6
Merge pull request #372 from vDorst/fix_macros
...
Fix define macros, was missing the do {} while (0) wrapping
2026-08-31 13:07:29 +02:00
René van Dorst
f187261085
Fix all compiler warnings.
...
- Many times we need help the compiler to reason about variable type or
define.
2026-08-30 21:41:30 +02:00
René van Dorst
aba69cd640
DHCP: Added workarounds for SDCC bug 4070
2026-08-30 21:37:37 +02:00
René van Dorst
b6dcb75130
Disable all __sfr32 due to bug SDCC 4070 and add workarounds.
...
Generate wrong address for `a4` location.
Both on read from and write to a __sfr32 variable.
Workaround:
Use two __sfr16 instead of one __sfr32.
We still get some optimalizations / better code gen.
2026-08-30 21:36:03 +02:00
René van Dorst
4e04735a5f
Fix define macros, was missing the do {} while (0) wrapping
2026-08-30 19:35:37 +02:00
René van Dorst
fc3c686564
Merge pull request #359 from bloqaudio/fix/upload-preamble-split
...
httpd: buffer a firmware upload's part header before streaming
2026-08-30 16:48:53 +00:00
René van Dorst
1db30f22de
Merge pull request #330 from vDorst/SRAM-easy-changes
...
Sram easy changes
2026-08-29 18:33:29 +00:00
René van Dorst
146771f5ca
Merge pull request #362 from bloqaudio/fix/v210-bank0
...
leds: move the SWTG018AS-V2.1.0 custom LED init to BANK2
2026-08-27 16:32:09 +02:00
René van Dorst
bf0bea1edd
Remove register keyword from all the function arguments.
...
Adds no value.
2026-08-26 21:52:31 +02:00
René van Dorst
907ad08830
uip: uip_arp_update() put more arguments in xdata
...
Saves 7-bytes.
2026-08-26 20:51:32 +02:00
René van Dorst
7cf0115182
httpd: scan_header() put argument on xdata
...
Saves 2 bytes
2026-08-26 20:51:32 +02:00
René van Dorst
adfbead438
syslog: syslog_callback() put local variables on xdata.
...
Save atleast 2 bytes.
2026-08-26 20:51:32 +02:00
René van Dorst
301774040b
uip: place some pointer in xdata.
...
Saves 2 bytes.
2026-08-26 20:51:32 +02:00