tcpdump mailing list archives
Re: [PATCH] enable memory mapped access to ethernet
From: Guy Harris <guy () alum mit edu>
Date: Mon, 10 Dec 2007 13:29:00 -0800
Gianluca Varenni wrote:
why not using a different return value instead of a string message which is human readable but not easily computer readable?
Probably because that's the way that other pcap APIs work. That doesn't mean it's the *right* way to work, it just means it fits in with the way the rest of the library works.
A "next-generation" pcap API should probably work differently, as1) that allows the application to choose how to react to the error (the reaction might be more than just "put up a dialog box");
2) that allows internationalization of the error.(That's why Wireshark's library for reading capture files works that way, although, for some errors, it also provides an additional text string - but that's primarily for the benefit of developers, to give details about the error to help them diagnose the problem, not for the benefit of users, for whom the additional information is probably meaningless.)
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Re: [PATCH] enable memory mapped access to ethernet devices, (continued)
- Re: [PATCH] enable memory mapped access to ethernet devices Abeni Paolo (Dec 05)
- [PATCH] enable memory mapped access to ethernet device for linux Alexander Dupuy (Dec 06)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Guy Harris (Dec 06)
- Re: [PATCH] enable memory mapped access to ethernet Andy Howell (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Gianluca Varenni (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet Matthew Luckie (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Guy Harris (Dec 06)
- Re: [PATCH] enable memory mapped access toethernet device for linux Paolo Abeni (Dec 07)
- [PATCH] enable memory mapped access to ethernet device for linux Alexander Dupuy (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Alexander Dupuy (Dec 10)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Gianluca Varenni (Dec 10)
- Re: [PATCH] enable memory mapped access to ethernet Guy Harris (Dec 10)
- Re: [PATCH] enable memory mapped access to ethernet Gianluca Varenni (Dec 11)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Gianluca Varenni (Dec 10)