lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LCP Termination Request steps


From: Sylvain Rochet
Subject: Re: [lwip-users] LCP Termination Request steps
Date: Sun, 24 Jun 2012 01:12:10 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Nick,

On Sat, Jun 23, 2012 at 07:06:28PM +0300, N.Karakotas wrote:
> Hi,
> 
> Yes I thought so :-) Didn't know about the PRINTPKT_SUPPORT.
> Attached is the output.
> 
> rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
> fsm_input(0): Rcvd packet in state 0

This is almost impossible too... ppp_over_serial_open() set pcb->phase 
to PHASE_INITIALIZE (1) before starting PPP. pcb->phase can't be set to 
0 at this time.

int ppp_over_serial_open(...)
  [...]
  new_phase(pcb, PHASE_INITIALIZE);
  ppp_start(pcb);
  [...]
}

This is either a compiler bug, because ppp_pcb use compiler generated 
bitfield from struct, or a memory corruption.

You can check the first by replacing bitfield to u8_t type for each 
bitfield entry in all structures used by PPP.

Here is a sed regexp that, applied to all headers files, should do the job:
  s/^\(.*\)u_int\(.*\):[^1]*1[^;]*\(.*\)$/\1u8_t\2\3/

Sylvain

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]