[interfaces] Bug dans la transformation mac -> ipv6 quand la mac à plein de zero
This commit is contained in:
parent
05209c72a0
commit
81519e5946
1 changed files with 6 additions and 2 deletions
|
@ -154,10 +154,14 @@ def otherlisteners():
|
|||
dev(iface,'vide')
|
||||
|
||||
def pubip6(If):
|
||||
return "2a01:240:fe3d:4:" + If_Mac[If]
|
||||
if len(If_Mac[If].split(':'))<4: alt = ':'
|
||||
else: alt = ''
|
||||
return "2a01:240:fe3d:4:" + alt + If_Mac[If]
|
||||
|
||||
def admip6(If):
|
||||
return "2a01:240:fe3d:c804:" + If_Mac[If]
|
||||
if len(If_Mac[If].split(':'))<4: alt = ':'
|
||||
else: alt = ''
|
||||
return "2a01:240:fe3d:c804:" + alt + If_Mac[If]
|
||||
|
||||
def pub6(interface, mode = 'serveur'):
|
||||
""" fonction permettant d'ajouter une adressse ipv6 a l'interface donnee en argument.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue