[hipl-users] Re: Compiling errors - tcpdump 3.8.3 with tcpdump-3.8.3-hip.patch

  • From: Väisänen Teemu <teemuuolevivaisanen@xxxxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Fri, 9 Sep 2005 11:03:10 +0300

Hi.

...about linenumbers, that 352 has the last } -mark. out_err is in line 350.

-Teemu Väisänen


2005/9/9, Väisänen Teemu <teemuuolevivaisanen@xxxxxxxxx>:
> Hi.
> Copypasted from print-hip.c:
> ...
> 
> void hip_print_param_ack(const struct hip_tlv_common *tlv) {
>         struct hip_ack *p = (struct hip_ack *) tlv;
>         size_t n, i;
>         uint32_t *peer_update_id;
> 
>         if (ntohs(p->length) % sizeof(uint32_t)) {
>                 goto out_err;
>         }
> 
>         n = ntohs(p->length) / sizeof(uint32_t);
>         peer_update_id = (uint32_t *) ((void *)p+sizeof(struct 
> hip_tlv_common));
>         printf("(");
>         for (i = 0; i < n; i++, peer_update_id++) {
>                 if (i) printf(",");
>                 printf("peer Update ID=%u", ntohl(*peer_update_id));
>         }
>         printf(")");
>  out_err:
> 
> }
> 
> ...
> -Teemu Väisänen
> 
> 
> 
> 2005/9/9, Mika Kousa <mkousa@xxxxxxxxx>:
> > On Fri, 9 Sep 2005, Väisänen Teemu wrote:
> >
> > -> ./print-hip.c: In function `hip_print_param_ack':
> > -> ./print-hip.c:352: error: label at end of compound statement
> > -> make: *** [print-hip.o] Error 1
> > ->
> > -> Does anyone have an idea what causes this?
> >
> > Could you copypaste the function hip_print_param_ack here ? I do not have
> > the patched sources right now available.
> >
> > -> Should I ask this from tcpdump mailing list?
> >
> > I do not think it is needed. This seems to be only a matter of HIPL.
> >
> >
>

Other related posts: