Gisle Vanem

Results 133 comments of Gisle Vanem

We can still use similar code like (untested): ```c int curlx_open (const char *file, int flags) { #ifdef _WIN32 if (strlen(file) >= MAX_PATH) { wchar_t w_file [32*1024 + 1]; snwprintf(w_file...

I already had the `HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled` set to 1 as mentioned in your MSDN link. So just changing my .bat file to say `%~dp0\src\curl.exe -vT \\?\%LONG_FILE% %URL%`, the `open()` works fine....

This is a normal closure of the connection. Add `CURLOPT_VERBOSE` to your code see why it gets closed. Or try the same in `curl -v ` and different SSL backends:...

Trying to analyse this issue with `CURLDEBUG` enabled: ```diff --- a/main.cpp 2022-04-25 10:30:40 +++ b/main.cpp 2022-04-25 10:30:44 @@ -2,13 +2,28 @@ #include #include +#ifdef CURLDEBUG + extern "C" { +...

I noted that the file `mega/mega_http_parser.h` may define basic types like `u_int64_t` Why? IMHO, all such basic types should go into `mega/types.h`. I guess the above problem is due to...

> Does it make sense? I guess so. But's too much hassle to install libpcap headers etc. just to use it. So I'll just delete (and recreate) `VERSION` as needed.

I don't object to the change, but now the main() function is in excess of 1000 lines. Can we move the getopt switch-statement to a new function? parse_cmdline(). BTW. Why...

A patch for what exactly? Here is something to start with. My wish is to put minimal code inside the getopt() switch. So I've added a `Dflag` for option '-D'...

There should be a: ``` char ebuf[PCAP_ERRBUF_SIZE]; ``` in there too.

I cocked it up. Here is a patch that actually compiles: ``` diff --git a/tcpdump.c b/tcpdump.c index 1962789..19d7f2b 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -98,6 +98,7 @@ extern int SIZE_BUF;...