@conf.commands.register
def sendp(x, inter=0, loop=0, iface=None, iface_hint=None, count=None, verbose=None, realtime=None, return_packets=False, *args, **kargs):
 if ((iface is None) and (iface_hint is not None)):
  iface = conf.route.route(iface_hint)[0]
 return __gen_send(conf.L2socket(iface=iface, *args, **kargs), x, inter=inter, loop=loop, count=count, verbose=verbose, realtime=realtime, return_packets=return_packets)

@ conf . commands . register def sendp ( x , inter = 0 , loop = 0 , iface = None , iface_hint = None , count = None , verbose = None , realtime = None , return_packets = False , * args , ** kargs ) : if ( ( iface is None ) and ( iface_hint is not None ) ) : iface = conf . route . route ( iface_hint ) [ 0 ] return __gen_send ( conf . L2socket ( iface = iface , * args , ** kargs ) , x , inter = inter , loop = loop , count = count , verbose = verbose , realtime = realtime , return_packets = return_packets )
send packets at layer 2 sendp -> none .