original_docstring: Build IP ACL match data with hexstring format.
  
          :param int proto: protocol number with valid option "x"
          :param str src_ip: source ip address with format of "x.x.x.x"
          :param str dst_ip: destination ip address with format of "x.x.x.x"
          :param int src_port: source port number "x"
          :param int dst_port: destination port number "x"
          
docstring: Build IP ACL match data with hexstring format.
docstring_tokens: Build IP ACL match data with hexstring format .
code: def build_ip_match(proto=0, src_ip='', dst_ip='',
                         src_port=0, dst_port=0):
          """Build IP ACL match data with hexstring format.
  
          :param int proto: protocol number with valid option "x"
          :param str src_ip: source ip address with format of "x.x.x.x"
          :param str dst_ip: destination ip address with format of "x.x.x.x"
          :param int src_port: source port number "x"
          :param int dst_port: destination port number "x"
          """
          if src_ip:
              src_ip = binascii.hexlify(socket.inet_aton(src_ip)).decode('ascii')
          if dst_ip:
              dst_ip = binascii.hexlify(socket.inet_aton(dst_ip)).decode('ascii')
  
          return ('{!s:0>20}{!s:0>12}{!s:0>8}{!s:0>4}{!s:0>4}'.format(
              hex(proto)[2:], src_ip, dst_ip, hex(src_port)[2:],
              hex(dst_port)[2:])).rstrip('0')
code_tokens: def build_ip_match ( proto = 0 , src_ip = '' , dst_ip = '' , src_port = 0 , dst_port = 0 ) : if src_ip : src_ip = binascii . hexlify ( socket . inet_aton ( src_ip ) ) . decode ( 'ascii' ) if dst_ip : dst_ip = binascii . hexlify ( socket . inet_aton ( dst_ip ) ) . decode ( 'ascii' ) return ( '{!s:0>20}{!s:0>12}{!s:0>8}{!s:0>4}{!s:0>4}' . format ( hex ( proto ) [ 2 : ] , src_ip , dst_ip , hex ( src_port ) [ 2 : ] , hex ( dst_port ) [ 2 : ] ) ) . rstrip ( '0' )
short_docstring: Build IP ACL match data with hexstring format.
short_docstring_tokens: Build IP ACL match data with hexstring format .
comment: """Build IP ACL match data with hexstring format.
  
          :param int proto: protocol number with valid option "x"
          :param str src_ip: source ip address with format of "x.x.x.x"
          :param str dst_ip: destination ip address with format of "x.x.x.x"
          :param int src_port: source port number "x"
          :param int dst_port: destination port number "x"
          """