blob: 79f16c58cad6f78b0a9c8d3949aef74f2b4007d6 [file] [log] [blame]
net[shemminger]!shemminger7e7c7372005-01-17 23:32:51 +00001/*
2 * m_pedit_tcp.c packet editor: TCP header
3 *
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.
8 *
Stephen Hemmingerae665a52006-12-05 10:10:22 -08009 * Authors: J Hadi Salim (hadi@cyberus.ca)
10 *
net[shemminger]!shemminger7e7c7372005-01-17 23:32:51 +000011 */
12
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"
25
26static int
Stephen Hemminger32a121c2016-03-21 11:48:36 -070027parse_tcp(int *argc_p, char ***argv_p, struct tc_pedit_sel *sel, struct tc_pedit_key *tkey)
net[shemminger]!shemminger7e7c7372005-01-17 23:32:51 +000028{
29 int res = -1;
30 return res;
31}
32struct m_pedit_util p_pedit_tcp = {
33 NULL,
34 "tcp",
35 parse_tcp,
36};