Strange "loopback device" actions on Mac OS X Leopard

Hi all,
I want to explain my little problem to you, hoping someone can give me an answer:
from about a week I'm trying to develop an application that use pylibpcap (a python extension of pcap library) to sniff packets on a pc on ethernet and examine udp packets sniffed.
This python program works very well on LAN, on two different computers (1Gnu/Linux and 1Mac), but if I try to make it work on loopback device (both server program and client program), some strange things happen.
The client simply do this:
*bunnybox:~ alex$ python*
*Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09)*
*GCC 4.0.1 (Apple Inc. build 5465)] on darwin*
*Type "help", "copyright", "credits" or "license" for more information.*
*>>> import socket*
*>>> s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)*
*>>> s.connect(("127.0.0.1",23))*
*>>> s.send("try to send this")*
16
Listening on loopback device (lo0) with Wireshark (a Sniffer Program), it returns (this is the exported log):
*No. Time Source Destination Protocol Info*
*11 2.840622 127.0.0.1 127.0.0.1 UDP Source port: 49256 Destination port: telnet [UDP CHECKSUM INCORRECT]*
*Frame 11 (48 bytes on wire, 48 bytes captured)*
Null/Loopback
*Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)*
*User Datagram Protocol, Src Port: 49256 (49256), Dst Port: telnet (23)*
*Data (16 bytes)*
*0000 74 72 79 20 74 6f 20 73 65 6e 64 20 74 68 69 73 try to send this*
*As you can see, there is a problem on UDP checksum.*
But if I try the same command on a different computer on my LAN,
for example: a Gnu/Linux Box of Address: 192.168.1.20 (Mac OS X has address: 192.168.1.100),
this is the python code:
*alex@boxxolo ~ $ python*
*Python 2.4.4 (#1, Oct 28 2007, 15:48:55)*
*GCC 4.1.2 (Gentoo 4.1.2)] on linux2*
*Type "help", "copyright", "credits" or "license" for more information.*
*>>> import socket*
*>>> s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)*
*>>> s.connect(("192.168.1.100",23))*
*>>> s.send("try to send this")*
16
and this is the result sniffed by Wireshark on Mac Os X Leopard Computer (this is the exported log):
*No. Time Source Destination Protocol Info*
*4953 57.558319 192.168.1.20 192.168.1.100 UDP Source port: filenet-tms Destination port: telnet*
*Frame 4953 (60 bytes on wire, 60 bytes captured)*
*Ethernet II, Src: 00:e0:18:29:74:28 (00:e0:18:29:74:28), Dst: 00:19:e3:43:85:e8 (00:19:e3:43:85:e8)*
*Internet Protocol, Src: 192.168.1.20 (192.168.1.20), Dst: 192.168.1.100 (192.168.1.100)*
*User Datagram Protocol, Src Port: filenet-tms (32768), Dst Port: telnet (23)*
*Data (16 bytes)*
*0000 74 72 79 20 74 6f 20 73 65 6e 64 20 74 68 69 73 try to send this*
As you can see, no errors on UDP Checksum, datagram correctly received and no problems.
*NOTE: don't care about port 23, because no telnet or other services are listening on it, it's only a closed port.*
I don't know if it's a bug of loopback device (lo0),
or a bug of Python's Socket, or pcap problem..
Hope someone can give me an answer,
PS: If this is not an appropriate place to publish this type of question, please tell me where I can.
Have a nice day,
Alessandro.

Hi,
Have you receive some answers about your problem because I have the same ...
Thanks,
Leyoda

