Skip to content

Commit

Permalink
NetIO (BSD): remove unnecessary checks
Browse files Browse the repository at this point in the history
Seems...
  • Loading branch information
CarterLi committed Nov 15, 2024
1 parent 9f314a2 commit e5451b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/detection/netio/netio_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const char* ffNetIOGetIoCounters(FFlist* result, FFNetIOOptions* options)

struct sockaddr_dl* sdl = (struct sockaddr_dl*) (ifm + 1);
assert(sdl->sdl_family == AF_LINK);
if (sdl->sdl_type != IFT_ETHER && !(ifm->ifm_flags & IFF_LOOPBACK)) continue;

sdl->sdl_data[sdl->sdl_nlen] = 0;

Expand Down

0 comments on commit e5451b6

Please sign in to comment.