OK? -- Cheers, Jasper
"Capable, generous men do not create victims, they nurture them." Index: npppd/l2tp/l2tp_call.c =================================================================== RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tp_call.c,v retrieving revision 1.6 diff -p -u -r1.6 l2tp_call.c --- npppd/l2tp/l2tp_call.c 24 Sep 2010 14:50:30 -0000 1.6 +++ npppd/l2tp/l2tp_call.c 20 Jan 2011 22:34:37 -0000 @@ -155,7 +155,7 @@ l2tp_call_disconnect(l2tp_call *_this, i * control packet */ -/* call it when control packet is recieved */ +/* call it when control packet is received */ int l2tp_call_recv_packet(l2tp_ctrl *ctrl, l2tp_call *_this, int mestype, u_char *pkt, int pktlen) Index: npppd/l2tp/l2tp_ctrl.c =================================================================== RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tp_ctrl.c,v retrieving revision 1.5 diff -p -u -r1.5 l2tp_ctrl.c --- npppd/l2tp/l2tp_ctrl.c 24 Sep 2010 14:50:30 -0000 1.5 +++ npppd/l2tp/l2tp_ctrl.c 20 Jan 2011 22:34:38 -0000 @@ -535,7 +535,7 @@ l2tp_ctrl_timeout(int fd, short evtype, curr_time - _this->last_snd_ctrl >= L2TP_CTRL_WAIT_CALL_TIMEOUT) { if (_this->ncalls == 0) - /* fail to recieve first call */ + /* fail to receive first call */ l2tp_ctrl_log(_this, LOG_WARNING, "timeout waiting call"); l2tp_ctrl_stop(_this, @@ -706,7 +706,7 @@ l2tp_ctrl_reset_timeout(l2tp_ctrl *_this /* * protocols / send and receive */ -/* Recieve packet */ +/* Receive packet */ void l2tp_ctrl_input(l2tpd *_this, int listener_index, struct sockaddr *peer, struct sockaddr *sock, void *nat_t_ctx, u_char *pkt, int pktlen) @@ -1037,7 +1037,7 @@ l2tp_ctrl_input(l2tpd *_this, int listen /* * RFC specifies that sent of StopCCN in the state, * However as this implementation only support Passive - * open, this packet will not recieved. + * open, this packet will not received. */ /* FALLTHROUGH */ case L2TP_AVP_MESSAGE_TYPE_SCCCN: Index: npppd/npppd/eap.c =================================================================== RCS file: /cvs/src/usr.sbin/npppd/npppd/eap.c,v retrieving revision 1.5 diff -p -u -r1.5 eap.c --- npppd/npppd/eap.c 22 Sep 2010 11:48:38 -0000 1.5 +++ npppd/npppd/eap.c 20 Jan 2011 22:34:38 -0000 @@ -236,7 +236,7 @@ eap_input(eap *_this, unsigned char *pkt if (code == EAP_FAILURE) { /* discard */ eap_log(_this, LOG_NOTICE, - "Recieved unexpected packet from peer (code = %d)", code); + "Received unexpected packet from peer (code = %d)", code); return; } @@ -292,11 +292,11 @@ eap_input(eap *_this, unsigned char *pkt * discard */ eap_log(_this, LOG_DEBUG, - "recieve eap length = %d, " + "receive eap length = %d, " "eap info: code = %d, id = %d, length = %d, type = %d, " "name length = %d", len, code, id, length, type, _this->name_len ); - eap_log(_this, LOG_NOTICE, "Recieved unexpected eap packet from peer"); + eap_log(_this, LOG_NOTICE, "Received unexpected eap packet from peer"); return; } Index: npppd/pptp/pptp.h =================================================================== RCS file: /cvs/src/usr.sbin/npppd/pptp/pptp.h,v retrieving revision 1.4 diff -p -u -r1.4 pptp.h --- npppd/pptp/pptp.h 2 Jul 2010 21:20:57 -0000 1.4 +++ npppd/pptp/pptp.h 20 Jan 2011 22:34:38 -0000 @@ -300,7 +300,7 @@ typedef struct _pptp_call { pptp_ctrl *ctrl; /* parent */ unsigned id; - int ifidx; /* recieve interface index */ + int ifidx; /* receive interface index */ int state; @@ -310,8 +310,8 @@ typedef struct _pptp_call { uint32_t snd_una; /* next ack notification */ uint32_t snd_nxt; /* next transmit sequence # */ - uint32_t rcv_nxt; /* recieved sequence # */ - uint32_t rcv_acked; /* latest acked recieved sequence # */ + uint32_t rcv_nxt; /* received sequence # */ + uint32_t rcv_acked; /* latest acked received sequence # */ int winsz; /* current window size */ int maxwinsz; /* maximum window size */ Index: npppd/pptp/pptpd.c =================================================================== RCS file: /cvs/src/usr.sbin/npppd/pptp/pptpd.c,v retrieving revision 1.7 diff -p -u -r1.7 pptpd.c --- npppd/pptp/pptpd.c 27 Sep 2010 00:12:16 -0000 1.7 +++ npppd/pptp/pptpd.c 20 Jan 2011 22:34:38 -0000 @@ -182,7 +182,7 @@ pptpd_add_listener(pptpd *_this, int idx plistener->bind_sin.sin_port = htons(PPTPD_DEFAULT_TCP_PORT); /* When a raw socket binds both of an INADDR_ANY and specific IP - * address sockets, packets will be recieved by those sockets + * address sockets, packets will be received by those sockets * simultaneously. To avoid this duplicate receives, not * permit such kind of configuration */ inaddr_any = 0; @@ -843,7 +843,7 @@ pptpd_gre_io_event(int fd, short evmask, } } -/* recieve GRE then route to pptp_call */ +/* receive GRE then route to pptp_call */ static void pptpd_gre_input(pptpd_listener *listener, struct sockaddr *peer, u_char *pkt, int lpkt)