more openwrt stuff:

[EMAIL PROTECTED]:~# ./edge -d n2n -a 10.0.0.2 -c mynet -k foo -l 
6x.xx.xx.x0:4000 -v
08/May/2008 22:45:47 [edge.c:472] Using supernode 6x.xx.xx.x0:4000
-> ifconfig n2n 10.0.0.2 netmask 255.255.255.0 mtu 1400 up
08/May/2008 22:45:48 [tuntap_linux.c:38] Interface n2n has MAC 00:00:00:00:00:00
08/May/2008 22:45:48 [n2n.c:617] Sent unreliable packet
[msg_type=MSG_TYPE_REGISTER][seq_id=0][src_mac=00:00:00:00:00:00][dst_mac=00:00:00:00:00:00]
08/May/2008 22:45:48 [n2n.c:540] 76 bytes compressed into 79
08/May/2008 22:45:48 [edge.c:101] Sent registration message to 6x.xx.xx.x0:4000
08/May/2008 22:45:48 [edge.c:171] Sending gratuitous ARP...
08/May/2008 22:45:48 [edge.c:274] ** Using supernode peer
communication [src_mac=51:C3:DB:D3:7F:0B][dst_mac=16:81:20:98:26:D3]
08/May/2008 22:45:48 [n2n.c:597] Sent reliable packet
[msg_type=MSG_TYPE_PACKET][seq_id=0][src_mac=6E:65:74:00:00:00][dst_mac=01:03:00:00:6D:79]
08/May/2008 22:45:48 [n2n.c:540] 118 bytes compressed into 122
08/May/2008 22:45:48 [edge.c:286] Sent message to supernode
08/May/2008 22:45:48 [edge.c:274] ** Using supernode peer
communication [src_mac=51:C3:DB:D3:7F:0B][dst_mac=16:81:20:98:26:D3]
08/May/2008 22:45:48 [n2n.c:597] Sent reliable packet
[msg_type=MSG_TYPE_PACKET][seq_id=1][src_mac=6E:65:74:00:00:00][dst_mac=01:03:00:00:6D:79]
08/May/2008 22:45:48 [n2n.c:540] 118 bytes compressed into 122
08/May/2008 22:45:48 [edge.c:286] Sent message to supernode
08/May/2008 22:45:48 [edge.c:495] Ready
08/May/2008 22:45:48 [edge.c:304] ### Msg tun-> network
08/May/2008 22:45:58 [n2n.c:617] Sent unreliable packet
[msg_type=MSG_TYPE_REGISTER][seq_id=0][src_mac=00:00:00:00:00:00][dst_mac=00:00:00:00:00:00]
08/May/2008 22:45:58 [n2n.c:540] 76 bytes compressed into 79
08/May/2008 22:45:58 [edge.c:101] Sent registration message to 6x.xx.xx.x0:4000
08/May/2008 22:46:08 [n2n.c:617] Sent unreliable packet
[msg_type=MSG_TYPE_REGISTER][seq_id=0][src_mac=00:00:00:00:00:00][dst_mac=00:00:00:00:00:00]

is this correct? it tries to use mac 00:00, then tried other macs, and
then back to 00:00 ...

[EMAIL PROTECTED]:~# ifconfig n2n
n2n       Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.0.0.2  P-t-P:10.0.0.2  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[EMAIL PROTECTED]:~# ifconfig n2n hw ether 00:01:02:03:04:05
SIOCSIFHWADDR: Operation not supported

[EMAIL PROTECTED]:~# openvpn --mktun --dev tap0 --dev-type tap
Thu May  8 22:53:21 2008 TUN/TAP device tap0 opened
Thu May  8 22:53:21 2008 Persist state set to: ON
[EMAIL PROTECTED]:~# ip link show tap0
14: tap0: <BROADCAST,MULTICAST,UP> mtu 1400 qdisc noqueue
    link/ether 00:ff:37:06:71:42 brd ff:ff:ff:ff:ff:ff

[EMAIL PROTECTED]:~# ./edge -d tap0 -a 10.0.0.2 -c mynet -k foo -l
6x.xx.xx.x0:4000 -v
08/May/2008 22:53:35 [edge.c:472] Using supernode 6x.xx.xx.x0:4000
-> ifconfig tap0 10.0.0.2 netmask 255.255.255.0 mtu 1400 up
08/May/2008 22:53:35 [tuntap_linux.c:38] Interface tap0 has MAC
00:FF:37:06:71:42
08/May/2008 22:53:35 [n2n.c:617] Sent unreliable packet
[msg_type=MSG_TYPE_REGISTER][seq_id=0][src_mac=00:FF:37:06:71:42][dst_mac=00:00:00:00:00:00]
08/May/2008 22:53:35 [n2n.c:540] 76 bytes compressed into 79

still no luck... supernode says:

11/May/2008 20:12:48 [supernode.c: 149] Received message from node
[69.xx.xx.15:1026]
11/May/2008 20:12:48 [supernode.c: 154] WARNING: Received packet too
short [len=79]
11/May/2008 20:12:58 [      n2n.c:  51] Unmarshalled  hdr:
public_ip=(0)0.0.0.0:0, private_ip=(0)0.0.0.0:0
11/May/2008 20:12:58 [      n2n.c: 611] +++ Received unreliable data
packet [rcvd_from=69.200.86.15:1026][msg_type=MSG_TYPE_REGISTER][seq_id=17]
11/May/2008 20:12:58 [      n2n.c: 616]
[src_mac=00:FF:37:06:71:42][dst_mac=00:00:00:00:00:00][original_sender=0.0.0.0:0]
11/May/2008 20:12:58 [supernode.c: 149] Received message from node
[69.xx.xx.15:1026]
11/May/2008 20:12:58 [supernode.c: 154] WARNING: Received packet too
short [len=79]

hope this can help...

-- 
Christian Lyra
PoP-PR/RNP
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to