Similar Messages

  • HT3819 For home sharing do you have to use one apple ID? Im trying to make my own new account for all my devices (iphone, ipad, mac) , but i still want the music from my dads account.

    For home sharing do you have to use one apple ID? Im trying to make my own new account for all my devices (iphone, ipad, mac) , but i still want the music from my dads account.

    For home sharing do you have to use one apple ID? Im trying to make my own new account for all my devices (iphone, ipad, mac) , but i still want the music from my dads account.

  • Backing up apps and media from different devices to a mac

    I have two different ios devices, each has different apps installed. Is there an easy way to sync and backup each device separately using a mac. (i.e. if I restore my tablet I don't want to have my iphone apps on my tablet ios device).
    Thanks

    iTunes is making a backup specific to each device automatically.
    Simply plug each device on your Mac and set them up for syncing.  All settings will be specific to the related iOS device.
    If you go in the Device tab of the iTunes preferences, you will be able to see each backup made by iTunes named to your iOS device's name.

  • TS4425 How do you agree to the latest iCloud Terms of Service if you don't have an iOS device only a Mac computer and an Apple TV with an iCloud account?

    How do you agree to the latest iCloud Terms of Service if you don't have an iOS device only a Mac computer and an Apple TV with an iCloud account?

    Part 2
    Thanks for the feedback Skhorchid.  Glad it worked for you too.
    A bit later I discovered that Photo Stream was not working on my Windows 7 PC either.  If I opened the iCloud control panel and put a check in the box to turn on Photo Stream, and then closed and reopened the control panel, the check mark was gone again.  Also, nothing happened when I clicked on the options button beside the Photo Stream check box.  I already had version 2 of the iCloud control panel so I could not upgrade further. 
    I ended up uninstalling the iCloud control panel, rebooting, downloading a fresh copy from Apple, and reinstalling it.  This worked and I now have photo stream working on my Windows 7 system as well.

  • How do i add a bluetooth device to my mac? there is no " " button in my bluetooth preferences and turning the devices to discover mode doesn't work

    How do i add a bluetooth device to my mac?  There is no " +" button in my bluetooth preferences and turning the devices to discover mode doesn't work

    The Bluetooth setup assistant should "find" a device in range when that device is turned on. What are you trying to add?
    Wireless input devices: Bluetooth frequently asked questions ( How do I add or remove a wireless device to or from my Mac (pairing or unpairing)?)
    Barry

  • HT201272 How can I recover a purchased app on one itouch (which has since died) and put it on my new itouch device if I haven't syncronised my old device with my mac/itunes account before it died?

    How can I recover a purchased app on one itouch (which has since died) and put it on my new itouch device if I haven't syncronised my old device with my mac/itunes account before it died?

    It is easy to download items you have purchased from iTunes again; this article will walk you through it: http://support.apple.com/kb/HT2519
    You want the "Apps on iOS" section.

  • My iPod touch does not appear in Devices on my Mac, even though I can see it in iTunes. What to do?

    my iPod touch does not appear in Devices on my Mac, even though I can see it in iTunes. What to do?

    Thank you so much! what a swift reply - I am amazed! but my main problem is trying to transfer an app bought in iTunes to my desktop Mac. I thought 'seeing' the iPod in Devices would make it easier, but I am stuck... Can you help?

  • Hello! I was on my Mac and then I clicked on iTunes. Then I clicked on iTunes, and accidentally removed my device from my Mac, how can I get it back? Also when I plug my iPod into the computer, it downloads everything, how can I stop this. please help!thx

    Hello! I was on my Mac and then I clicked on iTunes. Then I clicked on Account, and accidentally removed my device from my Mac, how can I get it back? Also when I plug my iPod into the computer, it downloads everything that is on my computer, how can I stop this. please help! please help!!!!!!thank you

    Is the iPod still singed into the account isn Settings>iTunes and App Stores and SettingsZ>iCloudl? If it is then I would not be concerned.
    Also see:
    iTunes Store: Associating a device or computer to your Apple ID
    since you may have started the 90 day window.
    For the other "problem", go to iTunes>Preferences>Devices and check the box that says Prevent iPod....automatically syncing.

  • I have a MacBook Pro 15" laptop with Retina running OSX 10.8.5. It will not recognize that my android device (Samsung Galaxy Note3). I am using the standard USB that came out of the box to connect my device to my MAC. Deleted Kies 4 MAC. Help Pls!

    I have a MacBook Pro 15" laptop with Retina running OSX 10.8.5. It will not recognize that my android device (Samsung Galaxy Note3). I am using the standard USB that came out of the box to connect my device to my MAC. Deleted Kies 4 MAC. Help Pls!

    Dee002 wrote:
    MacBook's only have 2.0 USB ports.
    Wrong. 
    If you're not going to provide correct advice then don't repsond at all.
    http://www.apple.com/macbook-pro/specs-retina/

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

  • Is MS exchange the only way to keep mail synced across all devices? Can Mac mail do this without exchange? I have iPhone,iPad and new MacBook Pro, and looking for advice please.

    Is MS exchange the only way to keep mail synced across all devices? Can Mac mail do this without exchange? I have iPhone,iPad and new MacBook Pro, and looking for advice please.

    As Bob says, any iMap service can do this. GMail can, iCLoud mail can too.
    Both of these can be used with Mail on any device.

  • Flood ping of loopback device gives 20% packet loss!

    While trying to diagnose a problem with my Airport Express (high packet loss even with a strong signal), I noticed that my Macbook cannot reliably flood ping its own loopback device!
    bash-3.2$ $ sudo ping -f 127.0.0.1
    PING 127.0.0.1 (127.0.0.1): 56 data bytes
    ....^C
    --- 127.0.0.1 ping statistics ---
    994 packets transmitted, 750 packets received, 24% packet loss
    round-trip min/avg/max/stddev = 0.012/0.017/0.103/0.007 ms
    As the loopback interface is internal, I get precisely the same result whether Airport is turned on or off.
    This seems completely crazy to me! Anyone have any idea what might be going on?
    Message was edited by: zzz Matt Taylor (replaced ping output with one with linebreaks to avoid excessively wide post)

    Can't help you specifically with that, but just last night my Atheros AR5008 adapter starting dropping 40%-80% of the packets to my router. It's unusably slow now. I had this problem with the 2.6.38 kernel and was able to solve it by passing the nohwcrypt option to the ath9k module, but that doesn't work anymore.
    I'm now on the 3.0.4 kernel, Arch x64.  Last updates that MAY be relevant were dbus-sharp, dbus-sharp-glib, and gnutls. I started having problems the day after upgrading these packages.  I'm connecting in 802.11n mode.
    I've been looking for evidence of related bugs but so far nothing. I wonder if this is a broader issue affecting more than just the Atheros or Ralink drivers?
    EDIT: downgrading gnutls from 3.0.3-1 to 3.0.2-1 reduced my packet loss to about 15%, so the internet is now basically usable. I also tried downgrading glib-networking (which I updated to version 2.28.7-5 a few days back), but that didn't seem to help.
    Last edited by rsking84 (2011-09-22 01:32:59)

  • I have a mac os 10.5.8, i want to upgrade to mac os snow leopard, can i keep all my files (documents, music on itunes) without backing up all the files first on a external device prior to the upgrade?

    I have a mac os 10.5.8, i want to upgrade to mac os snow leopard, can i keep all my files (documents, music on itunes) without backing up all the files first on a external device prior to the upgrade?

    I strongly advise against upgrading the OS without first making a backup. Were something to go wrong you would lose all your files without the backup. See:
    How to Install OS X Updates Successfully
    A. Repair the Hard Drive and Permissions:
    Boot from your current OS X Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    C. Important: Please read before installing:
    If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
    You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
    The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade:
    Purchase the Snow Leopard Retail DVD.
    Boot From The OS X Installer Disc:
    Insert OS X Installer Disc into the optical drive.
    Restart the computer.
    Immediately after the chime press and hold down the "C" key.
    Release the key when the spinning gear below the dark gray Apple logo appears.
    Wait for installer to finish loading.
    E. If updating:
    Download and install update(s) 
    Use Software Update, or
    Download standalone updater(s).

  • Since yesterday I have been unable to use FaceTime across all my Apple devices: Iphone 5s, MAC Notebook, and Ipad Mini.  It does not connect nor make the ringing sound. Why is this and how can it be fixed?

    since yesterday I have been unable to use FaceTime across all my Apple devices: Iphone 5s, MAC Notebook, and Ipad Mini.  It does not connect nor make the ringing sound. Why is this and how can it be fixed?

    I am haveing same problem canot find itunes.msi

  • How do I detach a device from my mac?

    How do I detach a device from my mac laptop?

    Since there is no disk mode for the iPod touch like older iPod models used to have, just pull the USB plug or click on the eject button next to your iPod in the device list in iTunes.
    Before you disconnect, make sure there is no sync process started or still going on.

Maybe you are looking for

  • I can't fathom the reasoning behind ID CS5 tables. Can you help?

    I can make ID CS5 tables work, but I don't understand how they work. I should mention that I'm a heavy FrameMaker user, so I'm sure I've got some faulty preconceptions. In FrameMaker, I'm accustomed to using table styles to automate table formatting.

  • Help with creating a price list

    I'm just wondering if anybody could possibly help me when creating a price list?. I'm new to SAP so don't have a great knowledge of it. Our company needs to send out a wholesale price list to customers, however some of the items we stock do not inclu

  • Icloud not on my mac

    I don't have icloud in my system preferences.  It only shows MobileMe in internet and wireless.  I want to get icloud to sync with my iphone and ipad.

  • How can I save music that has been sent to me via email on my iPad.?

    How can I save music to my iPad that has been sent to me in an email? Please help

  • NW711 sapinst error

    I am installing NW711 ABAP+ JAVA  at windows 2003 sqlserver 2005 During Sapinst, i get below error during "UNPACK SAP archives phase" pls find the sapinst.log and sapinst_dev.log SAPinst.log INFO 2009-11-12 18:04:43.843 Output of C:\DOCUME1\ADMINI1.X