Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7037135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:30:28+00:00 2026-05-28T01:30:28+00:00

I download the Mac OS network ping source code from Apple: http://www.opensource.apple.com/tarballs/network_cmds/network_cmds-356.8.tar.gz and compile

  • 0

I download the Mac OS network ping source code from Apple: http://www.opensource.apple.com/tarballs/network_cmds/network_cmds-356.8.tar.gz

and compile it in xcode, but get errors in both 10.7 and 10.6,

‘IP_NO_IFT_CELLULAR’ undeclared (first use in this function)
‘SO_TRAFFIC_CLASS’ undeclared (first use in this function)
‘SO_RECV_TRAFFIC_CLASS’ undeclared (first use in this function)
‘SO_TRAFFIC_CLASS’ undeclared (first use in this function)

Did I miss something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:30:29+00:00Added an answer on May 28, 2026 at 1:30 am

    I thought it was possible that you needed to import a networking framework into your project, but Apple doesn’t provide any description or information about the project you’ve downloaded.

    For posterity’s sake:
    To add frameworks, select the project in the top left, then click your target, pick ‘Build Phases’ from the top of the resulting page, ‘Link Binary With Libraries’, ‘+’.

    I finally managed to get it to build after exhaustive googling by adding the following to the ping.c file (the one flagged with the errors):

    #define IP_NO_IFT_CELLULAR  6969 /* for internal use only */
    #define IP_NO_IFT_PDP       IP_NO_IFT_CELLULAR /* deprecated */
    #define SO_TRAFFIC_CLASS        0x1086      /* Traffic class (int)*/
    #define SO_RECV_TRAFFIC_CLASS   0x1087      /* Receive traffic class (bool)*/
    

    Which amusingly came from other open source Apple projects that Google had indexed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I download the cocos2d's package from http://code.google.com/p/cocos2d-iphone/downloads/list . My Mac has already install the
I went to the xdebug site, but I can't find a mac download. http://www.xdebug.org/download.php
I installed Git via the Mac OS X link here http://git-scm.com/download After installing it,
I installed the Aptana plugin (http://download.aptana.com/studio3/plugin/install) in my existing Eclipse installation on my Mac
I am trying to download the source code for wget in Mac. I managed
Hi there I have downloaded the mac installer here, http://www.python.org/download/releases/3.1.2/ , & installed it.
I am trying to download Android source code for Contact,Dialer and CallLog applications from
i download a kml file : <?xml version=1.0 encoding=UTF-8?> <kml xmlns=http://www.opengis.net/kml/2.2> <Document> <Style id=transGreenPoly>
I am trying to download a data file from a local network share to
I'm trying to compile MySQL from source on Mac OS X 10.5. I downloaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.