Lines Matching defs:in
6 * You may not use this file except in compliance with the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
40 * The NetBIOS name representation in all NetBIOS packets (for NAME,
41 * SESSION, and DATAGRAM services) is defined in the Domain Name
43 * called "second-level encoding" in the section entitled
44 * "Representation of NetBIOS Names" in the Concepts and Methods
51 * Domain names messages are expressed in terms of a sequence
71 * encoding" in the section entitled "Representation of NetBIOS Names"
72 * in the Concepts and Methods document.
107 * label can be a maximum of 63 bytes. The first byte of a label in
108 * compressed representation is the number of bytes in the label. For
109 * the above example, the first 0x20 is the number of bytes in the
112 * of the label. The following labels are in sequence after the first
117 * A label length count is actually a 6-bit field in the label length
122 * another domain name that belongs in this name. This label pointer
123 * allows for a further compression of a domain name in a packet.
125 * NetBIOS implementations can only use label string pointers in Name
126 * Service packets. They cannot be used in Session or Datagram Service
148 * char * in -> Name to encode
160 unsigned char *in;
167 in = name;
170 ch = *in++;
177 in = scope;
180 while (((ch = *in++) != 0) && (max_out-- > 1)) {
206 * The null terminated string "in" is the name to decode. The output
207 * is placed in the name_entry structure "name".
210 * in the "Domain name representation and compression" section of RFC883.
220 netbios_first_level_name_decode(char *in, char *name, char *scope)
227 cp = in;
256 return (cp - in);
263 * which runs in kernel in order to hide name_entry definition.
265 * It returns the decoded name in the provided buffer as 'out'
271 netbios_name_isvalid(char *in, char *out)
276 if (netbios_first_level_name_decode(in, name, scope) < 0)