|
|
@ -695,8 +695,7 @@ namespace transport |
|
|
|
SendTerminationAndTerminate (eNTCP2IncorrectSParameter); |
|
|
|
SendTerminationAndTerminate (eNTCP2IncorrectSParameter); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
i2p::data::netdb.PostI2NPMsg (CreateI2NPMessage (eI2NPDummyMsg, buf.data () + 4, size - 1)); // TODO: should insert ri and not parse it twice
|
|
|
|
i2p::data::netdb.AddRouterInfo (buf.data () + 4, size - 1); // TODO: should insert ri and not parse it twice
|
|
|
|
|
|
|
|
// TODO: process options
|
|
|
|
// TODO: process options
|
|
|
|
|
|
|
|
|
|
|
|
// ready to communicate
|
|
|
|
// ready to communicate
|
|
|
@ -861,7 +860,7 @@ namespace transport |
|
|
|
case eNTCP2BlkRouterInfo: |
|
|
|
case eNTCP2BlkRouterInfo: |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogDebug, "NTCP2: RouterInfo flag=", (int)frame[offset]); |
|
|
|
LogPrint (eLogDebug, "NTCP2: RouterInfo flag=", (int)frame[offset]); |
|
|
|
i2p::data::netdb.AddRouterInfo (frame + offset + 1, size - 1); |
|
|
|
i2p::data::netdb.PostI2NPMsg (CreateI2NPMessage (eI2NPDummyMsg, frame + offset + 1, size - 1)); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
case eNTCP2BlkI2NPMessage: |
|
|
|
case eNTCP2BlkI2NPMessage: |
|
|
|