<aparcar[m]> anyone else having issues with this new linksys 8450 device?
<aparcar[m]> ugh fu matrix
philipp64 has joined #openwrt-devel
<Grommish> Does anyone know when Package/xxx i read in the build system? I've got conditional DEPENDS to try and keep the size down when certain options aren't needed.. I don't thik it would be read until make menuconfig is run again, which won't work.
<Grommish> example, if the nflog option is selected, I want to add +libnet-1.2.x +libnetfilter-log +libnetfilter-queue +libnfnetlink to the DEPENDS so they get installed
philipp64 has quit [Ping timeout: 260 seconds]
<guidosarducci> Grommish: what's the definition of "nflog option"? Config variable, KCONFIG, etc?
<Grommish> guidosarducci: Suricata option, not kmod, but it means I need to add those above (for example) to Package/suricata6 DEPENDS so it gets installed properly
<Grommish> I don't want to have the buid system install 4 packages if they aren't needed
<Grommish> or like libmagic and file, which isn't needed unless suricata is built to be libmagic aware
<guidosarducci> Grommish: so how do you define that Suricata option in our build system?
<Grommish> guidosarducci: But, it only seems to read the Package/suricata6 one time, so I'm not sure how to do it without being tacky and just adding everything
<guidosarducci> Grommish: that's where it's used, I asked where it's defined. Is it in our build system? Sounds like no. Without a better picture of how things are set up and how they fail for you, difficult to help.
<Grommish> The deps don't get set, so the build system doesnt pull in the additional libraries. I think it only reads the DEPENDS once, so I'm not sure how to introduce additinal depends based on the if the option that requires them is selected
<Grommish> So, yes, I'm referring to the build system itself :)
<Grommish> The way I linked, it added the CONFIGURE_ARGS without issues, but doesn't add th additiona DEPENDS to support that option
ashkan has joined #openwrt-devel
<Grommish> guidosarducci: I echo out the SURICATA_EXTRA_DEPENDS as a sanity check, and it read as +luajit +libmaxminddb +libmagic +file +libhiredis +libevent2 +libnet-1.2.x +libnetfilter-log +libnetfilter-queue +libnfnetlink +luajit +libmaxminddb +libmagic +file +libhiredis +libevent2 +libnet-1.2.x +libnetfilter-log +libnetfilter-queue +libnfnetlink - but they aren't present
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #openwrt-devel
philipp64 has joined #openwrt-devel
hbug__ has joined #openwrt-devel
guidosarducci has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
guidosarducci has joined #openwrt-devel
philipp64 has quit [Ping timeout: 252 seconds]
hbug_ has quit [Ping timeout: 240 seconds]
philipp64 has joined #openwrt-devel
tobleminer-tSYS has quit [Quit: AS4242423214]
tobleminer-tSYS has joined #openwrt-devel
philipp64 has quit [Quit: philipp64]
kristrev has quit [Read error: Connection reset by peer]
kristrev has joined #openwrt-devel
victhor has quit [Ping timeout: 260 seconds]
<ashkan> Grommish: do we have rust now?
philipp64 has joined #openwrt-devel
philipp64 has quit [Ping timeout: 240 seconds]
<guidosarducci> Grommish: any luck? What was wrong with the usual "DEPENDS:= +SURICATA_ENABLE_NFLOG:libnetfilter-log" for example?
<Grommish> guidosarducci: I'd assume nothing other than I didn't fully understand the deps wiki? :) It's why I ask
<Grommish> ashkan: Depends on the target, but probably
<Grommish> ashkan: If it isn't a supported target, it's easy enough to add
<Grommish> guidosarducci: I will string them out. I appreciate the correction! :)
<ashkan> Grommish cool, nice to see Suricata finally makes it to packages
poljar has joined #openwrt-devel
<ashkan> Grommish: some thoughts on your pr though, isn't it a bit harsh to delete the entire log directory on service start ? :D
<Grommish> ashkan: I doubt the use-case will be super high. Most Opennwrt machine won't have the grunt to actually use it
<Grommish> ashkan: Probably, although it's in /tmp anyway
poljar1 has quit [Ping timeout: 240 seconds]
<Grommish> ashkan: For testing purposes I clear everything out.. it can't be merged until rust is, and rust is still draft.. so I"m not concerned overall about it getting used before hand :) But I need a better way to check the pidfile.. I've been chasing down things and not really paying attention
<Grommish> ashkan: certainly any comments, suggestions, edits, are welcome
<ashkan> Grommish: I may be wrong but those ones who run suricata most def need the logs to be there and rotated even transfered to some SIEM stuff . most devices provide usb and sd slots for extra storage.
<Grommish> ashkan: You are not wrong :) and it won't stay that way. log_dir is/will be a configuration setting
<Grommish> ashkan: I'm just trying to 1) settle out the dependancies and 2) see if ebpf will work on x86
<ashkan> Grommish: maybe also add a define Package/suricata6/conffiles section ? cause otherwise the config files won't be included in the backups
<Grommish> ashkan: Gotcha. :) Let me finish this build real quick because I'll need to push other changes anyway
<Grommish> ashkan: Something to keep in mind.. I don't know Suricata, I don't know rust, and I don't really know programming, so pointing out things like that isn't a bad thing :D
<Grommish> I'm just persistent
<ashkan> Grommish: as long as you can keepup with the community high standards :D
<ashkan> Grommish: looking at my own old pr I'm doing a weird [ -f /var/run/suricata.pid -a -z $(pgrep suricata) ] before removing the PID file https://github.com/ashkanj/packages/blob/suricata-stable/net/suricata/files/suricata.init#L21
<ashkan> not sure but maybe that was because to prevent randomly deleting the pid file when the service was running fine
<Grommish> Well, what I was seeing is that the pidfile wouldn't get removed and the service would just deathloop
<ashkan> Grommish: yep I saw that too
<ashkan> Grommish: but I'm talking about a situation when someone triggers start service multiple times in a row. IDK maybe I did something wrong or this is not the case anymore
<Grommish> I need to work on it, but that's on-device work.. meh. But, service suricata start/stop should keep the system from loading multiple times
<Grommish> My issue is that it didn't tell me anywhere but the logs that the pidfile was present and assumed it was already running
<ashkan> Grommish: I think that could be trouble some, I can look into it if it compiles without bleeding :D
<Grommish> ashkan: what target arch?
<ashkan> Grommish: also consider a reload service as it definately needed when rules get updated https://openwrt.org/docs/guide-developer/procd-init-scripts#reloading_service_setup
<ashkan> a USR2 signal did the job back then
<Grommish> ashkan: Yes, and I need to fake a script to setup suricata-update on the device eventually
<ashkan> Grommish: X86 ?
<Grommish> ashkan: I mean, what would you be testing on target wise
<Grommish> if its x86_64, then you're fine for rust, suricata and libhtp
<ashkan> Grommish: I can always spare a qemu machine :D
<Grommish> mips, mipsel, mips64, aarch64 and arm (I think) are also good
philipp64 has joined #openwrt-devel
<ashkan> Grommish: I used to test it on an ubnt er-pro router which I don't have anymore and I doubt it would run on anything without a serious cpu
<Grommish> runs on the er10x
<Grommish> how well is tbd
<ashkan> I may be able to benchmark it on a rb750gr3 as well
philipp64 has quit [Ping timeout: 246 seconds]
goliath has joined #openwrt-devel
<ashkan> Grommish: I don't seem to find the libhtp in your mentioned repo https://github.com/Itus-Shield/packages/ how do you compile yours ?
<ashkan> Grommish: and where's the rust ?
philipp64 has joined #openwrt-devel
black_ant has joined #openwrt-devel
black_ant has joined #openwrt-devel
black_ant has quit [Changing host]
<ashkan> Grommish: Depends on: PACKAGE_zlib ~> this makes suricata invisible in the menuconfig unless you select the zlib package
rmilecki has joined #openwrt-devel
Huntereb has quit [Read error: Connection reset by peer]
<Grommish> ashkan: zlip is a dependancy of libhtp which is a dep of suricata
<Grommish> err zlib
<Grommish> It complains about circular if you add it both places
<Grommish> besides, I wouldn't set a dependancy in the menuconfig for zlib, where do you see that?
Huntereb has joined #openwrt-devel
<ashkan> Grommish: suricata didn't show up in the menuconfig until I selected zlib manually
<Grommish> You've got something else going on then
<Grommish> because zlib isn't even a Suricata dep in the Makefile I use, because it's imported from libhtp
<ashkan> it's a clean base just pulled from openwrt
<Grommish> Oh, I see what happened
<Grommish> My last patch removed the + from the +zlib, but not the zlib part >_<..
<Grommish> Actuallyk I just haven't pushed my last run
<Grommish> But, since it isn''t working, I"m holding off on it
valku has joined #openwrt-devel
valku has quit [Client Quit]
dedeckeh has joined #openwrt-devel
plntyk has quit [Quit: Leaving]
decke has joined #openwrt-devel
Tost has joined #openwrt-devel
rmilecki has quit [Quit: Konversation terminated!]
PaulFertser has quit [Ping timeout: 250 seconds]
PaulFertser has joined #openwrt-devel
zkrx has quit [Ping timeout: 240 seconds]
ivanich has joined #openwrt-devel
Ivan__83 has quit [Ping timeout: 240 seconds]
zkrx has joined #openwrt-devel
caiortp has joined #openwrt-devel
dedeckeh has quit [Quit: Connection closed]
user^ has joined #openwrt-devel
zkrx has quit [Disconnected by services]
Hayate has joined #openwrt-devel
user- has quit [Quit: quit]
Nyakajima has quit [Ping timeout: 260 seconds]
zkrx has joined #openwrt-devel
danitool has joined #openwrt-devel
Borromini has joined #openwrt-devel
<Grommish> ashkan: You're building for X86_64, yes?
<ashkan> Grommish: yep
<Grommish> ashkan: I fixed issues with that.. One sec
caiortp has quit [Ping timeout: 240 seconds]
plntyk has joined #openwrt-devel
<Grommish> ashkan: Actually
<Grommish> ashkan: I had issues with x86_64, but your issue looks like it isn't using the staging_dir
<Grommish> ashkan: "/usr/lib64/ccache/c++"
<Grommish> Nothing should be pointing to the HOST
sbrown_ has joined #openwrt-devel
<Grommish> that should say something like /home/xxx/openwrt/staging_dir/host/usr/lib64/ccache/c++ .. either host or hostpkg
sbrown has quit [Ping timeout: 246 seconds]
<Grommish> BUt gimme about 20 minutes and I'll push a rust change
Tycale has quit [Ping timeout: 260 seconds]
<Grommish> because there was an issue with x86_64-unknown-linux-musl and x86_64-openwrt-linux-musl
Tycale has joined #openwrt-devel
<Grommish> err.. x86_64 was reporting as -pc-linux in some places and unknown-linux in others, and then openwrt-linux in rust itself
Borromini has quit [Ping timeout: 252 seconds]
Huntereb has quit [Read error: Connection reset by peer]
Huntereb has joined #openwrt-devel
noltari has quit [Quit: Bye ~ Happy Hacking!]
noltari has joined #openwrt-devel
dedeckeh has joined #openwrt-devel
dedeckeh has quit [Quit: Connection closed]
<Grommish> ashkan: I pushed updates for rust and suricata.. Including the stuff you were asking/commenting about.. Let me know if I missed any
caiortp has joined #openwrt-devel
Huntereb has quit [Read error: Connection reset by peer]
Huntereb has joined #openwrt-devel
guidosarducci has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
guidosarducci has joined #openwrt-devel
papaja has joined #openwrt-devel
victhor has joined #openwrt-devel
dedeckeh has joined #openwrt-devel
csrf has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
csrf has joined #openwrt-devel
caiortp has quit [Ping timeout: 246 seconds]
Borromini has joined #openwrt-devel
zatwai has quit [Ping timeout: 246 seconds]
caiortp has joined #openwrt-devel
csrf has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
csrf has joined #openwrt-devel
junland has quit [Quit: %ZNC Disconnected%]
junland has joined #openwrt-devel
brickfat has joined #openwrt-devel
dedeckeh has quit [Quit: Connection closed]
Borromini has quit [Ping timeout: 260 seconds]
Tost has quit [Ping timeout: 252 seconds]
dedeckeh has joined #openwrt-devel
Borromini has joined #openwrt-devel
brickfat has quit [Quit: Leaving]
shibboleth has joined #openwrt-devel
sbrown_ has quit [Ping timeout: 268 seconds]
Borromini has quit [Quit: Lost terminal]
caiortp has quit [Ping timeout: 240 seconds]
valku has joined #openwrt-devel
sbrown has joined #openwrt-devel
decke has quit [Quit: Leaving.]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
Night-Shade has joined #openwrt-devel
Night-Shade has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shibboleth has quit [Quit: shibboleth]
jas4711 has quit [Ping timeout: 240 seconds]
kakaka has quit [Ping timeout: 240 seconds]
brickfat has joined #openwrt-devel
f00b4r0 has joined #openwrt-devel
zkrx has quit [Ping timeout: 268 seconds]
kakaka has joined #openwrt-devel
zkrx has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
dangole has joined #openwrt-devel
brickfat has quit [Quit: Leaving]
brickfat has joined #openwrt-devel
brickfat has quit [Quit: Leaving]
brickfat has joined #openwrt-devel
<ashkan> Grommish:
<ashkan> make[3] -C package/rust host-compile
<ashkan> ERROR: package/rust [host] failed to build.
jas4711 has joined #openwrt-devel
brickfat has quit [Quit: Leaving]
goliath has joined #openwrt-devel
papaja has quit [Quit: Connection closed]
kristrev has quit [Quit: Lost terminal]
damex has quit [Ping timeout: 245 seconds]
funman_ is now known as funman
ivanich has quit [Quit: Konversation terminated!]
f00b4r0 has quit [Ping timeout: 260 seconds]
f00b4r0 has joined #openwrt-devel
jas4711 has quit [Remote host closed the connection]
Ycarus has quit [Ping timeout: 258 seconds]
Ycarus has joined #openwrt-devel
dedeckeh has quit [Quit: Connection closed]
ivanich has joined #openwrt-devel
muhaha has joined #openwrt-devel
llewellynkbc has joined #openwrt-devel
<rsalvaterra> Heh. This time I won't be bumping 5.10 to 5.10.27.
<rsalvaterra> Not confident enough to manually refresh patches to the bowels of switchdev (net/bridge/br_switchdev.c).
llewellynkbc has quit [Quit: Connection closed]
Tost has joined #openwrt-devel
<ldir> ha - funny you should mention that - I'm looking it how spiky it is as well - hhmmmmm! :-)
<rsalvaterra> ldir: Welcome to the party, pal. :P
<ldir> I'm also trying to work out what I think about https://forum.openwrt.org/t/opening-taxi-app-oom-reaper-kills-dnsmasq/91052
<rsalvaterra> Ouch. Is dnsmasq leaking…?
<ldir> that has 2 aspects I don't understand/like - 1) how does linux account for memory of forked processes (ie fork only instead of the usual fork/exec)
<rsalvaterra> Oh, adblock, I see. That can increase memory usage by *a lot*.
<ldir> is it 'just' a case that add a bit of swap and linux won't worry that it can't potentially page things out.
<ldir> that solves the OOM, which I regard as the smaller problem... the larger problem implied is...
<ldir> a malicious/rogue process on your network can occupy all 20 TCP DNS processing slots (processes!) with something like netcat and denial of service DNS over TCP
Tapper has joined #openwrt-devel
<ldir> or am I misunderstanding.
Borromini has joined #openwrt-devel
<ldir> rsalvaterra: oh and I should ask...have I just rapidly reversed away from the Nakatomi building in a hail of bullets? :-D
<rsalvaterra> You got the reference right! :D
<ldir> Classic Christmas movie :-)
<rsalvaterra> Best villain ever!
<ldir> https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q1/014907.html is Simon's view on the issue... and I'm not convinced but then I probably don't understand - and I certainly don't have a magic answer.
dedeckeh has joined #openwrt-devel
<rsalvaterra> Wait, dnsmasq forks itself for a new TCP connection when the previous instance is busy…?
<rsalvaterra> Did I understand correctly, or am I totally out to lunch (dinner, at this time)?
brickfat has joined #openwrt-devel
danitool has joined #openwrt-devel
<ldir> AFAIUI and this goes back to the dawn of dnsmasq time, tcp queries are handled by child processes, I think this is to prevent the stateless UDP main process from blocking due to stateful TCP.
<rsalvaterra> Jesus…! So it desperately need a proper event loop…
<rsalvaterra> *needs
<ldir> but that is VERY simplistic understanding of a rumour
muhaha has quit [Quit: Connection closed]
muhaha has joined #openwrt-devel
<rsalvaterra> Maybe… I'm not at all familiar with the internals of the thing. But it could use something like libevent/libev…
<rsalvaterra> Speaking of libevent…
* rsalvaterra wonders if it already implements io_uring support…
brickfat_ has joined #openwrt-devel
brickfat_ has quit [Remote host closed the connection]
dedeckeh has quit [Quit: Connection closed]
dangole has quit [Remote host closed the connection]
brickfat has quit [Ping timeout: 268 seconds]
<Grommish> ashkan: Are you using MUSL? MUSL is dynamically linked, and I"m showing -static-libstdc++" in your log
Borromini has quit [Quit: Lost terminal]
<Grommish> guidosarducci: The eBPF error in Suricata has to do with the Clang version, I'm being told. I think I'm going to end up having to learn another system. But. mangix, mangix loves Clang and I'm hoping with help ;p
brickfat has joined #openwrt-devel
<Grommish> ashkan: You should know that it takes a bloody long time to compile Rust toolchain the first time. My basic rebuild without a clean is < 5 minutes.. about 15 with a clean.. On the initial rust build, it took 2 hours just for the rust toolchain
dorf has joined #openwrt-devel
<Grommish> ashkan: Do me a favor.. go into menuconfig / lang and select Rust.. I was having issues with that before. Just select it and then build the toolchain separately via make -j1 V=sc package/feeds/packages/rust/host/{clean,compile}
<Grommish> ashkan: It works, just isnt ready for repo time for sure
<Grommish> ashkan: You should end up with dl/rust-1.50.0-x86_64-openwrt-linux-musl-install.tar.xz
<Grommish> and dl/rust-1.50.0-x86_64-unknown-linux-gnu-install.tar.xz once you're done
brickfat has quit [Quit: Leaving]
Dracos-Carazza has quit [Ping timeout: 246 seconds]
Dracos-Carazza has joined #openwrt-devel
Tapper has quit [Ping timeout: 240 seconds]
Tapper has joined #openwrt-devel
Dracos-Carazza has quit [Ping timeout: 260 seconds]
muhaha has quit [Quit: Connection closed]
Dracos-Carazza has joined #openwrt-devel
zkrx has quit [Ping timeout: 252 seconds]
zkrx has joined #openwrt-devel
hadam88 has joined #openwrt-devel
<hadam88> Hi!
<hadam88> Can anyone help me understand the MBR used by the u-boot bootloader? It's the MBR of a router.
<hadam88> I look at the values in hex, but I can't figure out the structure.
<hadam88> Thanks!
<hadam88> Adam
swex has quit [Quit: swex]
swex has joined #openwrt-devel
<hadam88> Why do all columns 0 and 8 start with 0x10?
<hadam88> Why is there only real data in columns 3 and 11?
<hadam88> Why is there 0x01 in columns 2 and 10 from row 0x00000010?
<hadam88> Thanks for your help!
<hadam88> 0x00000000 10 00 00 FF 00 00 00 00 10 00 00 FD 00 00 00 00 |................|
<hadam88> 0x00000010 10 00 01 87 00 00 00 00 10 00 01 85 00 00 00 00 |................|
<hadam88> 0x00000020 10 00 01 83 00 00 00 00 10 00 01 81 00 00 00 00 |................|
Tapper has quit [Ping timeout: 260 seconds]
<Hauke> hadam88: embedded devices normally do not have an MBR
<Hauke> MBR is PC specific
<Hauke> normally every SoC family uses a difefernt way to load the inital code from flash and expects a different format
zkrx has quit [Ping timeout: 240 seconds]
Tapper has joined #openwrt-devel
<dhewg> Hauke: could you please merge two lantiq dsl related PRs? https://github.com/openwrt/openwrt/pull/3524 and https://github.com/openwrt/openwrt/pull/3660 , both are only single small pathes, and I'd say ready to go, it should only take a momemnt of your time!
zkrx has joined #openwrt-devel
black_ant has quit [Ping timeout: 246 seconds]
swex has quit [Quit: swex]
swex has joined #openwrt-devel
ivanich has quit [Quit: Konversation terminated!]
Tost has quit [Ping timeout: 268 seconds]
Grommish_ has joined #openwrt-devel
fork_ has joined #openwrt-devel
early` has joined #openwrt-devel
lucenera0 has joined #openwrt-devel
EqUaTe_ has joined #openwrt-devel
Net147_ has joined #openwrt-devel
qgTG_ has joined #openwrt-devel
ecloud_ has joined #openwrt-devel
qgTG has quit [Ping timeout: 265 seconds]
DeX77 has quit [Ping timeout: 265 seconds]
Net147 has quit [Ping timeout: 265 seconds]
meffe has quit [Ping timeout: 265 seconds]
fork has quit [Read error: Connection reset by peer]
ecloud has quit [Write error: Connection reset by peer]
zjason has quit [Read error: Connection reset by peer]
early has quit [Ping timeout: 265 seconds]
meffe has joined #openwrt-devel
Katana_St has joined #openwrt-devel
EqUaTe has quit [Ping timeout: 265 seconds]
yuvadm has quit [Ping timeout: 265 seconds]
EqUaTe_ is now known as EqUaTe
DeX77 has joined #openwrt-devel
hsp_ has joined #openwrt-devel
yuvadm has joined #openwrt-devel
Grommish has quit [Read error: Connection reset by peer]
Oddstr13 has quit [Ping timeout: 240 seconds]
hsp has quit [Ping timeout: 240 seconds]
Floppe__ has joined #openwrt-devel
Floppe has quit [Read error: Connection reset by peer]
lucenera has quit [Ping timeout: 240 seconds]
lemmi has quit [Ping timeout: 240 seconds]
qdel has quit [Ping timeout: 240 seconds]
Katana_Steel has quit [Ping timeout: 240 seconds]
lucenera0 is now known as lucenera
qdel has joined #openwrt-devel
Oddstr13 has joined #openwrt-devel
lemmi has joined #openwrt-devel
dorf has quit [Remote host closed the connection]
dorf has joined #openwrt-devel
<guidosarducci> ldir: you're on the right track regarding dnsmasq: it's a memory accounting issue at root, usually manifesting with large blocklists. I was burned by this a few years back and worked through the details, but never had time or knowledge of dnsmasq internals to follow up with the right solution. All the "fixes" I've seen proposed are kludges that just move goalposts without resolving anything. Let me try to reload my memory
<guidosarducci> and post a suggestion to the ML. Or if you know the internals and want to try some changes let me know.
Radu-Mamy has quit [Remote host closed the connection]
Tapper has quit [Ping timeout: 240 seconds]
Radu-Mamy has joined #openwrt-devel