Home | History | Annotate | Download | only in scapy

Lines Matching defs:sprintf

1063     def sprintf(self, fmt, relax=1):
1064 """sprintf(format, [relax=1]) -> str
1072 Ex : p.sprintf("%.time% %-15s,IP.src% -> %-15s,IP.dst% %IP.chksum% "
1080 p.sprintf("This is a{TCP: TCP}{UDP: UDP}{ICMP:n ICMP} packet")
1081 p.sprintf("{IP:%IP.dst% {ICMP:%ICMP.type%}{TCP:%TCP.dport%}}")
1099 raise Scapy_Exception("Bad condition in format string: [%s] (read sprintf doc!)"%cond)
1149 val = self.payload.sprintf("%%%s,%s:%s.%s%%" % (f,cls,num-1,fld), relax)
1161 val = self.payload.sprintf("%%%s%%" % sfclsfld, relax)
1308 def sprintf(self, fmt, relax):