Lines Matching defs:clnp
88 #include <netiso/clnp.h>
114 * PURPOSE: clnp initialization. Fill in clnp switch tables.
137 printf("clnl_init: no tp/clnp\n");
281 * PURPOSE: process an incoming clnp packet
296 struct clnp_fixed *clnp; /* ptr to fixed part of
349 clnp = mtod(m, struct clnp_fixed *);
355 printf("clnp_input: clnp header:\n");
356 dump_buf(mtod(m, void *), clnp->cnf_hdr_len);
371 if (CKSUM_REQUIRED(clnp) &&
372 iso_check_csum(m, (int) clnp->cnf_hdr_len)) {
377 if (clnp->cnf_vers != ISO8473_V1) {
383 CTOH(clnp->cnf_seglen_msb, clnp->cnf_seglen_lsb, seg_len);
387 clnp = mtod(m, struct clnp_fixed *);
388 hend = (char *) clnp + clnp->cnf_hdr_len;
395 hoff = (char *)clnp + sizeof(struct clnp_fixed);
419 if (((clnp->cnf_type & CNF_TYPE) != CLNP_ER) &&
420 (clnp->cnf_type & CNF_SEG_OK)) {
432 seg_off = hoff - (char *)clnp;
454 ((clnp->cnf_type & CNF_TYPE) != CLNP_ER))
513 if (((clnp->cnf_type & CNF_TYPE) != CLNP_ER) &&
514 (clnp->cnf_type & CNF_SEG_OK) &&
520 clnp = mtod(m, struct clnp_fixed *);
535 switch (clnp->cnf_type & CNF_TYPE) {
549 clnp->cnf_hdr_len, need_afrin);
556 clnp->cnf_type & CNF_SEG_OK ?
562 clnp->cnf_hdr_len);
571 (void) clnp_echoreply(m, (clnp->cnf_type & CNF_SEG_OK ?
577 printf("clnp_input: unknown clnp pkt type %d\n",
578 clnp->cnf_type & CNF_TYPE);