libradius - missing defines
Hi, could someone please add these defines to radlib.h #define RAD_ACCT_INPUT_GIGAWORDS 52 #define RAD_ACCT_OUTPUT_GIGAWORDS 53 #define RAD_ACCT_INTERIM_INTERVAL 85 there is also a missing ACCT-Status-Type (RAD_ACCT_STATUS_TYPE) #define RAD_UPDATE 3 see also RFC 2869, thanx, bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ppp RADIUS accounting bug
Hi, On Wed, 19 Nov 2003, Boris Kovalenko wrote: Hello! Yes, unsigned, so we have 4G limit, which may simple be overflowed by (for example) PPPoE connection. Yes, RADIUS standard defines new attributes for big words, but current PPP does not supports it (it, so our knowledge about RFC is useless :) Again, rad_put_int defined u_int32_t parameter, so if a have dowloaded 4.5G (for example) what number will send to radius? How about sending periodic RADIUS accounting updates? After each accounting update the counters could be reset, but I'm not sure whether this is RFC compliant, i.e. whether allways the complete value has to be send or whether the counters could be reset, after each update. For Mpd we implemented it without resetting the counters, but maybe that's not 100% right. bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ppp RADIUS accounting bug
Hi Boris, On Wed, 19 Nov 2003, Boris Kovalenko wrote: Hello! Standard PPP does not support UPDATE packets, and of course (as my but a patch could be written :-) RADIUS knowledge) the counters should not be resetted, because RADIUS updates the same record. The RFC says: 5.4. Acct-Output-Octets blabla can only be present in Accounting-Request records where the Acct-Status-Type is set to Stop. It looks like, that these counters must not present in accounting updates. bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ppp RADIUS accounting bug
Hi, On Wed, 19 Nov 2003, Boris Kovalenko wrote: The RFC says: 5.4. Acct-Output-Octets blabla can only be present in Accounting-Request records where the Acct-Status-Type is set to Stop. It looks like, that these counters must not present in accounting updates. You are right, but your words - but a patch could be written :-). Again, I'm talking not about UPDATE packets and presence of any attributes in RADIUS requests. I'm talking about wrong handling of Acct-Input-Octets Acct-Output-Octets with current PPP RADIUS implementation. How this will be done, by implementing RFC2869 support IMHO this would be the right way, because RFC 2869 definitely says: Note that all information in an interim message is cumulative (i.e. number of packets sent is the total since the beginning of the session, not since the last interim message). So sending interim update packets won't help. looking for someone who supervises my patch and commit it if no problems will be founded. this can be a problem :-) bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
getfacl long groupnames (getfacl: test: Cannot allocate memory) (fwd)
Hi, it looks like getfacl has problems with long groupnames: add a group named averylonggroupname touch acl-test setfacl -m g:averylonggroupname:rw acl-test bash-2.05b# getfacl acl-test #file:acl-test #owner:0 #group:2000 getfacl: acl-test: Cannot allocate memory this seems to be a problem with getfacl, because viewing this file from windows via SAMBA makes no problems, i.e. I can see the averylonggroupname group with access-rights. I'm running 5.1-RELEASE, bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
make buildworld errors (libcam)
Hi, buildworld fails (cvsup some minutes ago): In file included from /usr/src/sys/cam/scsi/scsi_da.c:51: /usr/src/sys/sys/taskqueue.h:33:2: #error no user-servicable parts inside mkdep: compile failed bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildworld errors (libcam)
Hi, On Wed, 3 Sep 2003, Don Lewis wrote: The following patch works for me: Index: sys/cam/scsi/scsi_da.c === RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v retrieving revision 1.157 diff -u -r1.157 scsi_da.c --- sys/cam/scsi/scsi_da.c3 Sep 2003 04:46:28 - 1.157 +++ sys/cam/scsi/scsi_da.c3 Sep 2003 07:35:54 - @@ -48,7 +48,9 @@ #include sys/eventhandler.h #include sys/malloc.h #include sys/cons.h +#ifdef _KERNEL #include sys/taskqueue.h +#endif /* _KERNEL */ #include machine/md_var.h for me too :-) thanx, bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
make buildworld b0rked (libkrb5)
Hi, make buildworld (cvsup some minutes ago) fails: during linking of telnetd: /usr/obj/usr/src/i386/usr/lib/libkrb5.so: undefined reference to '_ossl_old_des_set_key' /usr/obj/usr/src/i386/usr/lib/libkrb5.so: undefined reference to 'RAND_write_file' /usr/obj/usr/src/i386/usr/lib/libkrb5.so: undefined reference to '_ossl_old_des_set_odd_parity' /usr/obj/usr/src/i386/usr/lib/libkrb5.so: undefined reference to 'RC4_set_key' /usr/obj/usr/src/i386/usr/lib/libkrb5.so: undefined reference to 'MD4_Update' ... and a lot of more undefined references. FYI: I'm upgrading from 5.1-RELEASE. bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com JAWA Management Software GmbH - http://www.jawa.at Tel: ++43-(0)316-403274-12 - GSM: ++43-(0)676-84 03 15 712 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
make buildworld errors (amd/doc)
Hi, make buildworld fails (cvsup from about 2 hours ago), it looks like the amd import caused this: /usr/src/usr.sbin/amd/doc/../../../contrib/amd/doc/am-utils.texi:45: @include version.texi: No such file or directory bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com A-Quadrat Automation GmbH - http://www.a-quadrat.at Tel: ++43-(0)3172-41679 - GSM: ++43-(0)699 12861847 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PPTP Question
Hi, On Wed, 20 Aug 2003, Evgeny Ivanov wrote: Hello Guys I was wondering if someone is using MPD as a PPTP server. millions of users are doing this :-) I have a question regarding the MPD and looking experienced users . MPD is now hosted on http://sourceforge.net/projects/mpd MPD has his own mailinglist: [EMAIL PROTECTED] bye, -- --- -- Michael Bretterklieber - http://www.bretterklieber.com JAWA Management Software GmbH - http://www.jawa.at Tel: ++43-(0)316-403274-12 - GSM: ++43-(0)676-84 03 15 712 --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tiny BSD Pages
Hi, Juli Mallett schrieb: * De: Michael Bretterklieber [EMAIL PROTECTED] [ Data: 2003-03-05 ] [ Subjecte: Re: Tiny BSD Pages ] Hi, Chris Fowler schrieb: I do one thing in Linux that I want to do in FreeBSD. I store my root file system as a blow fish, gzipped, encrypted file on a DiskOnChip. I have done exactly this some years ago, checkout PicoBSD (freebsd-small mailinglist). But I don't know the current status of PicoBSD. see also: http://people.freebsd.org/~picobsd/ With a lot of work it builds again, but due to hardware issues, I don't know if it worked :) good to hear that someone actively maintains PicoBSD. however, atm we are using FreeBSD with ro-mounts on normal Harddisks. Wich has nearly the same effect as PicoBSD, e.g. powering off without any data loss, or fsck on reboot, but it has more flexibility because you can use the ports for installing software. bye, -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Tiny BSD Pages
Hi, Chris Fowler schrieb: I do one thing in Linux that I want to do in FreeBSD. I store my root file system as a blow fish, gzipped, encrypted file on a DiskOnChip. I have done exactly this some years ago, checkout PicoBSD (freebsd-small mailinglist). But I don't know the current status of PicoBSD. see also: http://people.freebsd.org/~picobsd/ bye, -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
WaveLAN problems
Hi, I have a Netgear MA401 PCCard. The system recognizes the card, but after typeing ... bash-2.05a# wicontrol NIC serial number: [ ] Station name: [ FreeBSD WaveL ] SSID for IBSS creation: [ ] Current netname (SSID): [ ] Desired netname (SSID): [ ] Current BSSID: [ 00:00:00:00:00:00 ] Channel list: [ 1fff ] IBSS channel: [ 3 ] Current channel:[ 0 ] Comms quality/signal/noise: [ 0 0 0 ] wicontrol: SIOCGWAVELAN: Invalid argument here's the dmesg output: module_register_init: MOD_LOAD (logo_saver, 0xc2630c80, 0) error 19 wi0: Netgear MA401RA at port 0x100-0x13f irq 9 function 0 config 1 on pccard0 wi0: 802.11 address: 00:09:5b:34:f8:ae wi0: using RF:PRISM2.5 MAC:ISL3873 wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6) wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps I'm running FreeBSD-Current of today, bye, -- --- - Michael Bretterklieber- [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat --- A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- - ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: FreeBSD/i386 kern.flp flooding again
Hi, Makoto Matsushita schrieb: Note that both devices cannot load as a kernel module at this time; removing these devices means that we cannot use them for installation. what about moving legacy drivers (like EISA) to a kern_legacy.flp? bye, -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
NT MD4 password hash as new password encryption method for FreeBSD
Hi, This is a simple proposal to add support for NT MD4 password hashes to crypt(3). NT MD4 password hashes are more insecure than the standard FreeBSD MD5 based password crypt or the much more stronger blowfish based encryption. Why are you/we so nut to use NT password hashes? The answer is very simple: If you like to authenticate dialin users (ppp, pptp) with CHAP you need the plaintext password on the server and therefore its not possible to store the passwords in the systems master.passwd. Using PAP is a bad idea, because the passwords are transmitted as plaintext over the net. MS-CHAP solves this problem by using hashed passwords (md4). With MS-CHAP and our modification to crypt(3) its not longer necessary to store plaintext secrets on your server! But we think there are many more advantages: 1. Only one user database (password can easily changed by the user himself). 2. MS-CHAP can used, without storing the plaintext passwords on the server. 3. SAMBA can modified to use directly the master.passwd and not his own smbpasswd. 4. Samba can use NIS for encrypted passwords on FreeBSD. Disadvantages: 1. No salt is used, users with same passwords have the same hash The attached patches implements this as new password type $3 and it can be configured via login.conf (:passwd_format=nth:). Patches for MPD, SAMBA and (soon) for PPP can be found here: http://www.bugat.at/projekte/nthash4freebsd.ihtml bye, -- --- - Michael Bretterklieber- [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat --- A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- - ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 diff -u libcrypt_orig/Makefile libcrypt/Makefile --- libcrypt_orig/Makefile Fri Jan 17 19:11:12 2003 +++ libcrypt/Makefile Fri Jan 17 18:55:22 2003 @@ -6,9 +6,10 @@ LIB= crypt .PATH: ${.CURDIR}/../libmd -SRCS= crypt.c crypt-md5.c md5c.c misc.c +SRCS= crypt.c crypt-nthash.c crypt-md5.c md5c.c misc.c MAN= crypt.3 MLINKS=crypt.3 crypt_get_format.3 crypt.3 crypt_set_format.3 +LDADD+=-lmd CFLAGS+= -I${.CURDIR}/../libmd -I${.CURDIR}/../libutil CFLAGS+= -DLIBC_SCCS -Wall # Pull in the crypt-des.c source, assuming it is present. Only in libcrypt: crypt-nthash.c diff -u libcrypt_orig/crypt.c libcrypt/crypt.c --- libcrypt_orig/crypt.c Fri Jan 17 19:11:06 2003 +++ libcrypt/crypt.cFri Jan 17 18:14:04 2003 @@ -62,6 +62,11 @@ }, #endif { + nth, + crypt_nthash, + $3 + }, + { NULL, NULL } diff -u libcrypt_orig/crypt.h libcrypt/crypt.h --- libcrypt_orig/crypt.h Fri Jan 17 19:11:08 2003 +++ libcrypt/crypt.hFri Jan 17 18:14:30 2003 @@ -33,6 +33,7 @@ char *crypt_des(const char *pw, const char *salt); char *crypt_md5(const char *pw, const char *salt); char *crypt_blowfish(const char *pw, const char *salt); +char *crypt_nthash(const char *pw, const char *salt); extern void _crypt_to64(char *s, unsigned long v, int n); /* * * THE BEER-WARE LICENSE (Revision 42): * [EMAIL PROTECTED] wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * * * $FreeBSD: src/lib/libcrypt/crypt-md5.c,v 1.5.2.1 2001/05/24 12:20:02 markm Exp $ * */ #if defined(LIBC_SCCS) !defined(lint) static const char rcsid[] = \ $FreeBSD: src/lib/libcrypt/crypt-md5.c,v 1.5.2.1 2001/05/24 12:20:02 markm Exp $; #endif /* LIBC_SCCS and not lint */ #include ctype.h #include unistd.h #include stdio.h #include stdarg.h #include string.h #include md4.h #include err.h #include crypt.h #define MD4_SIZE 16 /* * NT HASH = md4(str2unicode(pw)) */ char *crypt_nthash(pw, salt) const char *pw; const char *salt; { int unipwLen; static char *magic = $3$; static char passwd[120]; u_int16_t unipw[128]; u_char final[32 + 1]; const char *s; MD4_CTX ctx; /* convert to unicode (thanx Archie) */ for (unipwLen = 0, s = pw; unipwLen sizeof(unipw) / 2 *s; s++) unipw[unipwLen++] = htons(*s 8); /* Compute MD4 of Unicode password */ MD4Init(ctx
enhancements for libradius - commiter wanted
Hi, I already tried some weeks ago to find (at [EMAIL PROTECTED]) someone who can review and commit this code, but nobody replied, so I try it again: I made the radius integration for mpd. During this work I missed some functions in libradius. Here is a short changelog: - added rad_demangle for demangling user-passwords (needed for MS-CHAPv1 MPPE-keys). - added rad_demangle_mppe_key for demangling mppe-keys (needed for MS-CHAPv2 MPPE-keys). - added some typecasts to avoid compilation warnings - if the programmer has not called rad_create_request() but rad_put_*, then a weird error message was returned = fixed. The rad_demangle_mppe_key function was taken from userland ppp. I also opened a pr: http://www.freebsd.org/cgi/query-pr.cgi?pr=46555 bye, -- --- - Michael Bretterklieber- [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat --- A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- - ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 diff -u libradius/Makefile libradius_new/Makefile --- libradius/Makefile Mon Dec 23 16:07:51 2002 +++ libradius_new/Makefile Sat Jan 4 23:25:13 2003 @@ -31,7 +31,7 @@ DPADD+=${LIBMD} LDADD+=-lmd SHLIB_MAJOR= 1 -SHLIB_MINOR= 0 +SHLIB_MINOR= 1 MAN= libradius.3 radius.conf.5 .include bsd.lib.mk diff -u libradius/radlib.c libradius_new/radlib.c --- libradius/radlib.c Sat Jan 4 23:26:58 2003 +++ libradius_new/radlib.c Sat Jan 4 23:24:46 2003 @@ -31,6 +31,7 @@ #include sys/time.h #include netinet/in.h #include arpa/inet.h +#include netgraph/ng_mppc.h #include errno.h #include md5.h @@ -243,7 +244,7 @@ sizeof srvp-addr.sin_addr); } if (port != 0) - srvp-addr.sin_port = htons(port); + srvp-addr.sin_port = htons((u_short)port); else { struct servent *sent; @@ -513,11 +514,12 @@ for (i = 0; i LEN_AUTH; i += 2) { long r; r = random(); - h-request[POS_AUTH+i] = r; - h-request[POS_AUTH+i+1] = r 8; + h-request[POS_AUTH+i] = (u_char)r; + h-request[POS_AUTH+i+1] = (u_char)(r 8); } h-req_len = POS_ATTRS; clear_password(h); + h-request_created = 1; return 0; } @@ -569,7 +571,7 @@ } type = h-response[h-resp_pos++]; *len = h-response[h-resp_pos++] - 2; - if (h-resp_pos + *len h-resp_len) { + if (h-resp_pos + (int)*len h-resp_len) { generr(h, Malformed attribute in response); return -1; } @@ -671,6 +673,7 @@ h-pass_pos = 0; h-chap_pass = 0; h-type = RADIUS_AUTH; +h-request_created = 0; } return h; } @@ -703,6 +706,11 @@ { int result; + if (!h-request_created) { + generr(h, Please call rad_create_request()); + return -1; +} + if (type == RAD_USER_PASSWORD) result = put_password_attr(h, type, value, len); else { @@ -892,6 +900,11 @@ struct vendor_attribute *attr; int res; + if (!h-request_created) { + generr(h, Please call rad_create_request()); + return -1; +} + if ((attr = malloc(len + 6)) == NULL) { generr(h, malloc failure (%d bytes), len + 6); return -1; @@ -945,3 +958,122 @@ return (h-servers[h-srv].secret); } +int +rad_demangle(struct rad_handle *h, const void *mangled, size_t mlen, u_char +*demangled) +{ + char R[LEN_AUTH]; + const char *S; + int i, Ppos; + MD5_CTX Context; + u_char b[16], *C; + + if ((mlen % 16 != 0) || (mlen 128)) { + generr(h, Cannot interpret mangled data of length %ld, (u_long)mlen); + return -1; + } + + C = (u_char *)mangled; + + /* We need the shared secret as Salt */ + S = rad_server_secret(h); + + /* We need the request authenticator */ + if (rad_request_authenticator(h, R, sizeof R) != LEN_AUTH) { + generr(h, Cannot obtain the RADIUS request authenticator); +return -1; + } + + MD5Init(Context); + MD5Update(Context, S, strlen(S)); + MD5Update(Context, R, LEN_AUTH); + MD5Final(b, Context); + Ppos = 0; + while (mlen) { + + mlen -= 16; + for (i = 0; i 16; i++) + demangled
Re: Request for info from SiS chipset owners
Hi, chip0@pci0:0:0: class=0x06 card=0x chip=0x55711039 rev=0x01 hdr=0x00 isab0@pci0:1:0: class=0x060100 card=0x chip=0x00081039 rev=0x01 hdr=0x00 atapci0@pci0:1:1: class=0x01018a card=0x0063000d chip=0x55131039 rev=0xc1 hdr=0x00 none0@pci0:11:0: class=0x03 card=0x chip=0x00e0102c rev=0xc6 hdr=0x00 atapci0: SiS 5591 ATA33 controller port 0x4000-0x400f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 irq 14 at device 1.1 on pci0 bye, Soeren Schmidt wrote: I'm currently in the midst of an ATA chipset support mega rewrite/update, and the last item on the list is SiS support. That where _you_ come into the picture, I need a pciconf -l from your SiS based system! Just reply to this message with the output from pciconf -l and you have helped me sort out the myriads of SiS chipsets out there. -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message -- --- - Michael Bretterklieber- [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat --- A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.bretterklieber.com --- - ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Confused by mpd and ipnat
Hi, leafy schrieb: I run -current and decided to try kernel PPPoE. I installed mpd from ports which ran fine. After installing ipnat, I setup the following rule in ipnat.rules: map ng0 192.168.0.0/24 - 0/32 When I reboot, this line (along with ipnat stuff) got executed before mpd fiinishes PPPoE negotiation, and ipnat -l shows that the ng0 ip was 0.0.0.0/32. Is there anyway I can ensure that ipnat -f /etc/ipnat.rules get executed only after mpd has obtained proper ip settings? You can set this rule in an iface up-script: set iface up-script script set iface down-script script bye, -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200-- privat A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.inode.at/mbretter --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Call for testers: acpica-unix-20021118.tar.gz
Hi, I tested the patches on my Sony FX601. The problem is still the machine starts resuming after suspending to S3, but the display stays black. I attached my dmesg output and the output from acpidump, ... there are a lot of acpi related errors bye, Mitsuru IWASAKI schrieb: Hi all, I've made patches for the latest ACPI CA snapshot between 20021002 and 20021118. http://people.freebsd.org/~iwasaki/acpi/acpica-20021002-20021118-test20021121.diff A lot of bugs are fixed, please check the change log at: http://developer.intel.com/technology/iapc/acpi/downloads/CHANGES.txt Please test them and feedback to [EMAIL PROTECTED] if you find any problems. I'll import them into src tree before RC1. -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200 -- privat A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.inode.at/mbretter --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #1: Fri Nov 22 09:01:12 CET 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Preloaded elf kernel /boot/kernel/kernel at 0xc06ab000. Preloaded elf module /boot/kernel/acpi.ko at 0xc06ab0a8. Timecounter i8254 frequency 1193182 Hz Timecounter TSC frequency 1100044126 Hz CPU: mobile AMD Duron(tm) (1100.04-MHz 686-class CPU) Origin = AuthenticAMD Id = 0x662 Stepping = 2 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE AMD Features=0xc040AMIE,DSP,3DNow! real memory = 268435456 (262144K bytes) avail memory = 253554688 (247612K bytes) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: math processor on motherboard npx0: INT 16 interface acpi0: SONY K5 on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15 Using $PIR table, 6 entries at 0xc00fdf60 acpi0: power button is handled as a fixed feature programming model. Timecounter ACPI-safe frequency 3579545 Hz acpi_timer0: 32-bit timer at 3.579545MHz port 0x8008-0x800b on acpi0 acpi_cpu0: CPU on acpi0 acpi_tz0: thermal zone on acpi0 acpi_button0: Sleep Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 initial configuration \\_SB_.PCI0.PIB_.LNKC irq 5: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.1.0 \\_SB_.PCI0.PIB_.LNKA irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.0 \\_SB_.PCI0.PIB_.LNKB irq 10: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.1 \\_SB_.PCI0.PIB_.LNKC irq 5: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.2 \\_SB_.PCI0.PIB_.LNKD irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.3 \\_SB_.PCI0.PIB_.LNKA irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.10.0 \\_SB_.PCI0.PIB_.LNKB irq 10: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.10.1 \\_SB_.PCI0.PIB_.LNKD irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.14.0 \\_SB_.PCI0.PIB_.LNKB irq 10: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.16.0 before setting priority for links before fixup boot-disabled links - after fixup boot-disabled links -- arbitrated configuration - \\_SB_.PCI0.PIB_.LNKC irq 5: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.1.0 \\_SB_.PCI0.PIB_.LNKA irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.0 \\_SB_.PCI0.PIB_.LNKB irq 10: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.1 \\_SB_.PCI0.PIB_.LNKC irq 5: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.2 \\_SB_.PCI0.PIB_.LNKD irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.7.3 \\_SB_.PCI0.PIB_.LNKA irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.10.0 \\_SB_.PCI0.PIB_.LNKB irq 10: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.10.1 \\_SB_.PCI0.PIB_.LNKD irq 9: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.14.0 \\_SB_.PCI0.PIB_.LNKB irq 10: [ 3 4 5 7 9 10 11 12] low,level,sharable 0.16.0 pci0: ACPI PCI bus on pcib0 agp0: VIA 82C8363 (Apollo KT133A) host to PCI bridge mem 0xf000-0xf7ff at device 0.0 on pci0 pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0 initial configuration \\_SB_.PCI0.PIB_.LNKC irq 5: [ 3 4 5 7 9 10 11 12] low,level,sharable 1.0.0 before setting priority for links before fixup boot-disabled links - after fixup boot-disabled links -- arbitrated configuration - \\_SB_.PCI0
Re: recommended VAIO for ACPI hacking (Re: cvs commit: www/en/releases/5.0Rtodo.sgml)
Hi, I have an VAIO FX601, and ACPI never worked. I get a lot of errors related to ACPI during boot and acpidump also prints errors. After suspending the laptop, the system never wakes-up, display still stays black. So this ACPI BIOS seems to be completely buggy, bye, Mitsuru IWASAKI schrieb: [moved to current@ and acpi-jp@jp] Hi, According to Mitsuru IWASAKI: If your ACPI BIOS check OS type (try; acpidump | grep _OS_), you might need to do something. The black list feature (for non-Windows) might be good idea for avoiding confusion. Will try tonite when I'll have my laptop. Thanks. Also, development resources are limited. For example, none of ACPI developers has VAIO. Well, I don't know enough to be a developper but I do have a VAIO (Z600TEK) and can test things. Just ask. BTW, I'm planning to buy VAIO (maybe used one) to improve ACPI support. Any recommendations? # Recommendation means some sort of `Sigh! My VAIO doesn't work with # ACPI at all!!' :-) Thanks To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200 -- privat A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.inode.at/mbretter --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Help with first build of current
Hi, - you have to build and install the new kernel - reboot into single user mode. - and continue with make installworld bye, Pascal Giannakakis schrieb: Lo ppl, yesterday i tried to build current with files i sucked 2 or 3 days ago via cvsup. I followed the instructions of the handbook precisely, and got successfully to the step make buildkernel. After that, i dropped into single user mode and started make installworld. It failed at some place within the directory chat with signal 12 (i don't remember the exact error). What went wrong? Is current broken? If yes, where do i look first for the information whether a current is OK? And will the 4.7 live CD work to fix a broken current? I'd like to retry the build today. If you have additional hints not mentioned in the handbook, please tell me! The version before the build was 4.5-RELEASE. It's running on a C3 800 MHz with 256 MB RAM and 40 GB HDD. Quick help would be very nice, as i can't go online at home. =) TIA -- --- -- Michael Bretterklieber - [EMAIL PROTECTED] JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200 -- privat A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: [EMAIL PROTECTED] Fax: ++43-(0)316-403274-10 http://www.inode.at/mbretter --- -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Upgrade STABLE-CURRENT
Hi, you have to install the new kernel and then reboot with the new kernel into single-user-mode, and do make installworld again, bye, Samuel Tardieu schrieb: In case it is useful: the upgrade from STABLE to CURRENT was broken last week and is still probably, because chflags is used during the installworld step and it uses a system call not present in STABLE. Sam To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message -- -- Michael Bretterklieber LCP JAWA Management Software GmbH Liebenauer Hauptstr. 200 A-8041 GRAZ Tel: ++43-(0)316-403274-12 Fax: ++43-(0)316-403274-10 GSM: ++43-(0)676-93 96 698 [EMAIL PROTECTED] homepage: http://www.jawa.at - privat --- E-mail: [EMAIL PROTECTED] homepage: http://www.inode.at/mbretter -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Updating from 4.6 to Current
Hi, I updated my system from 4.6 to 5.0-current (11.07.2002). 1st: during make installworld i ran into this error: /usr/bin/cu - /usr/bin/tip ln /usr/bin/cu Operation not permitted. After manualy doing chflags noschg /usr/bin/cu the installworld worked 2nd: I tried to build a custom kernel, but make depend returns: don't know how to make ../../sys/inttypes.h bye, -- -- Michael Bretterklieber LCP JAWA Management Software GmbH Liebenauer Hauptstr. 200 A-8041 GRAZ Tel: ++43-(0)316-403274-12 Fax: ++43-(0)316-403274-10 GSM: ++43-(0)676-93 96 698 [EMAIL PROTECTED] homepage: http://www.jawa.at - privat --- E-mail: [EMAIL PROTECTED] homepage: http://www.inode.at/mbretter -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Updating from 4.6 to Current
Hi, Giorgos Keramidas schrieb: On 2002-07-12 14:40 +, Michael Bretterklieber wrote: 2nd: I tried to build a custom kernel, but make depend returns: don't know how to make ../../sys/inttypes.h Are you using 'make depend clean all' to build the kernel? clean all not because it was a completely new kernel-config, Try using cd /usr/src ; make buildkernel instead. for sure, this works. bye, -- -- Michael Bretterklieber LCP JAWA Management Software GmbH Liebenauer Hauptstr. 200 A-8041 GRAZ Tel: ++43-(0)316-403274-12 Fax: ++43-(0)316-403274-10 GSM: ++43-(0)676-93 96 698 [EMAIL PROTECTED] homepage: http://www.jawa.at - privat --- E-mail: [EMAIL PROTECTED] homepage: http://www.inode.at/mbretter -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Updating from 4.6 to Current
Hi, thx. Please do not diverge from the procedure described in UPDATING. sorry my first current. bye, Ruslan Ermilov schrieb: On Fri, Jul 12, 2002 at 02:40:00PM +0200, Michael Bretterklieber wrote: Hi, I updated my system from 4.6 to 5.0-current (11.07.2002). 1st: during make installworld i ran into this error: /usr/bin/cu - /usr/bin/tip ln /usr/bin/cu Operation not permitted. After manualy doing chflags noschg /usr/bin/cu the installworld worked I've just fixed this in src/usr.bin/tip/tip/Makefile,v 1.18. Thanks for spotting! 2nd: I tried to build a custom kernel, but make depend returns: don't know how to make ../../sys/inttypes.h Please do not diverge from the procedure described in UPDATING. Cheers, -- -- Michael Bretterklieber LCP JAWA Management Software GmbH Liebenauer Hauptstr. 200 A-8041 GRAZ Tel: ++43-(0)316-403274-12 Fax: ++43-(0)316-403274-10 GSM: ++43-(0)676-93 96 698 [EMAIL PROTECTED] homepage: http://www.jawa.at - privat --- E-mail: [EMAIL PROTECTED] homepage: http://www.inode.at/mbretter -- ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
ACPI Sony FX601
Hi, I installed FreeBSD 5.0-current on my notebook, because in FreeBSD4.6 the sounddriver let the kernel hang on boot. I know, that acpi is under developement, but here are my results testing acpi on this hardware. acpiconf -s 3: works, but the machine doesen't completely wake up, the display still stays dark acpiconf -s 4: the system hangs uo. Here's my acpidump /* RSD PTR: Checksum=17, OEMID=PTLTD, RsdtAddress=0x0fef9a90 */ /* RSDT: Length=48, Revision=1, Checksum=247, OEMID=SONY, OEM Table ID=K5, OEM Revision=0x604, Creator ID= LTP, Creator Revision=0x0 */ /* Entries={ 0x0fefee4c, 0x0fefeec0, 0x0fefeee8 } */ /* DSDT=0xfef9ac0 INT_MODEL=PIC SCI_INT=9 SMI_CMD=0x802f, ACPI_ENABLE=0xf0, ACPI_DISABLE=0xf1, S4BIOS_REQ=0xf2 PM1a_EVT_BLK=0x8000-0x8003 PM1a_CNT_BLK=0x8004-0x8005 PM2_TMR_BLK=0x8008-0x800b PM2_GPE0_BLK=0x8020-0x8023 P_LVL2_LAT=90ms, P_LVL3_LAT=1100ms FLUSH_SIZE=0, FLUSH_STRIDE=0 DUTY_OFFSET=0, DUTY_WIDTH=4 DAY_ALRM=125, MON_ALRM=126, CENTURY=50 Flags={WBINVD,PROC_C1,SLP_BUTTON,RTC_S4,TMR_VAL_EXT} */ and here's my dmesg output: Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #1: Fri Jul 12 11:53:31 CEST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Preloaded elf kernel /boot/kernel/kernel at 0xc05d. Preloaded elf module /boot/kernel/acpi.ko at 0xc05d00a8. Timecounter i8254 frequency 1193182 Hz Timecounter TSC frequency 1100048152 Hz CPU: mobile AMD Duron(tm) (1100.05-MHz 686-class CPU) Origin = AuthenticAMD Id = 0x662 Stepping = 2 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE AMD Features=0xc040AMIE,DSP,3DNow! real memory = 268435456 (262144K bytes) avail memory = 254119936 (248164K bytes) Pentium Pro MTRR support enabled Using $PIR table, 6 entries at 0xc00fdf60 npx0: math processor on motherboard npx0: INT 16 interface acpi0: SONY K5 on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter ACPI-safe frequency 3579545 Hz acpi_timer0: 32-bit timer at 3.579545MHz port 0x8008-0x800b on acpi0 acpi_cpu0: CPU on acpi0 acpi_tz0: thermal zone on acpi0 acpi_button0: Sleep Button on acpi0 acpi_pcib0: Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: PCI bus on acpi_pcib0 pcib1: PCI-PCI bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 pci1: display, VGA at device 0.0 (no driver attached) isab0: PCI-ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: VIA 82C686 ATA100 controller port 0x1c40-0x1c4f at device 7.1 on pci0 atapci0: Correcting VIA config for southbridge data corruption bug ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: VIA 83C572 USB controller port 0x1c00-0x1c1f irq 9 at device 7.2 on pci0 usb0: VIA 83C572 USB controller on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub0: port error, restarting port 1 uhub0: port error, giving up port 1 uhub0: port error, restarting port 2 uhub0: port error, giving up port 2 ums0: Logitech USB Mouse, rev 1.10/6.10, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: VIA 83C572 USB controller port 0x1c20-0x1c3f irq 9 at device 7.3 on pci0 usb1: VIA 83C572 USB controller on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhub1: port error, restarting port 1 uhub1: port error, giving up port 1 uhub1: port error, restarting port 2 uhub1: port error, giving up port 2 isab1: PCI-ISA bridge at device 7.4 on pci0 pci0: multimedia, audio at device 7.5 (no driver attached) pci0: simple comms at device 7.6 (no driver attached) pccbb0: TI1420 PCI-CardBus Bridge irq 9 at device 10.0 on pci0 cardbus0: CardBus bus on pccbb0 pccard0: 16-bit PCCard bus on pccbb0 pccbb1: TI1420 PCI-CardBus Bridge irq 10 at device 10.1 on pci0 cardbus1: CardBus bus on pccbb1 pccard1: 16-bit PCCard bus on pccbb1 pci0: serial bus, FireWire at device 14.0 (no driver attached) rl0: RealTek 8139 10/100BaseTX port 0x1800-0x18ff mem 0xe8004800-0xe80048ff irq 10 at device 16.0 on pci0 rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mode /usr/src/sys/vm/uma_core.c:1332: could sleep with rl0 locked from /usr/src/sys/pci/if_rl.c:855 rl0: Ethernet address: 08:00:46:5a:c4:4b miibus0: MII bus on rl0 rlphy0: RealTek internal media interface on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto /usr/src/sys/vm/uma_core.c:1332: could sleep with rl0 locked from /usr/src/sys/pci/if_rl.c:587 acpi_acad0: AC adapter on acpi0 acpi_cmbat0: Control method Battery on acpi0 acpi_cmbat1: Control method Battery on