<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dpibreak.git/src/main.rs, branch v0.4.3</title>
<subtitle>System-wide DPI circumvention with minimal configuration
</subtitle>
<id>http://git.dilluti0n.com/dpibreak.git/atom?h=v0.4.3</id>
<link rel='self' href='http://git.dilluti0n.com/dpibreak.git/atom?h=v0.4.3'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/'/>
<updated>2026-02-16T04:06:43Z</updated>
<entry>
<title>Log version information on startup</title>
<updated>2026-02-16T04:06:43Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-02-16T04:06:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=978c3658ede83ef9b5c0c38ee554f88c8de0bc48'/>
<id>urn:sha1:978c3658ede83ef9b5c0c38ee554f88c8de0bc48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>opt: decouple set_opt() from logging</title>
<updated>2026-02-15T17:52:03Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-02-15T17:49:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=b68753e878c440f1a11aa89f1f359764f1609734'/>
<id>urn:sha1:b68753e878c440f1a11aa89f1f359764f1609734</id>
<content type='text'>
set_opt() was logging each option as it set them, which created a
tight coupling between option initialization and log output timing.
This was particularly problematic for daemon mode: daemonize must
happen after set_opt() (to know whether -D was passed) but before
logging (so output goes to the log file, not stdout).

Split into set_opt() -&gt; InitializedOpts and InitializedOpts::log(),
using a typestate pattern to enforce at compile time that log() cannot
be called before set_opt(). This lets each platform's bootstrap()
handle daemonization between the two steps:

    let initialized = opt.set_opt()?;
    platform::bootstrap()?;   // daemonize here if needed
    initialized.log();        // now safe to log

Also:
- Move daemonize_1() into platform::bootstrap() on both platforms
- Make daemonize_1() / service_main() private to their platform modules
- Fix the long-standing TODO about using log_println in daemonize()
</content>
</entry>
<entry>
<title>linux: repurpose bootstrap to do things before requiring cleanup</title>
<updated>2026-02-15T16:25:16Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-02-15T16:20:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=b07153539ca5b8674ba15dece87883bae1056900'/>
<id>urn:sha1:b07153539ca5b8674ba15dece87883bae1056900</id>
<content type='text'>
</content>
</entry>
<entry>
<title>linux: extract PID_FILE constant for reuse</title>
<updated>2026-02-15T13:13:35Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-02-15T13:05:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=f31938fd8eea3d05f9e62daee236cf7c56ade227'/>
<id>urn:sha1:f31938fd8eea3d05f9e62daee236cf7c56ade227</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Consolidate setup logic into run()</title>
<updated>2026-02-15T13:04:25Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-02-15T13:01:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=3cb2c192454964c2ae01e196eaa7fdd6434efeb5'/>
<id>urn:sha1:3cb2c192454964c2ae01e196eaa7fdd6434efeb5</id>
<content type='text'>
The bootstrap/run separation was unnecessary. Move all initialization
(cleanup + nftables setup): into run() and skip bootstrap in daemon
mode. We repurpose the bootstrap() function to only run in non-daemon
mode for future foreground-only initialization.

- Add OPT_DAEMON option to detect daemon mode
- Move cleanup() and install_rules() from bootstrap() to run()
- Make bootstrap() a no-op (only called in non-daemon mode)
</content>
</entry>
<entry>
<title>opt: refactor to detach parse_args and set_opt</title>
<updated>2026-02-15T06:59:26Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-02-15T02:56:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=40fc4485e56414ab379b2332a9994a23af16eb3f'/>
<id>urn:sha1:40fc4485e56414ab379b2332a9994a23af16eb3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor main.rs; modulize opt.rs and pkt.rs</title>
<updated>2026-01-16T07:29:31Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-01-16T06:22:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=0dffd9a4df59b503eaaf26524f17f58831d01eec'/>
<id>urn:sha1:0dffd9a4df59b503eaaf26524f17f58831d01eec</id>
<content type='text'>
Move option parsing to opt.rs and packet handling to pkt.rs from
main.rs
</content>
</entry>
<entry>
<title>pkt: support overriding TCP checksum (badsum) in split_packet_0</title>
<updated>2026-01-16T04:12:13Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-01-14T11:27:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=8ea02a7b1a5aada8726607891e3a50785e9a729b'/>
<id>urn:sha1:8ea02a7b1a5aada8726607891e3a50785e9a729b</id>
<content type='text'>
- Extend split_packet_0 to optionally override TCP checksum.
- Compute L3 header length for IPv4/IPv6 and patch checksum field when requested.
- Wire fake_clienthello to set checksum to 0 when fake_badsum() is enabled.
</content>
</entry>
<entry>
<title>Add option --fake-badsum</title>
<updated>2026-01-14T11:01:40Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-01-14T11:01:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=6e2cecf774e84b0a635898b8f823cdbee88d4ce1'/>
<id>urn:sha1:6e2cecf774e84b0a635898b8f823cdbee88d4ce1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix option --fake did not do anything</title>
<updated>2026-01-05T11:00:31Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2026-01-05T11:00:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/dpibreak.git/commit/?id=ff14ece77e72caaa635eb7b97aeb83b1536aec46'/>
<id>urn:sha1:ff14ece77e72caaa635eb7b97aeb83b1536aec46</id>
<content type='text'>
Fake was enabled by default.....
</content>
</entry>
</feed>
