// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/* * ibumad BPF sample user side * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * Copyright(c) 2018 Ira Weiny, Intel Corporation
*/
staticvoid usage(char *cmd)
{
printf("eBPF test program to count packets from various IP addresses\n" "Usage: %s \n" " --help, -h this menu\n" " --delay, -d wait sec between prints [1 - 1000000]\n"
, cmd
);
}
int main(int argc, char **argv)
{ struct bpf_program *prog; unsignedlong delay = 5; char filename[256]; int longindex = 0; int opt, err = -1;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.