Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!tut.cis.ohio-state.edu!ucbvax!ucsd!hub.ucsb.edu!spectrum.CMC.COM!spectrum.cmc.com!lars From: lars@spectrum.cmc.com (Lars Poulsen) Newsgroups: comp.protocols.tcp-ip Subject: AF_X25 - What does it look like ? Keywords: socket address formats Message-ID: <1990Dec28.013537.7392@spectrum.CMC.COM> Date: 28 Dec 90 01:35:37 GMT Sender: lars@spectrum.CMC.COM (Lars Poulsen) Organization: Rockwell CMC Lines: 18 I need to implement an X.25 address format version of the socket address structure. In scanning my header files, I notice an AF_X25 definition; but I don't think I have a structure definition of the actual layout. (1) Since an X.25 address is typically at most 14 digits long, it would be possible to just have 14 ASCII digits in the structure, with NULLs at the end, if the address is shorter. (2) Since an X.121 address can actually be 15 digits, it might be useful to have either a byte or a short with the number of digits, and then have the address in packed BCD code. Can anyone tell me what the INTENDED use of AF_CCITT or AF_X25 is ? I would hate to invent my own structure that was incompatible with everyone else's. -- / Lars Poulsen, SMTS Software Engineer CMC Rockwell lars@CMC.COM