You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'''Generates a random MAC from a specified vendor name. Takes three parameters. file name, vendor name, and description which is optional. description can be a partial match'''
149
+
'''Generates a random MAC from a specified vendor name. Takes three parameters. file name, vendor name, and description(optional). description can be a partial match'''
150
150
file_lines=generate_mac._read_vid_file(vid_file)
151
151
152
152
line_vendor=""
153
153
vid_bytes=""
154
-
file_desc=""# description from file
154
+
file_desc=""
155
155
rand_line=""
156
156
# If the vendor is not in vendor list, throw an error, otherwise
157
-
# function will hang
158
-
ifvendornotingenerate_mac._valid_vendors:
159
-
raiseKeyError(vendor+" has no associated VID byte in manuf file")
160
-
ifdesc==None:
161
-
whileline_vendor!=vendor:
162
-
# Get a random line from the file, and then proccess
0 commit comments