fsd-doc icon indicating copy to clipboard operation
fsd-doc copied to clipboard

Some Questions About Client Authorize

Open aleccai8 opened this issue 6 years ago • 6 comments

I am writing a server software based on open source fsd ,but i the client authorize always shutdown the socket ,if the hash token can be so ,can you figure out this problem Thanks

aleccai8 avatar Apr 17 '19 13:04 aleccai8

And the @S the num 3 or 4 i think is a pbh and decode it can get petch bank heading

aleccai8 avatar Apr 17 '19 13:04 aleccai8

You don't have to implement the challenge-response authentication (I'm assuming you're talking about the $ZC/$ZR stuff?). That's just what VATSIM implemented to shut out clients it hasn't authorized. Notice how IVAO doesn't have this mechanism.

You could just have your implementation accept the connection as long as the login credentials are correct.

norrisng avatar Apr 17 '19 16:04 norrisng

And regarding @S, are you referring to (num1) and (num2)? There's no num3/4.

norrisng avatar Apr 17 '19 16:04 norrisng

@S:(callsign):(squawk):(rating):(lat):(lon):(alt):(groundspeed):(num1):(num2)

sorry about that i think the num1 the pbh and num2 is flag(in open sourse fsd)but i dont know what its work

aleccai8 avatar Apr 18 '19 03:04 aleccai8

Hmm, good point.....it would make sense for the pitch/bank/heading data to be encoded inside a @N/S packet, since it doesn't seem to appear anywhere else.

I'll have to investigate further once I have the time to poke around in a sim while connected though. I can't quite figure out how P/B/H are encoded in (num1) from the Wireshark traces I have with me at the moment.

By "flag", I'm assuming you're referring to the <identflag> field for PD (pilotdata)? I think that's referring to the @N/S thing (and I don't know what it's supposed to mean either). The original FSD documentation's PD packet is essentially identical to VATSIM/IVAO's implementation, except for the PD at the front, and the (num1/2) fields.

norrisng avatar Apr 18 '19 08:04 norrisng

(num1) is indeed encoded P/B/H (num2) is difference between AGL and AMSL altitudes

phoudoin avatar Aug 14 '19 22:08 phoudoin