• Figure which pkt goes to which node?

    From Nelgin@1:103/705 to DOVE-Net.Synchronet_Sysops on Thu Sep 6 18:06:26 2018
    when sbbsehco creates a .pkt file. Is there a way to tell which node it is intended for? Trying to help Terry out, he's got a bunch of packets in
    outgoing such as 4c967bf1.pkt 4c967bf2.pkt etc but they should be in each
    nodes outgoing dir. I can move them for him, but I need to figure which go where.

    Thx

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nelgin on Thu Sep 6 18:21:37 2018
    Re: Figure which pkt goes to which node?
    By: Nelgin to DOVE-Net.Synchronet_Sysops on Thu Sep 06 2018 06:06 pm

    when sbbsehco creates a .pkt file. Is there a way to tell which node it is intended for? Trying to help Terry out, he's got a bunch of packets in outgoing such as 4c967bf1.pkt 4c967bf2.pkt etc but they should be in each nodes outgoing dir. I can move them for him, but I need to figure which go where.

    Use pktdump or a similar utility to view the packet headers and that will tell you the destination address of each packet file.

    digital man

    Synchronet/BBS Terminology Definition #24:
    FTN = FidoNet Technology Network
    Norco, CA WX: 78.1oF, 59.0% humidity, 9 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Fri Sep 7 01:09:58 2018
    Re: Figure which pkt goes to which node?
    By: Digital Man to Nelgin on Thu Sep 06 2018 06:21 pm

    Use pktdump or a similar utility to view the packet headers and that will tell you the destination address of each packet file.

    Is pktdump and msgdump supposed to be in my exec directory? They are not.

    How would someone go about compiling those two programs?

    Ttyl :-),
    Al


    ... For people who like peace & quiet - A phoneless cord!

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Al on Fri Sep 7 01:34:51 2018
    Re: Figure which pkt goes to which node?
    By: Al to Digital Man on Fri Sep 07 2018 01:09 am

    Re: Figure which pkt goes to which node?
    By: Digital Man to Nelgin on Thu Sep 06 2018 06:21 pm

    Use pktdump or a similar utility to view the packet headers and that will tell you the destination address of each packet file.

    Is pktdump and msgdump supposed to be in my exec directory? They are not.

    No, they'not like official parts of Synchronet.

    How would someone go about compiling those two programs?

    pktdump for Windows can be downloaded here (you don't need to compile it): ftp://vert.synchro.net/main/BBS/pktdump.exe

    Compiling for *nix, would be like:
    gcc -DHAS_INTTYPES_H=1 -I../xpdev pktdump.c -o pktdump

    And similar for msgdump.c -> msgdump for *nix.

    digital man

    Synchronet "Real Fact" #67:
    SEXYZ is as a 32-bit replacement for [F]DSZ, CE-XYZ and other protocol drivers. Norco, CA WX: 63.8oF, 89.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Fri Sep 7 02:08:16 2018
    Re: Figure which pkt goes to which node?
    By: Digital Man to Al on Fri Sep 07 2018 01:34 am

    Compiling for *nix, would be like:
    gcc -DHAS_INTTYPES_H=1 -I../xpdev pktdump.c -o pktdump

    When I run that command I get..

    In file included from fidodefs.h:39:0,
    from pktdump.c:5:
    ../xpdev/gen_defs.h:165:17: error: conflicting types for rCyint8_trCO
    typedef char int8_t;
    ^
    In file included from ../xpdev/gen_defs.h:62:0,
    from fidodefs.h:39,
    from pktdump.c:5:
    /usr/include/sys/types.h:194:1: note: previous declaration of rCyint8_trCO was here
    __intN_t (8, __QI__);
    ^
    In file included from fidodefs.h:39:0,
    from pktdump.c:5:
    ../xpdev/gen_defs.h:167:17: error: conflicting types for rCyint32_trCO
    typedef long int32_t;
    ^
    In file included from ../xpdev/gen_defs.h:62:0,
    from fidodefs.h:39,
    from pktdump.c:5:
    /usr/include/sys/types.h:196:1: note: previous declaration of rCyint32_trCO was
    here
    __intN_t (32, __SI__);
    ^
    In file included from fidodefs.h:39:0,
    from pktdump.c:5:
    ../xpdev/gen_defs.h:179:30: error: conflicting types for rCyint64_trCO
    typedef signed long long int int64_t;
    ^
    In file included from ../xpdev/gen_defs.h:62:0,
    from fidodefs.h:39,
    from pktdump.c:5:
    /usr/include/sys/types.h:197:1: note: previous declaration of rCyint64_trCO was
    here
    __intN_t (64, __DI__);
    ^

    Is there something more I need to do?

    Ttyl :-),
    Al


    ... Crime doesn't pay... does that mean my job is a crime?

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Al on Fri Sep 7 11:19:54 2018
    Re: Figure which pkt goes to which node?
    By: Al to Digital Man on Fri Sep 07 2018 02:08 am

    Re: Figure which pkt goes to which node?
    By: Digital Man to Al on Fri Sep 07 2018 01:34 am

    Compiling for *nix, would be like:
    gcc -DHAS_INTTYPES_H=1 -I../xpdev pktdump.c -o pktdump

    When I run that command I get..

    In file included from fidodefs.h:39:0,
    from pktdump.c:5:
    ../xpdev/gen_defs.h:165:17: error: conflicting types for rCyint8_trCO
    typedef char int8_t;
    ^
    In file included from ../xpdev/gen_defs.h:62:0,
    from fidodefs.h:39,
    from pktdump.c:5:
    /usr/include/sys/types.h:194:1: note: previous declaration of rCyint8_trCO was here
    __intN_t (8, __QI__);
    ^
    In file included from fidodefs.h:39:0,
    from pktdump.c:5:
    ../xpdev/gen_defs.h:167:17: error: conflicting types for rCyint32_trCO
    typedef long int32_t;
    ^
    In file included from ../xpdev/gen_defs.h:62:0,
    from fidodefs.h:39,
    from pktdump.c:5:
    /usr/include/sys/types.h:196:1: note: previous declaration of rCyint32_trCO was
    here
    __intN_t (32, __SI__);
    ^
    In file included from fidodefs.h:39:0,
    from pktdump.c:5:
    ../xpdev/gen_defs.h:179:30: error: conflicting types for rCyint64_trCO
    typedef signed long long int int64_t;
    ^
    In file included from ../xpdev/gen_defs.h:62:0,
    from fidodefs.h:39,
    from pktdump.c:5:
    /usr/include/sys/types.h:197:1: note: previous declaration of rCyint64_trCO was
    here
    __intN_t (64, __DI__);
    ^

    Is there something more I need to do?

    It worked for me. Maybe you mis-copy/pasted the command? Double-check the spelling of '-DHAS_INTTYPES_H=1'. If you're using a really old version of gcc, then you would need to remove that part, but I doubt you are.

    digital man

    Synchronet/BBS Terminology Definition #19:
    DTE = Data Terminal Equipment
    Norco, CA WX: 81.1oF, 57.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Fri Sep 7 12:41:09 2018
    Re: Figure which pkt goes to which node?
    By: Digital Man to Al on Fri Sep 07 2018 11:19 am

    It worked for me. Maybe you mis-copy/pasted the command? Double-check the spelling of '-DHAS_INTTYPES_H=1'. If you're using a really old version of gcc, then you would need to remove that part, but I doubt you are.

    My slackware has gcc 5.5.0. I get the same result with or without -DHAS_INTTYPES_H=1.

    This is what gcc -v gives me..

    Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/5.5.0/specs COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/5.5.0/lto-wrapper Target: x86_64-slackware-linux
    Configured with: ../gcc-5.5.0/configure --prefix=/usr --libdir=/usr/lib64 --man dir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-la nguages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-chec king=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib64/pytho n2.7/site-packages --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc 4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libs sp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --enable-ja va-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 --wit h-antlr-jar=/tmp/slackware64-14.2/gcc/antlr-runtime-3.4.jar --enable-java-awt=g tk --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build =x86_64-slackware-linux --host=x86_64-slackware-linux
    Thread model: posix
    gcc version 5.5.0 (GCC)

    Ttyl :-),
    Al


    ... Itisdifficulttobeverycreativewithonlyfiftysevencharacters

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to Al on Fri Sep 7 15:14:44 2018
    Al wrote:
    Re: Figure which pkt goes to which node?
    By: Digital Man to Al on Fri Sep 07 2018 11:19 am

    It worked for me. Maybe you mis-copy/pasted the command? Double-check the
    spelling of '-DHAS_INTTYPES_H=1'. If you're using a really old version of
    gcc, then you would need to remove that part, but I doubt you are.

    My slackware has gcc 5.5.0. I get the same result with or without -DHAS_INTTYPES_H=1.

    I just wane into /sbbs/src/sbbs3 and did make msgdump and a make pkgdump
    then moved the two binaries into the exec directory.


    bs@bbs:/sbbs/src/sbbs3$ make msgdump
    cc -MMD -fpic -DHAS_INTTYPES_H -DPOSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DSPEED_MACROS_ONLY -D_GNU_SOURCE -D_THREAD_SUID_BROKEN -DHAVE_VASPRINTF -ggdb -D_DEBUG -Wall -Wno-char-subscripts -DUSE_DOSEMU -DUSE_LINUX_CAPS -DJAVASCRIPT -I/usr/include/nspr -I/usr/include/nspr -I/home/bbs/sbbs/src/sbbs3/../../3rdp/gcc.linux.x64.debug/mozjs/include/js -DSTATIC_CRYPTLIB -DSTATIC_LIB -I/home/bbs/sbbs/src/sbbs3/../../3rdp/gcc.linux.x64.debug/cl -I/home/bbs/sbbs/src/sbbs3/../uifc -I/home/bbs/sbbs/src/sbbs3/../xpdev -DHAS_DEV_URANDOM -DURANDOM_DEV=\"/dev/urandom\" -DHAS_DEV_RANDOM -DRANDOM_DEV=\"/dev/random\" -DHAS_RANDOM_FUNC -I/usr/include -DLINK_LIST_THREADSAFE -DXPDEV_THREAD_SAFE -DHAS_DEV_URANDOM -DURANDOM_DEV=\"/dev/urandom\" -DHAS_DEV_RANDOM -DRANDOM_DEV=\"/dev/random\" -DHAS_RANDOM_FUNC -I/usr/include -I/home/bbs/sbbs/src/sbbs3/../smblib -I/home/bbs/sbbs/src/sbbs3/../conio -DHAS_VSTAT -I../comio -Lgcc.linux.x64.lib.debug -lutil -L/home/bbs/sbbs/src/sbbs3/../uifc/gcc.linux.x64.lib.debug -L/home/bbs/sbbs/src/sbbs3/../xpdev/gcc.linux.x64.lib.debug -L/home/bbs/sbbs/src/sbbs3/../smblib/gcc.linux.x64.lib.debug -L/home/bbs/sbbs/src/sbbs3/../conio/gcc.linux.x64.lib.debug -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu -L/home/bbs/sbbs/src/sbbs3/../../3rdp/gcc.linux.x64.debug/mozjs/lib -L/home/bbs/sbbs/src/sbbs3/../../3rdp/gcc.linux.x64.debug/cl msgdump.c -o msgdump

    You may get some warnings. Obviously all this gones onto one line.

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Al on Fri Sep 7 18:52:01 2018
    Re: Figure which pkt goes to which node?
    By: Al to Digital Man on Fri Sep 07 2018 12:41 pm

    Re: Figure which pkt goes to which node?
    By: Digital Man to Al on Fri Sep 07 2018 11:19 am

    It worked for me. Maybe you mis-copy/pasted the command? Double-check the spelling of '-DHAS_INTTYPES_H=1'. If you're using a really old version of gcc, then you would need to remove that part, but I doubt you are.

    My slackware has gcc 5.5.0. I get the same result with or without -DHAS_INTTYPES_H=1.

    That's pretty weird. Actually, sort of impossible. :-)

    The error you reported is on lines that are inside a block of code within:
    #if !defined(HAS_INTTYPES_H)
    ...
    #endif

    ... you might be confusing errors with warnings?

    I did some tests and confirmed the successful builds using:
    gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
    and
    gcc version 6.3.0 20170516 (Debian 6.3.0-18)

    digital man

    Synchronet/BBS Terminology Definition #30:
    IP = Internet Protocol
    Norco, CA WX: 80.0oF, 57.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Nelgin on Fri Sep 7 23:24:29 2018
    Re: Re: Figure which pkt goes to which node?
    By: Nelgin to Al on Fri Sep 07 2018 03:14 pm

    I just wane into /sbbs/src/sbbs3 and did make msgdump and a make pkgdump then moved the two binaries into the exec directory.

    That idea never even occurred to me.. :)

    You may get some warnings. Obviously all this gones onto one line.

    No errors at all, not even a warning. Thanks.

    Ttyl :-),
    Al


    ... Gone crazy, be back later, please leave message.

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Fri Sep 7 23:26:20 2018
    Re: Figure which pkt goes to which node?
    By: Digital Man to Al on Fri Sep 07 2018 06:52 pm

    My slackware has gcc 5.5.0. I get the same result with or without
    -DHAS_INTTYPES_H=1.

    That's pretty weird. Actually, sort of impossible. :-)

    Nothing is impossible, here at The Rusty MailBox!

    I builds error/warning free when I did as Nelgin suggested.. :)

    Ttyl :-),
    Al


    ... I tried to drown my problems.. they like beer too!


    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Sat Sep 8 01:13:49 2018
    Re: Figure which pkt goes to which node?
    By: Al to Digital Man on Fri Sep 07 2018 11:26 pm

    I builds error/warning free when I did as Nelgin suggested.. :)

    And thanks, BTW. Two good to have utilities.. :)

    Ttyl :-),
    Al


    ... Spent all my money on booze, boats & blonds. The rest was wasted.

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to Al on Sat Sep 8 03:45:37 2018
    Al wrote:
    Nothing is impossible, here at The Rusty MailBox!

    LOL...you should try being at the end of the line ;)

    Not only can we do the impossible, but we create it!

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)