pktgen.c (96890d62523c2cddc2c053ad29de35c4d935cf11) pktgen.c (57a5749b0fa3639a228d7c0ac080ee1704abe8fd)
1/*
2 * Authors:
3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se>
4 * Uppsala University and
5 * Swedish University of Agricultural Sciences
6 *
7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
8 * Ben Greear <greearb@candelatech.com>

--- 1270 unchanged lines hidden (view full) ---

1279 pkt_dev->flags &= ~F_VID_RND;
1280
1281 else if (strcmp(f, "SVID_RND") == 0)
1282 pkt_dev->flags |= F_SVID_RND;
1283
1284 else if (strcmp(f, "!SVID_RND") == 0)
1285 pkt_dev->flags &= ~F_SVID_RND;
1286
1/*
2 * Authors:
3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se>
4 * Uppsala University and
5 * Swedish University of Agricultural Sciences
6 *
7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
8 * Ben Greear <greearb@candelatech.com>

--- 1270 unchanged lines hidden (view full) ---

1279 pkt_dev->flags &= ~F_VID_RND;
1280
1281 else if (strcmp(f, "SVID_RND") == 0)
1282 pkt_dev->flags |= F_SVID_RND;
1283
1284 else if (strcmp(f, "!SVID_RND") == 0)
1285 pkt_dev->flags &= ~F_SVID_RND;
1286
1287 else if (strcmp(f, "FLOW_SEQ") == 0)
1287 else if (strcmp(f, "FLOW_SEQ") == 0 || strcmp(f, "!FLOW_RND") == 0)
1288 pkt_dev->flags |= F_FLOW_SEQ;
1289
1288 pkt_dev->flags |= F_FLOW_SEQ;
1289
1290 else if (strcmp(f, "FLOW_RND") == 0 || strcmp(f, "!FLOW_SEQ") == 0)
1291 pkt_dev->flags &= ~F_FLOW_SEQ;
1292
1290 else if (strcmp(f, "QUEUE_MAP_RND") == 0)
1291 pkt_dev->flags |= F_QUEUE_MAP_RND;
1292
1293 else if (strcmp(f, "!QUEUE_MAP_RND") == 0)
1294 pkt_dev->flags &= ~F_QUEUE_MAP_RND;
1295
1296 else if (strcmp(f, "QUEUE_MAP_CPU") == 0)
1297 pkt_dev->flags |= F_QUEUE_MAP_CPU;
1298
1299 else if (strcmp(f, "!QUEUE_MAP_CPU") == 0)
1300 pkt_dev->flags &= ~F_QUEUE_MAP_CPU;
1301#ifdef CONFIG_XFRM
1302 else if (strcmp(f, "IPSEC") == 0)
1303 pkt_dev->flags |= F_IPSEC_ON;
1293 else if (strcmp(f, "QUEUE_MAP_RND") == 0)
1294 pkt_dev->flags |= F_QUEUE_MAP_RND;
1295
1296 else if (strcmp(f, "!QUEUE_MAP_RND") == 0)
1297 pkt_dev->flags &= ~F_QUEUE_MAP_RND;
1298
1299 else if (strcmp(f, "QUEUE_MAP_CPU") == 0)
1300 pkt_dev->flags |= F_QUEUE_MAP_CPU;
1301
1302 else if (strcmp(f, "!QUEUE_MAP_CPU") == 0)
1303 pkt_dev->flags &= ~F_QUEUE_MAP_CPU;
1304#ifdef CONFIG_XFRM
1305 else if (strcmp(f, "IPSEC") == 0)
1306 pkt_dev->flags |= F_IPSEC_ON;
1307
1308 else if (strcmp(f, "!IPSEC") == 0)
1309 pkt_dev->flags &= ~F_IPSEC_ON;
1304#endif
1305
1306 else if (strcmp(f, "!IPV6") == 0)
1307 pkt_dev->flags &= ~F_IPV6;
1308
1309 else if (strcmp(f, "NODE_ALLOC") == 0)
1310 pkt_dev->flags |= F_NODE;
1311

--- 2669 unchanged lines hidden ---
1310#endif
1311
1312 else if (strcmp(f, "!IPV6") == 0)
1313 pkt_dev->flags &= ~F_IPV6;
1314
1315 else if (strcmp(f, "NODE_ALLOC") == 0)
1316 pkt_dev->flags |= F_NODE;
1317

--- 2669 unchanged lines hidden ---