Lines Matching refs:htons
270 length = htons(*(u_int16_t *) packet);
340 where.header.length = htons(sizeof(where)); \
341 where.header.pptp_type = htons(PPTP_CTRL_MESSAGE); \
343 where.header.ctrl_type = htons(what); \
344 where.header.reserved0 = htons(RESERVED)
373 start_ctrl_conn_rply.version = htons(PPTP_VERSION);
376 start_ctrl_conn_rply.framing_cap = htons(OUR_FRAMING);
377 start_ctrl_conn_rply.bearer_cap = htons(OUR_BEARER);
378 start_ctrl_conn_rply.max_channels = htons(MAX_CHANNELS);
379 start_ctrl_conn_rply.firmware_rev = htons(PPTP_FIRMWARE_VERSION);
401 stop_ctrl_conn_rply.reserved1 = htons(RESERVED);
427 if ((pac_call_id = getcall()) == htons(-1)) {
445 /* lets match their window size for now... was htons(PCKT_RECV_WINDOW_SIZE)
451 out_call_rply.pckt_delay = htons(PCKT_PROCESS_DELAY);
482 echo_rply.reserved1 = htons(RESERVED);
509 if ((pac_call_id = freecall()) == htons(-1)) {
517 call_disconn_ntfy.cause_code = htons(NO_ERROR);
518 call_disconn_ntfy.reserved1 = htons(RESERVED);
567 stop_ctrl.reserved2 = htons(RESERVED);
581 if ((pac_call_id = freecall()) == htons(-1)) {
589 call_disconn_ntfy.cause_code = htons(NO_ERROR);
590 call_disconn_ntfy.reserved1 = htons(RESERVED);
673 _pac_call_id = htons(-1);
676 if(_pac_call_id != htons(-1))
678 _pac_call_id = htons(i);
695 _pac_call_id = htons(-1);
699 if(_pac_call_id == htons(-1))
701 _pac_call_id = htons(-1);