Home | History | Annotate | Download | only in rp-pppoe

Lines Matching refs:ntohs

348 	if (ntohs(packet.length) + HDR_SIZE > len) {
350 (unsigned int) ntohs(packet.length));
461 ntohs(conn->cookie.length) + TAG_HDR_SIZE);
462 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);
463 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
464 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
469 ntohs(conn->relayId.length) + TAG_HDR_SIZE);
470 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE);
471 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
472 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
525 if (ntohs(packet.length) + HDR_SIZE > len) {
527 (unsigned int) ntohs(packet.length));
556 /* Don't bother with ntohs; we'll just end up converting it back... */
559 syslog(LOG_INFO, "PPP session is %d", (int) ntohs(conn->session));
562 if (ntohs(conn->session) == 0 || ntohs(conn->session) == 0xFFFF) {
563 syslog(LOG_ERR, "Access concentrator used a session value of %x -- the AC is violating RFC 2516", (unsigned int) ntohs(conn->session));