Branch Coverage

ARP.xs
Criterion Covered Total %
branch 12 32 37.5


line true false branch
63 0 1 if(uid != 0)
73 0 1 if(!strcmp(type, "request"))
77 1 0 else if(!strcmp(type, "reply"))
81 0 0 else if(!strcmp(type, "revrequest"))
85 0 0 else if(!strcmp(type, "revreply"))
89 0 0 else if(!strcmp(type, "invrequest"))
93 0 0 else if(!strcmp(type, "invreply"))
103 0 1 if(smac == NULL)
109 0 1 if(dmac == NULL)
116 0 1 if(strchr(smac, 36))
122 0 1 if(strchr(dmac, 36))
128 0 1 if(ether_aton(smac) == NULL)
134 0 1 if(ether_aton(dmac) == NULL)
141 0 1 if(inet_addr(sip) == INADDR_NONE)
147 0 1 if(inet_addr(dip) == INADDR_NONE)
154 1 0 if(RETVAL != 0)