| 1 |
/* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 |
/* |
| 3 |
* m_pedit_icmp.c packet editor: ICMP header |
| 4 |
* |
| 5 |
* Authors: J Hadi Salim ([email protected]) |
| 6 |
*/ |
| 7 |
|
| 8 |
#include <stdio.h> |
| 9 |
#include <stdlib.h> |
| 10 |
#include <unistd.h> |
| 11 |
#include <fcntl.h> |
| 12 |
#include <sys/socket.h> |
| 13 |
#include <netinet/in.h> |
| 14 |
#include <arpa/inet.h> |
| 15 |
#include <string.h> |
| 16 |
#include "utils.h" |
| 17 |
#include "tc_util.h" |
| 18 |
#include "m_pedit.h" |
| 19 |
|
| 20 |
|
| 21 |
static int |
| 22 |
parse_icmp(int *argc_p, char ***argv_p, |
| 23 |
struct m_pedit_sel *sel, struct m_pedit_key *tkey) |
| 24 |
{ |
| 25 |
return -1; |
| 26 |
} |
| 27 |
|
| 28 |
struct m_pedit_util p_pedit_icmp = { |
| 29 |
.id = "icmp", |
| 30 |
.parse_peopt = parse_icmp, |
| 31 |
}; |