Lines Matching refs:msglength

44 static int msglength;
170 msglength = fraglen;
217 if (msglength >= 1) { \
220 msglength--; \
237 * msglength and p.
240 if (msglength >= sizeof (unsigned short)) { \
243 msglength -= sizeof (unsigned short); \
291 if (stringlen > msglength) {
295 msglength -= stringlen;
311 msglength -= retlength
449 if (length > msglength) {
453 msglength);
482 msglength -= length;
520 if (length > msglength) {
525 msglength);
538 msglength -= length;
564 if (msglength < sizeof (unsigned short)) \
571 msglength -= sizeof (unsigned short); \
573 msglength = 0; /* skip rest of message */ \
582 if (msglength < 4) \
589 msglength -= 4
597 if (msglength < sizeof (unsigned short)) \
604 msglength -= sizeof (unsigned short); \
736 else if (msglength > 0)
737 sprintf(get_sum_line(), "%s +%d", msgbuf, msglength);
743 if (msglength > 0) {
750 "[%d extra bytes at end of SLP message]", msglength);
755 if (tcp_continuation && msglength == 0)
776 if (msglength < sizeof (*slp)) {
787 msglength -= sizeof (*slp);
800 if (msglength < sizeof (*slp)) {
813 *totallen > msglength &&
816 reg_tcp_cont((char *)slp, *totallen, msglength, dst_port);
819 if (!tcp_continuation && *totallen != msglength) {
844 msglength -= sizeof (*slp);
846 if (len > msglength) {
858 /* set msglength to remaining length of SLP message */
860 msglength -= len;
884 if (msglength < 4) {
893 msglength -= sizeof (unsigned short);
897 msglength -= sizeof (unsigned short);
899 real_oplen = nextop ? nextop : msglength;
912 msglength -= (real_oplen - 4);
927 ((nextop - 4) > msglength) &&
931 msglength);
950 if (msglength < 10)
966 msglength -= 10;
967 if (slen > msglength || length > (msglength + 10))
971 msglength -= slen;
975 msglength -= (length - 10 - slen);
1050 if (msglength < 10) {
1053 msglength);
1077 msglength -= 10;
1078 if (slen > msglength) {
1081 msglength);
1085 if (length > (msglength + 10)) {
1090 msglength);
1096 msglength -= slen;
1112 msglength -= (length - 10 - slen);
1146 msglength = 0; /* skip rest of message */
1277 msglength = 0; /* skip rest of message */
1407 if (msglength >= sizeof (*slp)) {
1452 else if (msglength > 0)
1453 sprintf(get_sum_line(), "%s +%d", msgbuf, msglength);
1459 if (msglength > 0) {
1461 "[%d extra bytes at end of SLP message]", msglength);
1482 if (msglength < sizeof (*slp)) {
1502 msglength -= sizeof (*slp);
1508 if (msglength < sizeof (*slp)) {
1560 /* set msglength to remaining length of SLP message */
1561 msglength -= sizeof (*slp);
1659 if (msglength < 12)
1668 msglength -= 12;
1670 if (length > msglength) {
1676 msglength -= length;
1686 if (msglength < 12) {
1689 msglength);
1707 msglength -= 12;
1715 if (length > msglength) {
1718 " [Framing error: remaining pkt length = %u]", msglength);
1723 msglength -= length;
1741 if (length > msglength) {
1744 " [Framing error: remaining pkt length = %u]", msglength);
1758 msglength -= length;