Tomato 1.28
[tomato.git] / release / src / router / iproute2 / tc / p_udp.c
blob95ed993a878776040c5b5efd2d364d3aa92c6dbf
1 /*
2 * m_pedit_udp.c packet editor: UDP header
4 * This program is free software; you can distribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 * Authors: J Hadi Salim (hadi@cyberus.ca)
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <unistd.h>
16 #include <syslog.h>
17 #include <fcntl.h>
18 #include <sys/socket.h>
19 #include <netinet/in.h>
20 #include <arpa/inet.h>
21 #include <string.h>
22 #include "utils.h"
23 #include "tc_util.h"
24 #include "m_pedit.h"
26 static int
27 parse_udp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey)
29 int res = -1;
30 return res;
33 struct m_pedit_util p_pedit_udp = {
34 NULL,
35 "udp",
36 parse_udp,