Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p_add = raw_input('Vvedite ip address:')
- oct1 = ip_add.split('.')
- #oct2 = int(ip_add.split('.')
- Ioct = int(oct1[0])
- if 0 < Ioct < 224:
- print 'unicast'
- elif 223 < Ioct < 239:
- print 'multicast'
- elif oct1 == ['255','255','255','255']:
- print 'broadcast'
- else:
- print 'unused'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement