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); in set_message()
135 p[4] = htons(local_sequence); in set_message()
136 p[5] = htons(remote_sequence); in set_message()
137 p[6] = htons(ATTRIBUTE_FLAG(2)); in set_message()
140 p[9] = htons(message); in set_message()
149 p->flag = htons(ATTRIBUTE_FLAG(size)); in add_attribute_raw()
169 p[1] = htons(outgoing.length); in send_packet()
177 htons(MESSAGE_FLAG), htons(ACK_SIZE), remote_tunnel, 0, in send_ack()
178 htons(local_sequence), htons(remote_sequence), in send_ack()
198 || (p[0] & htons(MESSAGE_MASK)) != htons(MESSAGE_FLAG) || in recv_packet()
205 } else if (p[6] == htons(ATTRIBUTE_FLAG(2)) && !p[7] && !p[8]) { in recv_packet()
326 add_attribute_u16(PROTOCOL_VERSION, htons(0x0100)); in l2tp_connect()
330 add_attribute_u16(WINDOW_SIZE, htons(1)); in l2tp_connect()
557 add_attribute_u16(RESULT_CODE, htons(6)); in l2tp_shutdown()