Lines Matching refs:htons
66 #define RESULT_CODE htons(1)
67 #define PROTOCOL_VERSION htons(2)
68 #define FRAMING_CAPABILITIES htons(3)
69 #define HOST_NAME htons(7)
70 #define ASSIGNED_TUNNEL htons(9)
71 #define WINDOW_SIZE htons(10)
72 #define CHALLENGE htons(11)
73 #define CHALLENGE_RESPONSE htons(13)
74 #define ASSIGNED_SESSION htons(14)
75 #define CALL_SERIAL_NUMBER htons(15)
76 #define FRAMING_TYPE htons(19)
77 #define CONNECT_SPEED htons(24)
78 #define RANDOM_VECTOR htons(36)
131 p[0] = htons(MESSAGE_FLAG);
135 p[4] = htons(local_sequence);
136 p[5] = htons(remote_sequence);
137 p[6] = htons(ATTRIBUTE_FLAG(2));
140 p[9] = htons(message);
149 p->flag = htons(ATTRIBUTE_FLAG(size));
169 p[1] = htons(outgoing.length);
177 htons(MESSAGE_FLAG), htons(ACK_SIZE), remote_tunnel, 0,
178 htons(local_sequence), htons(remote_sequence),
198 || (p[0] & htons(MESSAGE_MASK)) != htons(MESSAGE_FLAG) ||
205 } else if (p[6] == htons(ATTRIBUTE_FLAG(2)) && !p[7] && !p[8]) {
326 add_attribute_u16(PROTOCOL_VERSION, htons(0x0100));
330 add_attribute_u16(WINDOW_SIZE, htons(1));
557 add_attribute_u16(RESULT_CODE, htons(6));