• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Obtaining Ethernet link speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining Ethernet link speed


  • Subject: Re: Obtaining Ethernet link speed
  • From: Stéphane Sudre <email@hidden>
  • Date: Fri, 2 May 2003 13:45:21 +0200

On vendredi, mai 2, 2003, at 12:21 Europe/Paris, Quinn wrote:

At 12:07 +0200 2/5/03, Stiphane Sudre wrote:
BTW, is there a reason why the ifconfig source code can't compile in Darwin when you're enabling the features to get the link speed?

Dunno. Can you give us a little more information about the compilation errors you're seeing?

To sum-up, the ifconfig project is provided (or was provided when I downloaded it in April 2003) with the media information off (i.e. the media: information is not displayed when you call ifconfig -a)

A little investigation of the source code showed that there was a USE_IF_MEDIA flag to define to get this information in the ifconfig.c file => First conclusion, the version which is shipping with OS X is not using this project settings.

When you define this flag in the ifconfig.c code (I'm doing it at line 96), you're ending with 5 errors and 2 warnings:

ifconfig.c:443: illegal expression, found `{'
ifconfig.c:221: parse error in conditional expression
ifconfig.c:701: warning: redefinition of macro MASK
/usr/include/ppc/param.h:120: warning: this is the location of the previous definition
ifconfig.c:2223: illegal expression, found `if'
ifconfig.c:1111: parse error in conditional expression
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode

(if you just compile the source code without adding the #define, it builds with 4 warnings, 3 of them being a bit big and would not be expected to exist).

=> Second conclusion: either I'm not doing the right thing, or the code is not compiling with the media: info on.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Obtaining Ethernet link speed (From: Quinn <email@hidden>)

  • Prev by Date: Re: OTListen in OS 9
  • Next by Date: Re: URLAccess kURLDisplayProgressFlag issue
  • Previous by thread: Re: Obtaining Ethernet link speed
  • Next by thread: https and self signed certificates?
  • Index(es):
    • Date
    • Thread