Retire set_reqid(), unused since 1.2.

This commit is contained in:
Matthew N. Dodd 2003-03-26 03:41:12 +00:00
parent 87b6469f1e
commit 6410552316
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112664

View File

@ -358,7 +358,6 @@ char hostname[80];
#define LOG_FILE "/var/log/ilmid"
FILE *Log; /* File descriptor for log messages */
void set_reqid( u_char *, int );
void Increment_DL( int );
void Decrement_DL( int );
@ -1487,38 +1486,6 @@ print_pdu(dir, intf, Hdr, len, buf)
return;
}
/*
* Set Request ID in PDU
*
* Arguments:
* resp - Response PDU buffer
* reqid - request id value
*
* Returns:
* none - request id may/may not be set
*
*/
void
set_reqid ( resp, reqid )
u_char *resp;
int reqid;
{
u_char *bp = (u_char *)&resp[18];
union {
int i;
u_char c[4];
} u;
u.i = htonl(reqid);
/*
* Replace the current Request ID with the supplied value
*/
bcopy ( (caddr_t)&u.c[4-resp[17]], bp, resp[17] );
return;
}
/*
* Send a generic response packet
*