Anyone interested in HDLC support for pppd ?



Hello;

I started playing a bit with net/pppd23 and I noticed there are some patches for FreeBSD-3.0 that were never committed (NetBSD certainly has them). Our pppd(8) is derived from the "samba" pppd port and should have them if we want to continue updating it.

I started adapting them but I am actually in a dead point due to my profound ignorance on FreeBSD and it's latest changes. I am stuck here:

_____

...
../../../net/ppp_tty.c: In function `pppsyncstart':
../../../net/ppp_tty.c:653: error: `cdevsw' undeclared (first use in this function)
../../../net/ppp_tty.c:653: error: (Each undeclared identifier is reported only once
../../../net/ppp_tty.c:653: error: for each function it appears in.)
../../../net/ppp_tty.c:653: warning: implicit declaration of function `major'
../../../net/ppp_tty.c:653: warning: nested extern declaration of `major'
*** Error code 1
______

the offending code is this:

______
/* call device driver IOCTL to transmit a frame */
if ((*cdevsw[major(tp->t_dev)]->d_ioctl)
(tp->t_dev,TIOCXMTFRAME,(caddr_t)&m,0,0)) {
/* busy or error, set as current packet */
sc->sc_outm = m;
_____

If someone can give me (easy to follow) suggestions on how to fix it I'll be grateful. The changes I already did to the original patches are not huge but if someone wants to review them all just send me a private mail and I'll send them.

cheers,

Pedro.


___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Anyone interested in HDLC support for pppd ?
    ... I started adapting them but I am actually in a dead point due to my profound ignorance on FreeBSD and it's latest changes. ... I am stuck here: ... *** Error code 1 ... The changes I already did to the original patches are not huge but if someone wants to review them all just send me a private mail and I'll send them. ...
    (freebsd-net)
  • Re: advanced programming unix environment
    ... I would appreciate if somebody else running freebsd 7.0 could download source and see if it makes fine on their installation. ... *** Error code 1 ... be unable to log in as root in any way, ... After the initial install I was able to log ...
    (freebsd-questions)
  • make buildworld error on FreeBSD 8.0-CURRENT
    ... Recently i am running a FreeBSD 8.0-CURRENT(upgraded from FreeBSD ... *** Error code 2 ... <ACPI PCI bus> on pcib0 ... 2 ports with 2 removable, ...
    (freebsd-current)
  • Re: Intel Mac experiences
    ... James Earl wrote: ... By an Intel Mac, ... just a commercialized version of FreeBSD? ... private mail, otherwise your email will likely be filtered incorrectly ...
    (freebsd-questions)
  • Error in installation of cyrus-imapd22!! again
    ... FreeBSD srim.org 6.0-STABLE FreeBSD 6.0-STABLE #0: ... *** Error code 1 ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (freebsd-stable)

Loading