Changeset 62 for trunk


Ignore:
Timestamp:
11/22/05 12:22:18 (17 years ago)
Author:
bas
Message:

hexls:

  • Use first element from gethostbyaddr

DEBIAN/control, Changelog:

  • Updated to new version 0.6.3
Location:
trunk/pxeconfig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/Changelog

    r60 r62  
     10.6.3:
     2 - Added hostname lookup feature to hexls. If succes it will display the
     3   HEX address, ip-number, hostname, eg:
     4    C0A811DD => 192.168.17.221 => gb-r13n5.irc.sara.nl
     5
    160.6.2:
    27  - Fixed a bug in the non-interactive mode reported by and fixed
  • trunk/pxeconfig/DEBIAN/control

    r59 r62  
    66Depends: python
    77Architecture: i386
    8 Version: 0.6.1-2
     8Version: 0.6.3-1
    99Description: utilities to boot computers with PXE-enabled network cards
  • trunk/pxeconfig/hexls

    r61 r62  
    3535import string
    3636import re
     37import socket
    3738
    3839def hexls(path):
     
    5051                        hostname = socket.gethostbyaddr(ipaddr)
    5152                        if hostname:
    52                                 print '%s => %s => %s' % (f, ipaddr, hostname)
     53                                print '%s => %s => %s' % (f, ipaddr, hostname[0])
    5354                        else:
    5455                                print '%s => %s' % (f, ipaddr)
Note: See TracChangeset for help on using the changeset viewer.