FreeBSD Bugzilla – Attachment 7361 Details for
Bug 16023
Add an idletime counter for sppp, just like ppp has
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.63 KB, created by
pherman
on 2000-01-10 11:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
pherman
Created:
2000-01-10 11:50:01 UTC
Size:
1.63 KB
patch
obsolete
>--- src/sys/net/if_sppp.h Mon Jan 10 11:57:57 2000 >+++ src/sys/net/if_sppp.h.new Mon Jan 10 12:11:16 2000 >@@ -88,8 +88,10 @@ > u_short pp_alivecnt; /* keepalive packets counter */ > u_short pp_loopcnt; /* loopback detection counter */ > u_long pp_seq; /* local sequence number */ > u_long pp_rseq; /* remote sequence number */ >+ time_t pp_last_sent; /* time() when the last packet was sent */ >+ time_t pp_last_recv; /* time() when the last packet was received */ > enum ppp_phase pp_phase; /* phase we're currently in */ > int state[IDX_COUNT]; /* state machine */ > u_char confid[IDX_COUNT]; /* id of last configuration request */ > int rst_counter[IDX_COUNT]; /* restart counter */ >--- src/sys/net/if_spppsubr.c Mon Jan 10 11:58:08 2000 >+++ src/sys/net/if_spppsubr.c.new Mon Jan 10 12:16:38 2000 >@@ -619,8 +619,9 @@ > SPP_ARGS(ifp)); > goto drop; > } > IF_ENQUEUE(inq, m); >+ sp->pp_last_recv = time_second; > splx(s); > } > > /* >@@ -805,8 +806,9 @@ > * The packet length includes header, FCS and 1 flag, > * according to RFC 1333. > */ > ifp->if_obytes += m->m_pkthdr.len + 3; >+ sp->pp_last_sent = time_second; > splx (s); > return (0); > } > >@@ -838,8 +840,9 @@ > sp->pp_rseq = 0; > sp->pp_phase = PHASE_DEAD; > sp->pp_up = lcp.Up; > sp->pp_down = lcp.Down; >+ sp->pp_last_recv = sp->pp_last_sent = time_second; > > sppp_lcp_init(sp); > sppp_ipcp_init(sp); > sppp_pap_init(sp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16023
:
7360
| 7361