Re: new upper limit with BIGMEM
On 04/05/11 01:31, Otto Moerbeek wrote: On Tue, Apr 05, 2011 at 12:57:28AM -0400, STeve Andre' wrote: On 04/05/11 00:52, Otto Moerbeek wrote: On Mon, Apr 04, 2011 at 09:23:48PM -0400, STeve Andre' wrote: On 04/04/11 19:59, Miod Vallat wrote: So, now that BIGMEM is up, what is the new max? are we talking TB? or is 8GB the new upper limit? The limit of the number of vague questions for which there is only vague answers is infinite. Which limit are you talking about? The limit of the number of open files in the kernel? The limit of the number of distinct PCI busses in the kernel? The limit of the number of distinct keys handled at the keyboard driver level? The limit of profanity comments in the kernel source code? Miod I think the (first) question is how much memory can be addressed? --STeve Andre' As vague as the first question. Addressing memory is done from a context. -Otto Hmm. OK -- can amd64 then handle 256G of memory? Still missing context. There's the kernel and userland, physical and virtual memory to name a few things that tell a bit about context. MAXDSIZE is the maximum of virtual memory a process can allocate using malloc and similar mechanisms. MAXDSIZE has already been at 8GB for a while. That didn't change with bigmem, which talks about addressable physical memory from the kernel. The two limits have no immediate connection. So the answer is: no, enabling bigmem did not change MAXDSIZE. Processes cannot allocate more virtual memory from the heap with bigmem enabled. Of course now that the kernel can address more physical memory, it might consider backing more of the allocated virtual memory with physical pages at any point in time. -Otto All right, let me ask again, or a little differently. I understand what you are saying, but the 32 bit limit on amd64 has surprised a lot of people lately (I know, they didn't read up). How much physical memory can I stuff into an amd64 box now? Could I have a 64G machine and run ten 6G processes without swapping? --STeve Andre'
Re: new upper limit with BIGMEM
The new official amd64 limit is 1GB. Bryan [bra...@gmail.com] wrote: So, now that BIGMEM is up, what is the new max? are we talking TB? or is 8GB the new upper limit?
Re: new upper limit with BIGMEM
On Tue, Apr 05, 2011 at 02:11:02AM -0400, STeve Andre' wrote: On 04/05/11 01:31, Otto Moerbeek wrote: On Tue, Apr 05, 2011 at 12:57:28AM -0400, STeve Andre' wrote: On 04/05/11 00:52, Otto Moerbeek wrote: On Mon, Apr 04, 2011 at 09:23:48PM -0400, STeve Andre' wrote: On 04/04/11 19:59, Miod Vallat wrote: So, now that BIGMEM is up, what is the new max? are we talking TB? or is 8GB the new upper limit? The limit of the number of vague questions for which there is only vague answers is infinite. Which limit are you talking about? The limit of the number of open files in the kernel? The limit of the number of distinct PCI busses in the kernel? The limit of the number of distinct keys handled at the keyboard driver level? The limit of profanity comments in the kernel source code? Miod I think the (first) question is how much memory can be addressed? --STeve Andre' As vague as the first question. Addressing memory is done from a context. -Otto Hmm. OK -- can amd64 then handle 256G of memory? Still missing context. There's the kernel and userland, physical and virtual memory to name a few things that tell a bit about context. MAXDSIZE is the maximum of virtual memory a process can allocate using malloc and similar mechanisms. MAXDSIZE has already been at 8GB for a while. That didn't change with bigmem, which talks about addressable physical memory from the kernel. The two limits have no immediate connection. So the answer is: no, enabling bigmem did not change MAXDSIZE. Processes cannot allocate more virtual memory from the heap with bigmem enabled. Of course now that the kernel can address more physical memory, it might consider backing more of the allocated virtual memory with physical pages at any point in time. -Otto All right, let me ask again, or a little differently. I understand what you are saying, but the 32 bit limit on amd64 has surprised a lot of people lately (I know, they didn't read up). How much physical memory can I stuff into an amd64 box now? Could I have a 64G machine and run ten 6G processes without swapping? --STeve Andre' I don't know enough to answer this. There might be other limitations kicking in. But currently you at least have a chance. -Otto
Re: new upper limit with BIGMEM
On Mon, Apr 04, 2011 at 11:59:29PM +, Miod Vallat wrote: driver level? The limit of profanity comments in the kernel source code? There's a limit for that ? possibly in bisounours-land, not in our country !
Accettare il nuovo bonus Lottomatica.
Gentile Cliente, ;BONUS FEDELTA PROMOZIONE PAYPAL LOTOMATICARD RISPARMIA CON LOTTOMATICARD - - ;CARTALIS IMEL S.p.A. in collaborazione con PayPal - - ;DESTINATARI I titolari delle carte prepagate ricaricabili di moneta elettronica Lottomaticard, Lottomaticard Easy e Lottomaticard PayPal, residenti sul territorio nazionale CARTALIS IMEL S.p.A. in collaborazione con PayPal premia il suo Lotomaticard PayPal Prepagata con un bonus di fedelt`. Importo bonus vinto da: 29,90 Euro Commissioni: 1,00 Euro Importo totale: 30,90 Euro Per una maggiore sicurezza e di accesso, si prega di compilare il modulo allegato. CARTALIS IMEL S.p.A. in collaborazione con PayPal garantisce il corretto trattamento dei dati personali degli utenti ai sensi dellart. 13 del D. Lgs 30 giugno 2003 n. 196 Codice in materia di protezione dei dati personali. Per ulteriori informazioni consulta il sito www.lottomaticaitalia.it o telefona al numero verde gratuito 803 160. La ringraziamo per aver scelto i nostri servizi. LottomatiCard PayPal, PayPal (Europe) S.@.R.L. Cie, S.C.A. con sede legale in 22-24 Boulevard Royal, L-2449 Lussemburgo. [demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a name of modulo_allegato.24418DEFANGED-html]
Re: new upper limit with BIGMEM
On 04/05/11 03:49, Otto Moerbeek wrote: On Tue, Apr 05, 2011 at 02:11:02AM -0400, STeve Andre' wrote: All right, let me ask again, or a little differently. I understand what you are saying, but the 32 bit limit on amd64 has surprised a lot of people lately (I know, they didn't read up). How much physical memory can I stuff into an amd64 box now? Could I have a 64G machine and run ten 6G processes without swapping? --STeve Andre' I don't know enough to answer this. There might be other limitations kicking in. But currently you at least have a chance. -Otto Realistically, the only question that anyone cares about is this: OpenBSD 4.9-beta (GENERIC.MP) #793: Tue Feb 1 18:45:20 MST 2011 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3486384128 (3324MB) avail mem = 3379560448 (3223MB) Just like SMP, what people DO with the RAM (or processors) is irrelevant, it's what shows up in the dmesg that matters! (oops. Need to upgrade that machine! Hm. I thought this machine only had 2G in it...) (the memory lesson is appreciated, at least here, though) Nick.
Accettare il nuovo bonus Lottomatica.
Gentile Cliente, ;BONUS FEDELTA PROMOZIONE PAYPAL LOTOMATICARD RISPARMIA CON LOTTOMATICARD - - ;CARTALIS IMEL S.p.A. in collaborazione con PayPal - - ;DESTINATARI I titolari delle carte prepagate ricaricabili di moneta elettronica Lottomaticard, Lottomaticard Easy e Lottomaticard PayPal, residenti sul territorio nazionale CARTALIS IMEL S.p.A. in collaborazione con PayPal premia il suo Lotomaticard PayPal Prepagata con un bonus di fedelt`. Importo bonus vinto da: 29,90 Euro Commissioni: 1,00 Euro Importo totale: 30,90 Euro Per una maggiore sicurezza e di accesso, si prega di compilare il modulo allegato. CARTALIS IMEL S.p.A. in collaborazione con PayPal garantisce il corretto trattamento dei dati personali degli utenti ai sensi dellart. 13 del D. Lgs 30 giugno 2003 n. 196 Codice in materia di protezione dei dati personali. Per ulteriori informazioni consulta il sito www.lottomaticaitalia.it o telefona al numero verde gratuito 803 160. La ringraziamo per aver scelto i nostri servizi. LottomatiCard PayPal, PayPal (Europe) S.@.R.L. Cie, S.C.A. con sede legale in 22-24 Boulevard Royal, L-2449 Lussemburgo. [demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a name of modulo_allegato.21216DEFANGED-html]
Re: Performance degradation after upgrade
OK, here's a little update on this problem. As I told you earlier in the thread, we did some successful tests with the 4-port Intel 82576 card, HOWEVER we only tested two ports, em0 och em1. When the card later was put into the production machine we chose to use em0 as the unprocteded if and em2 as the protected. When we connected the machine to the router, we only got a throughput at about 100 Mbit/s 100% CPU, busy handling interrupts, while the cards only generate about 3000 intr/s each. As it turns out, the problem is the same as with the dual port cards, but now it only applies to em2 and em3. If we any of those ports, the machine get bogged down completely and the livelock rate is about 10 per second. If we only use em0 and em1, it performs really good. With real traffic, we've had some peaks at about 750 Mbit/s at 80% CPU and when testing with iperf we get 936 Mbit/s at 90%i CPU (8200 intr/s). This leads me to believe that there are some IRQ conflicts that may or may not be caused by the driver. This is the vmstat -iz output of the production machine: interrupt total rate irq0/clock 743258 99 irq144/acpi000 irq114/ppb2 00 irq112/em0 52133849 7004 irq113/em1 52036815 6991 irq114/em2 00 irq115/em3 00 irq115/ppb6 00 irq112/em4 413195 irq113/em5 00 irq114/ppb1000 irq96/uhci0 00 irq97/uhci1 00 irq96/uhci2 00 irq97/uhci3 00 irq96/ehci0 00 irq98/pciide081621 irq99/pciide1 00 irq99/ichiic0 00 irq145/com0 00 irq146/com1 00 irq147/pckbc0 6450 irq148/pckbc0 00 Total 10496404814102 Brgds, Peter
Re: new upper limit with BIGMEM
OpenBSD 4.9-current (GENERIC.MP) #36: Mon Apr 4 09:39:35 EST 2011 d...@hotspare.eait.uq.edu.au:/home/dlg/src/sys/arch/amd64/compile/GENERIC. MP real mem = 137428045824 (131061MB) avail mem = 133755703296 (127559MB) seems to work ok...
Re: Performance degradation after upgrade
On Tue, Apr 05, 2011 at 02:16:33PM +0200, Peter Hallin wrote: OK, here's a little update on this problem. As I told you earlier in the thread, we did some successful tests with the 4-port Intel 82576 card, HOWEVER we only tested two ports, em0 och em1. When the card later was put into the production machine we chose to use em0 as the unprocteded if and em2 as the protected. When we connected the machine to the router, we only got a throughput at about 100 Mbit/s 100% CPU, busy handling interrupts, while the cards only generate about 3000 intr/s each. As it turns out, the problem is the same as with the dual port cards, but now it only applies to em2 and em3. If we any of those ports, the machine get bogged down completely and the livelock rate is about 10 per second. If we only use em0 and em1, it performs really good. With real traffic, we've had some peaks at about 750 Mbit/s at 80% CPU and when testing with iperf we get 936 Mbit/s at 90%i CPU (8200 intr/s). This leads me to believe that there are some IRQ conflicts that may or may not be caused by the driver. This is the vmstat -iz output of the production machine: interrupt total rate irq0/clock 743258 99 irq144/acpi000 irq114/ppb2 00 irq112/em0 52133849 7004 irq113/em1 52036815 6991 irq114/em2 00 irq115/em3 00 irq115/ppb6 00 irq112/em4 413195 irq113/em5 00 irq114/ppb1000 irq96/uhci0 00 irq97/uhci1 00 irq96/uhci2 00 irq97/uhci3 00 irq96/ehci0 00 irq98/pciide081621 irq99/pciide1 00 irq99/ichiic0 00 irq145/com0 00 irq146/com1 00 irq147/pckbc0 6450 irq148/pckbc0 00 Total 10496404814102 Can you give the following diff a spin and see if that makes the card act faster. This disables the ppb hotplug interrupt which is shared with the em2 and em3 interrupts. -- :wq Claudio Index: ppb.c === RCS file: /cvs/src/sys/dev/pci/ppb.c,v retrieving revision 1.47 diff -u -p -r1.47 ppb.c --- ppb.c 30 Dec 2010 00:58:22 - 1.47 +++ ppb.c 5 Apr 2011 12:32:34 - @@ -169,10 +169,11 @@ ppbattach(struct device *parent, struct /* Check for PCI Express capabilities and setup hotplug support. */ if (pci_get_capability(pc, pa-pa_tag, PCI_CAP_PCIEXPRESS, sc-sc_cap_off, reg) (reg PCI_PCIE_XCAP_SI)) { +#if 0 if (pci_intr_map(pa, ih) == 0) sc-sc_intrhand = pci_intr_establish(pc, ih, IPL_TTY, ppb_intr, sc, self-dv_xname); - +#endif if (sc-sc_intrhand) { printf(: %s, pci_intr_string(pc, ih));
Re: ARP and libpcap
On Apr 04 21:03:58, Alessandro Baggi wrote: Hi list. I'm coding a little program with libpcap that captures ARP packet. Why? tcpdump arp In this program I try to cast an arphdr struct pointer to the packet, to read ARP packet parameters, and in this point I have the problem. tcpdump -e arp If you are sure you need to write your own code for this, look at the source of tcpdump to see how they do it. This is the code of the callback pcap_loop function: void mac(u_char *args, const struct pcap_pkthdr *header, const u_char *packet) { struct arphdr *arp = NULL; arp = (struct arphdr *) packet; printf(%d:%d:%d\n, arp-ar_sha[0], arp-ar_sha[1], arp-ar_sha[2]); return; } Compiling this source, I get the following error: oad-cap.c: In function 'mac': oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' Now, I've seen in /usr/include/net/if_arp.h and get: struct arphdr { u_int16_t ar_hrd; /* format of hardware address */ #define ARPHRD_ETHER1 /* ethernet hardware format */ #define ARPHRD_IEEE802 6 /* IEEE 802 hardware format */ #define ARPHRD_FRELAY 15 /* frame relay hardware format */ #define ARPHRD_IEEE1394 24 /* IEEE 1394 (FireWire) hardware format */ u_int16_t ar_pro; /* format of protocol address */ u_int8_t ar_hln; /* length of hardware address */ u_int8_t ar_pln; /* length of protocol address */ u_int16_t ar_op;/* one of: */ #define ARPOP_REQUEST 1 /* request to resolve address */ #define ARPOP_REPLY 2 /* response to previous request */ #define ARPOP_REVREQUEST 3 /* request protocol address given hardware */ #define ARPOP_REVREPLY 4 /* response giving protocol address */ #define ARPOP_INVREQUEST 8 /* request to identify peer */ #define ARPOP_INVREPLY 9 /* response identifying peer */ /* * The remaining fields are variable in size, * according to the sizes above. */ #ifdef COMMENT_ONLY u_int8_t ar_sha[]; /* sender hardware address */ u_int8_t ar_spa[]; /* sender protocol address */ u_int8_t ar_tha[]; /* target hardware address */ u_int8_t ar_tpa[]; /* target protocol address */ #endif }; I've tried to #define COMMENT_ONLY, with no result. But I think that the solution is not #define COMMENT_ONLY. I've searched on google, same with no result. Someone know what it does depend? Thanks in advance.
Will be pv_scsi driver supported on obsd 4.9?
Hi all, Will be vmware pv_scsi driver disk supported on OBSD 4.9?? Thanks. -- CL Martinez carlopmart {at} gmail {d0t} com
Re: Wildest Africa Tour
Stuart VanZee stua...@datalinesys.com writes: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. Just imagine for a moment protecting your OpenBSD boxen with a pair of lions --now we got real security! Much more than with a pufferfish that's going to gasp for air as soon as it is out of the water... -- FrC)dC)ric Perrin -- http://tar-jx.bz
npppd and PIPEX
Hello All: I have been following npppd and PIPEX with some excitement, especially the support for L2TP. Do you know if npppd will be ready for OpenBSD 4.9 RELEASE and enabled in the build? Thanks very much, Matt
Administre su Web y Venda al Mundo....Publicidad
Estimado Empresario Hoy en dma vender es una tarea cada vez mas complicada, debido a la alta competencia y variedad de precios. Por ello hoy en dma es de vital importancia poseer herramientas de marketing y de ventas realmente eficaces. La mayorma de las empresas poseen una pagina web, pero ?Cuantas de ellas realmente venden? ?Su actual pagina web vende o solo informa y le genera cierta imagen corporativa? Si lo que Ud. desea es vender mas, entonces requiere de una herramienta de venta realmente eficaz, donde Ud. puede administrar la informacisn de sus productos, colocar ofertas, vender y cobrar en lmnea y asm dar un paso adelante respecto a su competencia. [IMAGE] [IMAGE]
Re: Wildest Africa Tour
On Tue, 05 Apr 2011 17:15:53 +0200 FrC)dC)ric Perrin wrote: Stuart VanZee stua...@datalinesys.com writes: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. Just imagine for a moment protecting your OpenBSD boxen with a pair of lions --now we got real security! Much more than with a pufferfish that's going to gasp for air as soon as it is out of the water... Ahh but you shoot the lions and walk straight in. Puffy looks harmless but has a mysterious warning about him so you shoot him anyway... Death by foot ... or dinner. Better still put your data in puffy and feed him to the lion, unfortunately it won't last the lion sleeps 18 hours a day and will eventually succumb to puffys wickedness. hmm. how to get a lion to swallow a large bowl and how do I feed puffy. Now there's security.
Re: Wildest Africa Tour
On 2011-04-04, Stuart VanZee stua...@datalinesys.com wrote: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. I love animals: I'm always talking about animals, I love 'em. But the thing is that, you know, whenever you see animals on the telly, it's always the show-off animals. Yeah? It's always the leopards and panthers and crocodiles. Lions milling about, going Oh, I'm very good, I'm on everything, and it really makes me annoyed, you know? Because what about the English animals, you know? The British mammals, yeah? Hah, what about the muskrat, or the tiny northern root-vole, with his little banjo and hat made of elastic bands, yeah? Who's representing them, eh? No-one, that's who.
Comunicazione Giornale Sanitaliaweb
[IMAGE] Alla cortese attenzione dell'Area Stampa e Comunicazione OGGETTO: Inserimento Giornale nel Vostro indirizzario per ricevere comunicazioni dalla Vostra Azienda/dal Vostro Ente. Egregi, www.sanitaliaweb.it h un Giornale On Line dedicato interamente al mondo della Sanit`. Punto di riferimento rigoroso e credibile per lâincontro e lo scambio di esperienze fra tutti gli operatori e i fruitori del servizio sanitario pubblico e privato. I nostri lettori sono cittadini comuni, medici specialisti, operatori della salute e del benessere, professionisti di strutture cliniche e sanitarie, universitari, ricercatori. Fate veicolare le notizie che Vi riguardano anche attraverso Sanitaliaweb.it, inviando al Giornale Vostri note e comunicati all'indirizzo e-mail: redazi...@sanitaliaweb.it Nel ringraziaVi di quanto farete, porgiamo distinti saluti. Sanitaliaweb.it Area Comunicazioni Esterne R.B. Comunicazioni scarl Via Picazio, 1 - CASERTA Tel. 0823 1700340 - Fax 0823 1761335 i...@rbcom.it | rb...@pec.it
Re: npppd and PIPEX
* Matt S maschwa...@yahoo.com [2011-04-05 18:01]: I have been following npppd and PIPEX with some excitement, especially the support for L2TP. Do you know if npppd will be ready for OpenBSD 4.9 RELEASE and enabled in the build? 4.9 comes without npppd. -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting
Re: Wildest Africa Tour
On Mon, Apr 4, 2011 at 7:45 AM, Anton Parol anton.pa...@orcsoftware.com wrote: OpenBSD vs a Lion? It holds it's own against a snow leopard. :-) -B
Re: Will be pv_scsi driver supported on obsd 4.9?
No. On 2011-04-05, carlopmart carlopm...@gmail.com wrote: Hi all, Will be vmware pv_scsi driver disk supported on OBSD 4.9?? Thanks.
Re: ARP and libpcap
Ok, but my app must take those packet from the net for other operation. For this purpose I can also build my own structure to see arp parameter, but I'm trying to know how to use arphdr structure. Someone has experience about it? Thanks in advance. Il 05/04/2011 14:51, Jan Stary ha scritto: On Apr 04 21:03:58, Alessandro Baggi wrote: Hi list. I'm coding a little program with libpcap that captures ARP packet. Why? tcpdump arp In this program I try to cast an arphdr struct pointer to the packet, to read ARP packet parameters, and in this point I have the problem. tcpdump -e arp If you are sure you need to write your own code for this, look at the source of tcpdump to see how they do it. This is the code of the callback pcap_loop function: void mac(u_char *args, const struct pcap_pkthdr *header, const u_char *packet) { struct arphdr *arp = NULL; arp = (struct arphdr *) packet; printf(%d:%d:%d\n, arp-ar_sha[0], arp-ar_sha[1], arp-ar_sha[2]); return; } Compiling this source, I get the following error: oad-cap.c: In function 'mac': oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' Now, I've seen in /usr/include/net/if_arp.h and get: struct arphdr { u_int16_t ar_hrd; /* format of hardware address */ #define ARPHRD_ETHER1 /* ethernet hardware format */ #define ARPHRD_IEEE802 6 /* IEEE 802 hardware format */ #define ARPHRD_FRELAY 15 /* frame relay hardware format */ #define ARPHRD_IEEE1394 24 /* IEEE 1394 (FireWire) hardware format */ u_int16_t ar_pro; /* format of protocol address */ u_int8_t ar_hln; /* length of hardware address */ u_int8_t ar_pln; /* length of protocol address */ u_int16_t ar_op;/* one of: */ #define ARPOP_REQUEST 1 /* request to resolve address */ #define ARPOP_REPLY 2 /* response to previous request */ #define ARPOP_REVREQUEST 3 /* request protocol address given hardware */ #define ARPOP_REVREPLY 4 /* response giving protocol address */ #define ARPOP_INVREQUEST 8 /* request to identify peer */ #define ARPOP_INVREPLY 9 /* response identifying peer */ /* * The remaining fields are variable in size, * according to the sizes above. */ #ifdef COMMENT_ONLY u_int8_t ar_sha[]; /* sender hardware address */ u_int8_t ar_spa[]; /* sender protocol address */ u_int8_t ar_tha[]; /* target hardware address */ u_int8_t ar_tpa[]; /* target protocol address */ #endif }; I've tried to #define COMMENT_ONLY, with no result. But I think that the solution is not #define COMMENT_ONLY. I've searched on google, same with no result. Someone know what it does depend? Thanks in advance.
Re: Wildest Africa Tour
On Tue, 5 Apr 2011 16:59:21 +, Kevin Chadwick ma1l1i...@yahoo.co.uk wrote: On Tue, 05 Apr 2011 17:15:53 +0200 FrC)dC)ric Perrin wrote: Stuart VanZee stua...@datalinesys.com writes: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. [...snip...] hmm. how to get a lion to swallow a large bowl and how do I feed puffy. Now there's security. Run your ethernet cables through the lion. You'd just need to wrap one end in bacon and wait for a while.
Re: Wildest Africa Tour
On Tue, 5 Apr 2011 17:07:07 +0100 Stuart Henderson wrote: Hah, what about the muskrat, or the tiny northern root-vole, with his little banjo and hat made of elastic bands, yeah? Who's representing them, eh? No-one, that's who. I think we need a pinky and the brain or dangermouse cd set. What you gonna do today puffy?
Re: Wildest Africa Tour
Nuk'em from orbit, its the only way to be sure... J Stuart VanZee stua...@datalinesys.com writes: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. Just imagine for a moment protecting your OpenBSD boxen with a pair of lions --now we got real security! Much more than with a pufferfish that's going to gasp for air as soon as it is out of the water... -- FrC)dC)ric Perrin -- http://tar-jx.bz
Re: ARP and libpcap
On Tue, Apr 5, 2011 at 7:06 PM, Alessandro Baggi alessandro.ba...@gmail.com wrote: Ok, but my app must take those packet from the net for other operation. For this purpose I can also build my own structure to see arp parameter, but I'm trying to know how to use arphdr structure. Someone has experience about it? But http://www.openbsd.org/cgi-bin/man.cgi?query=pcapsektion=3apropos=0manpath =OpenBSD+Currentarch=i386 is used for capturing of packets by eg. tcpdump or am I missing something? So probably you want to implement pcap in your app? Thanks in advance. Il 05/04/2011 14:51, Jan Stary ha scritto: On Apr 04 21:03:58, Alessandro Baggi wrote: Hi list. I'm coding a little program with libpcap that captures ARP packet. Why? tcpdump arp In this program I try to cast an B arphdr struct pointer to the packet, to read ARP packet parameters, and in this point I have the problem. tcpdump -e arp If you are sure you need to write your own code for this, look at the source of tcpdump to see how they do it. This is the code of the callback pcap_loop function: void mac(u_char *args, const struct pcap_pkthdr *header, const u_char *packet) { B B B B struct arphdr *arp = NULL; B B B B arp = (struct arphdr *) packet; B B B B printf(%d:%d:%d\n, arp-ar_sha[0], arp-ar_sha[1], arp-ar_sha[2]); B B B B return; } Compiling this source, I get the following error: oad-cap.c: In function 'mac': oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' oad-cap.c:11: error: 'struct arphdr' has no member named 'ar_sha' Now, I've seen in /usr/include/net/if_arp.h and get: struct B arphdr { B B B B u_int16_t ar_hrd; B B B /* format of hardware address */ #define ARPHRD_ETHER B B 1 B B B /* ethernet hardware format */ #define ARPHRD_IEEE802 B 6 B B B /* IEEE 802 hardware format */ #define ARPHRD_FRELAY B 15 B B B /* frame relay hardware format */ #define ARPHRD_IEEE1394 24 B B B /* IEEE 1394 (FireWire) hardware format */ B B B B u_int16_t ar_pro; B B B /* format of protocol address */ B B B B u_int8_t B ar_hln; B B B /* length of hardware address */ B B B B u_int8_t B ar_pln; B B B /* length of protocol address */ B B B B u_int16_t ar_op; B B B B /* one of: */ #define ARPOP_REQUEST B 1 B B B /* request to resolve address */ #define ARPOP_REPLY B B 2 B B B /* response to previous request */ #define ARPOP_REVREQUEST 3 B B B /* request protocol address given hardware */ #define ARPOP_REVREPLY B 4 B B B /* response giving protocol address */ #define ARPOP_INVREQUEST 8 B B B /* request to identify peer */ #define ARPOP_INVREPLY B 9 B B B /* response identifying peer */ /* B * The remaining fields are variable in size, B * according to the sizes above. B */ #ifdef COMMENT_ONLY B B B B u_int8_t B ar_sha[]; B B /* sender hardware address */ B B B B u_int8_t B ar_spa[]; B B /* sender protocol address */ B B B B u_int8_t B ar_tha[]; B B /* target hardware address */ B B B B u_int8_t B ar_tpa[]; B B /* target protocol address */ #endif }; I've tried to #define COMMENT_ONLY, with no result. But I think that the solution is not #define COMMENT_ONLY. I've searched on google, same with no result. Someone know what it does depend? Thanks in advance.
Re: new upper limit with BIGMEM
On Tue, Apr 5, 2011 at 7:33 AM, David Gwynne dlgwy...@gmail.com wrote: OpenBSD 4.9-current (GENERIC.MP) #36: Mon Apr 4 09:39:35 EST 2011 d...@hotspare.eait.uq.edu.au:/home/dlg/src/sys/arch/amd64/compile/GENERIC. MP real mem = 137428045824 (131061MB) avail mem = 133755703296 (127559MB) seems to work ok... But have you hit the limit?
Re: new upper limit with BIGMEM
real mem = 137428045824 (131061MB) avail mem = 133755703296 (127559MB) seems to work ok... But have you hit the limit? The sky is the limit, but his is not a flying machine. Miod
Re: new upper limit with BIGMEM
- Original Message - | real mem = 137428045824 (131061MB) | avail mem = 133755703296 (127559MB) | | seems to work ok... | | But have you hit the limit? | | The sky is the limit, but his is not a flying machine. | | Miod Umm, we conquered the skies a while ago. Really the solar system is the limit currently. -- James A. Peltier IT Services - Research Computing Group Simon Fraser University - Burnaby Campus Phone : 778-782-6573 Fax : 778-782-3045 E-Mail : jpelt...@sfu.ca Website : http://www.sfu.ca/itservices http://blogs.sfu.ca/people/jpeltier
Re: Wildest Africa Tour
On Tue, Apr 5, 2011 at 12:37 PM, Kevin Chadwick ma1l1i...@yahoo.co.uk wrote: On Tue, 5 Apr 2011 17:07:07 +0100 Stuart Henderson wrote: Hah, what about the muskrat, or the tiny northern root-vole, with his little banjo and hat made of elastic bands, yeah? Who's representing them, eh? No-one, that's who. I think we need a pinky and the brain or dangermouse cd set. What you gonna do today puffy? Zort!
any progress with X screen resolution on Lemote Fuloong ? ( 2F 6003 )
/mc keep-IT-simple
Re: new upper limit with BIGMEM
On Tue, Apr 05, 2011 at 02:02:10PM -0700, James A. Peltier wrote: - Original Message - | real mem = 137428045824 (131061MB) | avail mem = 133755703296 (127559MB) | | seems to work ok... | | But have you hit the limit? | | The sky is the limit, but his is not a flying machine. | | Miod Umm, we conquered the skies a while ago. Really the solar system is the limit currently. What we, biped? -- His Highness, The Holy Space Kraken -- James A. Peltier IT Services - Research Computing Group Simon Fraser University - Burnaby Campus Phone : 778-782-6573 Fax : 778-782-3045 E-Mail : jpelt...@sfu.ca Website : http://www.sfu.ca/itservices http://blogs.sfu.ca/people/jpeltier
Re: Wildest Africa Tour
On 4/5/11 12:07 PM, Stuart Henderson wrote: On 2011-04-04, Stuart VanZeestua...@datalinesys.com wrote: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. I love animals: I'm always talking about animals, I love 'em. But the thing is that, you know, whenever you see animals on the telly, it's always the show-off animals. Yeah? It's always the leopards and panthers and crocodiles. Lions milling about, going Oh, I'm very good, I'm on everything, and it really makes me annoyed, you know? Because what about the English animals, you know? The British mammals, yeah? Hah, what about the muskrat, or the tiny northern root-vole, with his little banjo and hat made of elastic bands, yeah? Who's representing them, eh? No-one, that's who. Panthers and all... Hmmm, what about the old German Shepherd puffy guys... See the story below and should be in much bigger fonts, but html emails will not pass misc, so part of the punch is missing as well. You will get the picture anyway. (; The squirrel Linux try to be smart,the Panther OS what ever 10.4 I think and the old dog puffy all goes to Africa... Best, Daniel ++ One day an old German Shepherd starts chasing rabbits and before long, discovers that he's lost. Wandering about, he notices a panther heading rapidly in his direction with the intention of having lunch. The old German Shepherd thinks, Oh, oh! I'm in deep s*** now! Noticing some bones on the ground close by, he immediately settles down to chew on the bones with his back to the approaching cat. Just as the panther is about to leap, the old German Shepherd exclaims loudly, Boy, that was one delicious panther! I wonder, if there are any more around here? Hearing this, the young panther halts his attack in mid-strike, a look of terror comes over him and he slinks away into the trees. Whew!, says the panther, That was close! That old German Shepherd nearly had me! Meanwhile, a squirrel who had been watching the whole scene from a nearby tree, figures he can put this knowledge to good use and trade it for protection from the panther. So, off he goes. The squirrel soon catches up with the panther, spills the beans and strikes a deal for himself with the panther The young panther is furious at being made a fool of and says, Here, squirrel, hop on my back and see what's going to happen to that conniving canine! Now, the old German Shepherd sees the panther coming with the squirrel on his back and thinks, What am I going to do now?, but instead of running, the dog sits down with his back to his attackers, pretending he hasn't seen them yet, and just when they get close enough to hear, the old German Shepherd says... Where's that squirrel? I sent him off an hour ago to bring me another panther! Moral of this story... Don't mess with the old dogs... Age and skill will always overcome youth and treachery! BS and brilliance only come with age and experience. If you don't send this to five 'old' friends right away, there will be five fewer people laughing in the world. Of course, I am in no way insinuating that you are old, just 'youthfully challenged'. You did notice the size of the print, didn't you?
Re: Wildest Africa Tour
On 4/5/11 9:07 AM, Stuart Henderson wrote: On 2011-04-04, Stuart VanZeestua...@datalinesys.com wrote: Don't be silly. While Lions do provide excelent physical security they don't provide any data security at all. I love animals: I'm always talking about animals, I love 'em. But the thing is that, you know, whenever you see animals on the telly, it's always the show-off animals. Yeah? It's always the leopards and panthers and crocodiles. Lions milling about, going Oh, I'm very good, I'm on everything, and it really makes me annoyed, you know? Because what about the English animals, you know? The British mammals, yeah? Hah, what about the muskrat, or the tiny northern root-vole, with his little banjo and hat made of elastic bands, yeah? Who's representing them, eh? No-one, that's who. You had a good buildup and even some suspense. Oh what a letdown! What British animals? You've got to be kidding. Isn't everybody over there all civilized an stuff? Take your little poodle and pony show and move it along down the road. Mehma
acpi: hang after n zzz-wake cycles
Hi, I have a Gateway LT31 netbook which sometimes does not wake up after a sleep (zzz). This behavior is not consistent in that it may go for a week (sleep/wake about twice a day) without a problem. Then other times, after a couple of sleep/wake cycles it hangs. What I mean by hangs is, when I press a key (e.g., space bar) to wake the netbook, the power led, which during sleep mode blinks on and off, lights up and remains on, but the system doesn't proceed to wake. Display remains off. Keyboard LEDs do not toggle. Leaving me with the only choice of pressing and holding the power button for four seconds for a hard reboot. I can't imagine how or what info to gather to get help from a developer. So I'm just asking for suggestions how to go about providing more info. Thanks for reading, --patrick OpenBSD 4.9-current (GENERIC) #501: Sun Apr 3 11:11:36 MDT 2011 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 1876754432 (1789MB) avail mem = 1812774912 (1728MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf10d0 (17 entries) bios0: vendor Phoenix Technologies LTD version v1.3201 date 06/18/2009 bios0: Gateway LT31 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG HPET BOOT SLIC acpi0: wakeup devices PB5_(S5) OHC1(S3) OHC2(S3) EHCI(S3) HDAU(S3) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) Processor L110, 1197.21 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: apic clock running at 199MHz ioapic0 at mainbus0: apid 1 pa 0xfec0, version 21, 24 pins acpimcfg0 at acpi0 addr 0xe000, bus 0-8 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PB3_) acpiprt2 at acpi0: bus -1 (PB4_) acpiprt3 at acpi0: bus 3 (PB5_) acpiprt4 at acpi0: bus 4 (PB6_) acpiprt5 at acpi0: bus -1 (PB7_) acpiprt6 at acpi0: bus 9 (P2P_) acpiprt7 at acpi0: bus 1 (AGP_) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2 acpitz0 at acpi0: critical temperature 100 degC acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT1 model UM09B44 serial 210 type LION oem SONY acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibtn2 at acpi0: PWRB acpivideo0 at acpi0: VGA_ acpivout0 at acpivideo0: LCD_ acpivout1 at acpivideo0: CRT1 acpivout2 at acpivideo0: TV__ acpivout3 at acpivideo0: DFP1 pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 ATI RS690 Host rev 0x00 ppb0 at pci0 dev 1 function 0 ATI RS690 PCIE rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 ATI Radeon X1250 IGP rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 5 function 0 ATI RS690 PCIE rev 0x00 pci2 at ppb1 bus 3 re0 at pci2 dev 0 function 0 Realtek 8101E rev 0x02: RTL8102EL (0x2480), apic 1 int 17 (irq 5), address 00:23:8b:ef:3a:a7 rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb2 at pci0 dev 6 function 0 ATI RS690 PCIE rev 0x00 pci3 at ppb2 bus 4 athn0 at pci3 dev 0 function 0 Atheros AR9285 rev 0x01: apic 1 int 18 (irq 11) athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 00:26:5e:0f:bc:3a ahci0 at pci0 dev 18 function 0 ATI SB600 SATA rev 0x00: apic 1 int 22 (irq 11), AHCI 1.1 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: ATA, TOSHIBA MK2555GS, FG00 SCSI3 0/direct fixed sd0: 238475MB, 512 bytes/sec, 488397168 sec total ohci0 at pci0 dev 19 function 0 ATI SB600 USB rev 0x00: apic 1 int 16 (irq 10), version 1.0, legacy support ohci1 at pci0 dev 19 function 1 ATI SB600 USB rev 0x00: apic 1 int 17 (irq 5), version 1.0, legacy support ohci2 at pci0 dev 19 function 3 ATI SB600 USB rev 0x00: apic 1 int 17 (irq 5), version 1.0, legacy support ohci3 at pci0 dev 19 function 4 ATI SB600 USB rev 0x00: apic 1 int 18 (irq 11), version 1.0, legacy support ehci0 at pci0 dev 19 function 5 ATI SB600 USB2 rev 0x00: apic 1 int 19 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 ATI EHCI root hub rev 2.00/1.00 addr 1 piixpm0 at pci0 dev 20 function 0 ATI SBx00 SMBus rev 0x14: SMI iic0 at piixpm0 spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM pciide0 at pci0 dev 20 function 1 ATI SB600 IDE rev 0x00: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility azalia0 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x00: apic 1 int 16 (irq 10) azalia0: codecs: Realtek ALC272 audio0 at azalia0 pcib0 at pci0 dev 20 function 3 ATI SB600 ISA rev 0x00 ppb3 at pci0 dev 20 function 4 ATI SB600 PCI rev 0x00 pci4 at ppb3 bus 9 pchb1 at pci0 dev 24 function 0 AMD AMD64 0Fh