Raw sockets with IP headers in mac osx

I am trying to send IP packets through a raw socket (SOCK_RAW) on my mac (osx 10.6), and always get an "Invalid Argument" error. I have tried with IPPROTO_RAW, IPPROTO_UDP, and IPPROTO_DIVERT (which should also send raw packets). When using _RAW or _UDP, I also set the socket option for including ip headers with setsockopt(.., IP_HDRINCL, ..). Has anyone successfully sent IP packets with a raw socket on a mac that includes IP headers? Any example code I can use as a reference? Thanks!

Well, in case anyone ever has the same issue, the only way I was able to inject packets back with my own IP headers was by writing to a bpf socket, which is not the prettiest way, but works. I am still interested in seeing IP_HDRINCL work on a raw socket, so if anyone has an example that works, please post!

Similar Messages

  • Cannot use this version of the application with this version of MAC OSX

    When I try to download the new beta, I get a message that says: cannot use this version of the application with this version of MAC OSX
    I'm new to Macs, but I installed all the software updates and that still didn't help. I dont have to buy a new operating system do I?

    Muse requires Mac OS X 10.6 or later.
    http://muse.adobe.com/tech-specs.html

  • I purchased a new airport time capsul to use with my older MacBook Mac OSX 10.6.8 and am having trouble downloading the updated software for it .

    I purchased a new airport time capsul to use with my older MacBook MAC OSX 10.6.8  Can't seem to download the upgraded software.  Can anyone help?

    Please review the System Requirements for the Time Capsule.
    http://www.apple.com/airport-time-capsule/specs/
    Setup and Administration
    iPhone, iPad, or iPod touch with iOS 5 or later and AirPort Utility 1.3
    Mac with OS X Lion v10.7.5 or later and AirPort Utility 6.3

  • Double click to open .sql files with sql developer on mac osx

    hi,
    I am trying to double click a .sql file and open it with SQL Developer on Mac OSX lion. I have associated .sql files to SQL Developer. On clicking the file it opens the SQL developer application but does not open the actual .sql file. Any ideas?
    Thanks

    Hello,
    Did you find any solution to your problem ? My SQL Developer worked fine and could open additional SQL files. Now it only opens the first one when starting SQL Developer. Additionnal files cannot be opened. Even running sqldeveloper.exe from command line with a SQL file as parameter doesn't help.
    I'm on Windows 7, 64 bit, but the environment may not necessarily be the cause.
    Regards
    -- Alwin

  • I have a US Mac living in the UK. I tried to download both the British and American version. Both state "You cannot use the application Firefox with this version of MAC OSX". Any suggestions how to proceed?

    I have a US Mac living in the UK. I tried to download both the British and American version. Both state "You cannot use the application Firefox with this version of MAC OSX". Any suggestions how to proceed?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. You can get the latest version of Firefox 3.6 which works on OS X 10.4 from http://www.mozilla.com/en-US/firefox/all-older.html

  • Disk utility "You can't use this version of the application Disk Utility with this version of Mac OSX. You have Disk Utility 12.1"

    I use mountain lion 10.8.1
    I try start disk utility it only says: "You can't use this version of the application Disk Utility with this version of Mac OSX. You have Disk Utility 12.1"

    To do a Reinstall of the OS boot to the Recovery HD, Command+r key at startup, then select Reinstall Mac OS X. the files will be downloaded from the internet and then the instal will begin.
    With Mt Lion it is also available from the Mac App store in your Purchases area. You may be able to download it and then nmanually starting the install while booted to Mt Lion.
    But I'd normally use the Recovery HD as that takes the installed OS out of the picture.

  • Editing pictures in Bridge (Raw mode) causes severe system failure Mac OSX 10.9.2

    While being busy processing images in Bridge (CS6) Raw Mode, the entire computer locked and the screen went to black. After a restart and reopening, I noticed that all other applications are working properly still. But as soon as I open Bridge and Photoshop in the camera RAW mode, the same system failure returns. Is this a known error? Does anyone know how to solve it?
    Perhaps the prefs should be deleted, but I cannot seem to locate them.
    System: Mac OSX 10.9.2
    Software: Bridge CS6 / Photoshop CS6 / Bridge CC

    In the meanwhile I was able to delete the application's preferences. At first it all seemed to work properly - even in RAW mode. But after a minute still the failure popped up:
    It looks as if the graphics card cannot deal with the App. It looks all twisted, shaky and mixed up. The left part of the screen is on the right side and vice versa. I managed to quit the application and everything returned back to normal.

  • I'm getting the message: Firefox (4.0) is not compatible with this version of MAC OSX (10.4.11); how can I go back to Firefox 3.6?

    Is Firefox 4.0 compatible with Mac OSX 10.4.11?
    If not, is there somewhere I can download the older version of Firefox 3.6 that worked fine with my Mac?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac.
    You can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • SMB Share with Access Based Enumeration & Mac OSX 10.8/10.9

    Hello,
    I've been working on a bit of a problem related to some SMB Shares on Windows Server 2012 with Access Based Enumeration with Mac OSX 10.8 & 10.9.
    Basically, we have one network share that mounts for all of our Students & Faculty on campus. Then, based on which security group the user is inside of in Active Directory, they gain access and visibility to different folders. (Basically, if they are members of the graphic design department, they get access to the Graphic Design's folder). All of that is working fine, no problems. From there we have 3 folders that branch off. We have a Distribution, an Open, and a Dropbox folder.
    Distribution is setup as a spot for instructors to have full access, students have read access, They're able to drop files into this locations, to distribute them to their students. This folder is working fine, no problems.
    Open is setup with everyone read/write access across the board. This folder is setup for students to share data to each other, work on projects, etc. This folder is working as intended, no problems.
    Dropbox is the only folder we're having trouble with, i'm assuming because it's settings are the most complex out of the three. The purpose of the drop box is for students to have read/write control over their own content, but not others, and instructors to have read/write over this entire folder.
    Now that I've laid out our Setup, the problem we've encountered, is ONLY occurring inside of the Dropbox folder. When I try to Drag/Drop OR Copy/Paste from another location on the computer into the Dropbox folder, I get a permission error. HOWEVER, if I have a file open, and I click "save as" browse to the dropbox folder, I can save the file into that location without any trouble. Also, on our windows computers, with the same exact users, drag/drop & Copy/Paste work normally.
    Things I've Tried:
    Disabling the .DS_Store - I figured in the drop box, the .DS_Store would be created by the first user who copied a file in, then subsequent users would not have access to the .DS_Store.
    CIFS/SMB1 - I've read that SMB2 can cause some trouble while connecting to SMB Shares, so I tried both connecting via CIFS, and also by forcing back to SMB1, with no fix.
    Am I missing something with this? I've read a lot about people having trouble connecting to SMB Shares, but for us it had not been a problem up until this point. Does anyone know what a possible fix might be for this? I'm sifting through internet searches right now, trying to find a solution, however MOST of the responses I see are regarding the two things I've already tried.
    Any suggestions would be greatly appreciated.
    Thanks!

    hi everybody
    I really need some help so here is a little up !
    thanks !

  • Printing pdf with Adobe 10 and Mac OSX

    After downloading Adobe Reader 10.0.0 I cannot print pdf files on my Canon MP620 printer. Snow Leopard Mac OSX 10.6.6 is my operating system Error message comes up "pstopdffilter/pstocupsraster failed with err. number 13". Can anyone help please?

    After dealing with this problem for a whole day, this finally solved the problem.  Not sure if it will work for everyone or if I just got lucky.  Either way...
    I threw out all Acrobat preferences (8 and 9).  I uninstalled Acrobat Pro 9.  Opened Acrobat Pro 8 and printed the files.  I then re-installed Pro 9 and with both 8 and 9 open, I was able to print. Now Pro 9 works fine (without having 8 open) Not sure why this worked, since re-installing Acrobat Pro 9 alone didn't fix the problem.
    Hopefully this might work for someone else too.

  • It´s Time Capsule compatible with 10.7.2 Mac OsX Lion and iOS5?

    Hi. I want to buy Time Capsule of 2TB but.. it is compatible with Mac OSX Lion MacBook Pro Middle 2009 and with my iPhone 4 iOS5?

    As far as backing up your Mac, yes it is. Time Capsule serves no purpose as far as backup for the iPhone though. It will give the iPhone a wireless signal though, using dual band technology. iPhone backups must be done through iTunes or iCloud.

  • OpenLDAP Server have Problems with the automounter of Mac OSX 10.5.5 client

    Hi,
    we are using OpenLDAP Server on a Debian OS base. I had connect the LDAP Server with the MACMini with Mac OSX 10.5.5. The LDAP Server is based on OpenLDAP running on Debian Linux.
    The Users can login on the Mac Computers and they do have the right goups. I have a problem with the autompunterMaps because the homes and volumes are not mounted in the Mac environment. So the users have a different home directory at each computer and no volumes to work with.
    The LDIF I use for the automounter is following:
    dn: ou=automaster_directlinx86, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Bielefe
    ld,dc=DE
    ou: automaster_directlinx86
    objectClass: top
    objectClass: automountMap
    dn: cn=\/homes, ou=automaster_directlinx86, ou=autofs, ou=ai,
    dc=TechFak,dc
    =Uni-Bielefeld,dc=DE
    objectClass: automount
    automountInformation:
    ldap:ldap.TechFak.Uni-Bielefeld.DE:ou=auto_homes,ou=aut
    ofs,ou=ai,dc=TechFak,dc=Uni-Bielefeld,dc=DE -nosuid,nobrowse
    cn: /homes
    dn: cn=\/vol, ou=automaster_directlinx86, ou=autofs, ou=ai,
    dc=TechFak,dc=U
    ni-Bielefeld,dc=DE
    objectClass: automount
    automountInformation:
    ldap:ldap.TechFak.Uni-Bielefeld.DE:ou=autovollinx86,o
    u=autofs,ou=ai,dc=TechFak,dc=Uni-Bielefeld,dc=DE
    cn: /vol
    dn: ou=autovollinx86, ou=autofs, ou=ai, dc=TechFak,dc=Uni-Bielefeld,dc=DE
    ou: autovollinx86
    objectClass: automountMap
    dn: cn=ai, ou=autovollinx86, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Bielefeld,
    dc=DE
    objectClass: automount
    automountInformation: -rw,intr,nolock thor:/export/ai/external/vol/&
    cn: ai
    dn: cn=airobots, ou=autovollinx86, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Biel
    efeld,dc=DE
    objectClass: automount
    automountInformation: -rw,intr,nolock thor:/export/ai/external/vol/&
    cn: airobots
    dn: cn=mobirob, ou=autovollinx86, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Biele
    feld,dc=DE
    objectClass: automount
    automountInformation: -rw,intr,nolock thor:/export/ai/external/vol/&
    cn: mobirob
    dn: ou=auto_homes, ou=autofs, ou=ai, dc=TechFak,dc=Uni-Bielefeld,dc=DE
    ou: auto_homes
    objectClass: automountMap
    dn: cn=efrese, ou=auto_homes, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Bielefeld,d
    c=DE
    objectClass: automount
    automountInformation: thor:/export/ai/external/homes/staff/&
    cn: efrese
    dn: cn=fsiepman, ou=auto_homes, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Bielefeld
    ,dc=DE
    objectClass: automount
    automountInformation: thor:/export/ai/external/homes/staff/&
    cn: fsiepman
    dn: cn=fyuan, ou=auto_homes, ou=autofs, ou=ai,
    dc=TechFak,dc=Uni-Bielefeld,dc
    =DE
    objectClass: automount
    automountInformation: thor:/export/ai/external/homes/staff/&
    cn: fyuan
    In the /etc/auto_master I added the line
    SRC base="ou=ai, dc=TechFak,dc=Uni-Bielefeld,dc=DE" scope=ALL
    filter="(&(|(objectClass=automount))"
    to mount the /volumes but just the volume /vol and /homes are mounted to the Mac OS System.
    Thanks.

    Hi.
    Have a look at http://www.afp548.com/article.php?story=20061126220622764
    and there is very good information in Apple's training texts for 10.5 server.
    You can buy the print book or purchase an account with Safari Books in order to read it online,
    see
    http://my.safaribooksonline.com/9780321591067
    Chpt 3 is on working with 3rd-party OpenLDAP servers

  • HT1338 how can i stop recurrent beach balling with iPhoto 11 on mac OSX 10.7.5

    Iphoto 11 keeps beach balling and often takes the whole computer with it. - Mac OSX 10.7.5. I have run the internal iphoto repair database/thumbnail/permissions utility without effect.

    Can anyone tell me if a mac mini with 2 GB of RAM and a 2.4GHz Intel Core 2 Duo processor should be able to run Mac OSX 10.7.5 and iphoto 11? I am thinking I am just short of resources causing recurrent beachballing of iphoto and crashing of the whole computer. I have 133 GB of 320 GB free on the HD. Thanks for any advice.

  • Problem connecting sql developer with a remote database MAc OSX Snow Leopar

    Hi everyone, sorry for my poor english but i don 't speak this language.
    I'm trying to connect Sql develper to a remote database and it does not work, showing this error: The Network Adapter could not establish the connection.
    Before running sql developer i install the oracle instant client and sql plus, i use the same tnsnames.ora file as my windows machine and sqlplus (in snow leopard) connect perfect.
    i set the path of my tnsnames in the setup of sql developer but i can't do it work.
    Anyone can help me please? thanks a lot.

    Duplicate thread Problem running Sql developer in Mac OSX Snow Leopard.

  • TS1572 you can use this version of the application mail with this version of mac osx

    Cannot use this version" alert appears when opening application mail with this version of mac OS X, we seem to have lost our mail and now we get this message.

    Make sure the 4.5 only is in the /Applications folder alone and not inside any enclosing folder, then run the update again. /Applications is inside the main Macintosh HD folder, not in your Home Folder, if you even have one there. Move the other Mail to the Trash for now, but don't empty it yet.
    Link for the update.
    http://support.apple.com/kb/DL1586
    If that doesn't work, move both Mails to the Trash (don't empty yet) and run both updates, the 10.6.8 Combo update (the link for that is in the Apple article) and then the Security update again.

Maybe you are looking for

  • Scheduling Agreement with Delivery Schedule using Idoc messages

    Hi all, Can anybody please explain the importance of the field name "LABKY" in Idoc execution for Forecaste/JIT Delivery Schedule. My requirement is that when i send a new Idoc i do not want the old schedule line which are not yet released , to be de

  • In-store end date for $200 iPhone trade?

    Yesterday I spent over an hour on the phone calling local Verizon corporate stores and speaking with representatives from Verizon's customer support, telesales, and customer care lines. I have heard so many conflicting bits of information about this

  • How to upload Images in Forms 6i

    Dear all, How to upload images in Forms 6i and save it in database. Please anyone help me with example. Thanking you Shekhar

  • Ayuda convertir labview 5.0 a 8.5

    necesito que me ayuden a convertir mis archivos de labview 5.0 a 8.5 gracias de antemano i need to convert from labview 5.0 to 8.5 labview version, i need your help thanks so much!! Attachments: Send to Pic 16f84.VI ‏66 KB serialout1.0.llb ‏199 KB

  • BEA WLS 6.0 Install Error