Constify the arguments to several pdu_print functions.
This commit is contained in:
parent
c3f8e34d6b
commit
56acf6178a
@ -804,11 +804,8 @@ atm_unload()
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
atm_dev_pdu_print(cup, cvp, m, msg)
|
atm_dev_pdu_print(const Cmn_unit *cup, const Cmn_vcc *cvp,
|
||||||
Cmn_unit *cup;
|
const KBuffer *m, const char *msg)
|
||||||
Cmn_vcc *cvp;
|
|
||||||
KBuffer *m;
|
|
||||||
char *msg;
|
|
||||||
{
|
{
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
@ -818,4 +815,3 @@ atm_dev_pdu_print(cup, cvp, m, msg)
|
|||||||
|
|
||||||
atm_pdu_print(m, buf);
|
atm_pdu_print(m, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -575,23 +575,21 @@ atm_intr(struct mbuf *m)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
atm_pdu_print(m, msg)
|
atm_pdu_print(const KBuffer *m, const char *msg)
|
||||||
KBuffer *m;
|
|
||||||
char *msg;
|
|
||||||
{
|
{
|
||||||
caddr_t cp;
|
const u_char *cp;
|
||||||
int i;
|
int i;
|
||||||
char c = ' ';
|
char c = ' ';
|
||||||
|
|
||||||
printf("%s:", msg);
|
printf("%s:", msg);
|
||||||
while (m) {
|
while (m) {
|
||||||
KB_DATASTART(m, cp, caddr_t);
|
KB_DATASTART(m, cp, const u_char *);
|
||||||
printf("%cbfr=%p data=%p len=%d: ",
|
printf("%cbfr=%p data=%p len=%d: ",
|
||||||
c, m, cp, KB_LEN(m));
|
c, m, cp, KB_LEN(m));
|
||||||
c = '\t';
|
c = '\t';
|
||||||
if (atm_print_data) {
|
if (atm_print_data) {
|
||||||
for (i = 0; i < KB_LEN(m); i++) {
|
for (i = 0; i < KB_LEN(m); i++) {
|
||||||
printf("%2x ", (u_char)*cp++);
|
printf("%2x ", *cp++);
|
||||||
}
|
}
|
||||||
printf("<end_bfr>\n");
|
printf("<end_bfr>\n");
|
||||||
} else {
|
} else {
|
||||||
@ -600,4 +598,3 @@ atm_pdu_print(m, msg)
|
|||||||
m = KB_NEXT(m);
|
m = KB_NEXT(m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,7 +109,8 @@ void * atm_dev_alloc(u_int, u_int, u_int);
|
|||||||
void atm_dev_free(volatile void *);
|
void atm_dev_free(volatile void *);
|
||||||
KBuffer * atm_dev_compress(KBuffer *);
|
KBuffer * atm_dev_compress(KBuffer *);
|
||||||
Cmn_vcc * atm_dev_vcc_find(Cmn_unit *, u_int, u_int, u_int);
|
Cmn_vcc * atm_dev_vcc_find(Cmn_unit *, u_int, u_int, u_int);
|
||||||
void atm_dev_pdu_print(Cmn_unit *, Cmn_vcc *, KBuffer *, char *);
|
void atm_dev_pdu_print(const Cmn_unit *, const Cmn_vcc *,
|
||||||
|
const KBuffer *, const char *);
|
||||||
|
|
||||||
/* atm_if.c */
|
/* atm_if.c */
|
||||||
int atm_physif_register(Cmn_unit *, char *,
|
int atm_physif_register(Cmn_unit *, char *,
|
||||||
@ -172,6 +173,6 @@ int atm_untimeout(struct atm_time *);
|
|||||||
int atm_stack_enq(int, void (*)(int, void *, intptr_t, intptr_t),
|
int atm_stack_enq(int, void (*)(int, void *, intptr_t, intptr_t),
|
||||||
void *, Atm_connvc *, intptr_t, intptr_t);
|
void *, Atm_connvc *, intptr_t, intptr_t);
|
||||||
void atm_stack_drain(void);
|
void atm_stack_drain(void);
|
||||||
void atm_pdu_print(KBuffer *, char *);
|
void atm_pdu_print(const KBuffer *, const char *);
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
#endif /* _NETATM_ATM_VAR_H */
|
#endif /* _NETATM_ATM_VAR_H */
|
||||||
|
@ -305,10 +305,7 @@ sscf_uni_abort(uvp, msg)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
sscf_uni_pdu_print(uvp, m, msg)
|
sscf_uni_pdu_print(const struct univcc *uvp, const KBuffer *m, const char *msg)
|
||||||
struct univcc *uvp;
|
|
||||||
KBuffer *m;
|
|
||||||
char *msg;
|
|
||||||
{
|
{
|
||||||
char buf[128];
|
char buf[128];
|
||||||
struct vccb *vcp;
|
struct vccb *vcp;
|
||||||
@ -318,4 +315,3 @@ sscf_uni_pdu_print(uvp, m, msg)
|
|||||||
msg, vcp->vc_vpi, vcp->vc_vci);
|
msg, vcp->vc_vpi, vcp->vc_vci);
|
||||||
atm_pdu_print(m, buf);
|
atm_pdu_print(m, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,8 @@ struct univcc {
|
|||||||
int sscf_uni_start(void);
|
int sscf_uni_start(void);
|
||||||
int sscf_uni_stop(void);
|
int sscf_uni_stop(void);
|
||||||
void sscf_uni_abort(struct univcc *, char *);
|
void sscf_uni_abort(struct univcc *, char *);
|
||||||
void sscf_uni_pdu_print(struct univcc *, KBuffer *, char *);
|
void sscf_uni_pdu_print(const struct univcc *,
|
||||||
|
const KBuffer *, const char *);
|
||||||
|
|
||||||
/* sscf_uni_lower.c */
|
/* sscf_uni_lower.c */
|
||||||
void sscf_uni_lower(int, void *, intptr_t, intptr_t);
|
void sscf_uni_lower(int, void *, intptr_t, intptr_t);
|
||||||
|
@ -1232,10 +1232,7 @@ sscop_send_ud(sop, m)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
sscop_pdu_print(sop, m, msg)
|
sscop_pdu_print(const struct sscop *sop, const KBuffer *m, const char *msg)
|
||||||
struct sscop *sop;
|
|
||||||
KBuffer *m;
|
|
||||||
char *msg;
|
|
||||||
{
|
{
|
||||||
char buf[128];
|
char buf[128];
|
||||||
struct vccb *vcp;
|
struct vccb *vcp;
|
||||||
@ -1245,4 +1242,3 @@ sscop_pdu_print(sop, m, msg)
|
|||||||
"sscop %s: vcc=(%d,%d)\n", msg, vcp->vc_vpi, vcp->vc_vci);
|
"sscop %s: vcc=(%d,%d)\n", msg, vcp->vc_vpi, vcp->vc_vci);
|
||||||
atm_pdu_print(m, buf);
|
atm_pdu_print(m, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,8 @@ int sscop_send_poll(struct sscop *);
|
|||||||
int sscop_send_stat(struct sscop *, sscop_seq);
|
int sscop_send_stat(struct sscop *, sscop_seq);
|
||||||
int sscop_send_ustat(struct sscop *, sscop_seq);
|
int sscop_send_ustat(struct sscop *, sscop_seq);
|
||||||
int sscop_send_ud(struct sscop *, KBuffer *);
|
int sscop_send_ud(struct sscop *, KBuffer *);
|
||||||
void sscop_pdu_print(struct sscop *, KBuffer *, char *);
|
void sscop_pdu_print(const struct sscop *,
|
||||||
|
const KBuffer *, const char *);
|
||||||
|
|
||||||
/* sscop_sigaa.c */
|
/* sscop_sigaa.c */
|
||||||
void sscop_estreq_idle(struct sscop *, intptr_t, intptr_t);
|
void sscop_estreq_idle(struct sscop *, intptr_t, intptr_t);
|
||||||
|
@ -852,10 +852,7 @@ proc_inarp_rsp(ivp, m)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
uniarp_pdu_print(ivp, m, msg)
|
uniarp_pdu_print(const struct ipvcc *ivp, const KBuffer *m, const char *msg)
|
||||||
struct ipvcc *ivp;
|
|
||||||
KBuffer *m;
|
|
||||||
char *msg;
|
|
||||||
{
|
{
|
||||||
char buf[128];
|
char buf[128];
|
||||||
struct vccb *vcp;
|
struct vccb *vcp;
|
||||||
@ -865,4 +862,3 @@ uniarp_pdu_print(ivp, m, msg)
|
|||||||
"uniarp %s: vcc=(%d,%d)\n", msg, vcp->vc_vpi, vcp->vc_vci);
|
"uniarp %s: vcc=(%d,%d)\n", msg, vcp->vc_vpi, vcp->vc_vci);
|
||||||
atm_pdu_print(m, buf);
|
atm_pdu_print(m, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +281,8 @@ int uniarp_validate_ip(struct uniip *, struct in_addr *, u_int);
|
|||||||
|
|
||||||
/* uniarp_input.c */
|
/* uniarp_input.c */
|
||||||
void uniarp_cpcs_data(void *, KBuffer *);
|
void uniarp_cpcs_data(void *, KBuffer *);
|
||||||
void uniarp_pdu_print(struct ipvcc *, KBuffer *, char *);
|
void uniarp_pdu_print(const struct ipvcc *,
|
||||||
|
const KBuffer *, const char *);
|
||||||
|
|
||||||
/* uniarp_output.c */
|
/* uniarp_output.c */
|
||||||
int uniarp_arp_req(struct uniip *, struct in_addr *);
|
int uniarp_arp_req(struct uniip *, struct in_addr *);
|
||||||
|
Loading…
Reference in New Issue
Block a user