int last;
};
-typedef struct BypassedIfaceList_ {
+typedef struct BypassedIfaceList_ {
LiveDevice *dev;
struct BypassedIfaceList_ *next;
} BypassedIfaceList;
return -1;
}
-/**
+/**
* Load a section of an eBPF file
*
* This function loads a section inside an eBPF and return
/**
* Attach a XDP program identified by its file descriptor to a device
- *
+ *
* \param iface the name of interface
* \param fd the eBPF/XDP program file descriptor
- * \param a flag to pass to attach function mostly used to set XDP mode
+ * \param a flag to pass to attach function mostly used to set XDP mode
* \return -1 in case of error, 0 if success
*/
int EBPFSetupXDP(const char *iface, int fd, uint8_t flags)
}
ldev = ldev->next;
}
- /* Call bypass function if ever not in the list */
+ /* Call bypass function if ever not in the list */
p->BypassPacketsFlow(p);
/* Add iface to the list */