[DGD]Problem with patching net package

Andreas Faerber af at lamb.ping.de
Wed Apr 21 13:47:25 CEST 1999


Hi there,

 I am having a problem while patching the Net Package for DGD. We are
running a DGD 1.1.46 with various patches (Maybe i should upgrade to
1.1.60 sometime?) and had the problem, that someone complained about a
hack attempt which originated from our machine. Well, either that was
a hack attempt or just some player playing from that site, i wanted to
patch the Net package in that way, that it only opens connections to
other machines, if that machine has already initiated a connection to
the Driver. (Like loggin' into the MUD).

 So i thought as a quick hack, i could change comm_connect in
comm.net.c that what that it checks, if the host to open the
connection to, is one of the hosts, a user (the users array) has a
connection to. Well, i get the following error when trying to compile
the new comm.net.c after adding a simple message..

#ifdef OPEN_CONNECTED_HOSTS_ONLY
    for(i = nusers; i--;) {
        c = users[i]->conn;
        message("%s\n", users[i]->conn->host);
    }
#endif
    conn = conn_connect(host, port, protocol);

 The #ifdef'd part is the part i added. The compile error i get is the
following:

comm.net.c: In function `comm_connect':
comm.net.c:307: dereferencing pointer to incomplete type

 I am not sure, if i am just missing something extremely obvious, or
if i am starting with a wrong approach, but why doesn't the compiler
like me? :)

Bye,
Andreas

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list