[HECnet] New bridge.c feedback

Boyanich, Alastair Alastair.Boyanich at au.fujitsu.com
Thu Jun 7 07:33:01 PDT 2012


Hi Johnny. New bridge.c compiled. Seems fine in GCC, MIPSpro is still
too strict. Build output and config are as follows:


jazz:~/src/HECnet[97]%cc -O2 -o bridge bridge.c -I/opt/skunkware/include
-L/opt/skunkware/lib -lpcap
cc-1515 cc: ERROR File = bridge.c, Line = 229
  A value of type "int" cannot be assigned to an entity of type "char
*".

          p = index(dst,':');
              ^

cc-1185 cc: WARNING File = bridge.c, Line = 578
  An enumerated type is mixed with another type.

      d->type = classify_packet(d);
                      ^

cc-1171 cc: WARNING File = bridge.c, Line = 684
  The indicated expression has no effect.

      if (port == 0) port == DPORT;
                                    ^

1 error detected in the compilation of "bridge.c".
gmake: *** [bridge] Error 2
jazz:~/src/HECnet[98]%gcc -O2 -o bridge bridge.c
-I/opt/skunkware/include -L/opt/skunkware/lib -lpcap
bridge.c: In function 'add_bridge':
bridge.c:218: warning: incompatible implicit declaration of built-in
function 'bzero'
bridge.c:229: warning: incompatible implicit declaration of built-in
function 'index'
jazz:~/src/HECnet[99]%file bridge;ls -l bridge
bridge:                 ELF N32 MSB mips-4 dynamic executable MIPS - version 1
-rwxr-xr-x       1 uridium   clowns       302060 Jun   7 16:25 bridge
jazz:~/src/HECnet[100]%cat bridge.conf
[bridge]
local ec0
update tempo.update.uu.se:4711

[decnet]
local
update

[lat]
local
update
####

Looks like some casting might be in order. I think I'm ready to go with
the port forwarding and bridge setup on this end. Spotted a nice guide a
while ago as to how to configure the decnet side of things. I'll follow
that guide once the bridge is up. :)

Al.



More information about the Hecnet-list mailing list