]>
The Tcpdump Group git mirrors - tcpdump/blob - print-calm-fast.c
2 * Copyright (c) 2013 The TCPDUMP project
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that: (1) source code
6 * distributions retain the above copyright notice and this paragraph
7 * in its entirety, and (2) distributions including binary code include
8 * the above copyright notice and this paragraph in its entirety in
9 * the documentation or other materials provided with the distribution.
10 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
11 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 * FOR A PARTICULAR PURPOSE.
15 * Original code by Ola Martin Lykkja (ola.lykkja@q-free.com)
22 #include <tcpdump-stdinc.h>
28 #include "interface.h"
30 #include "addrtoname.h"
34 Intelligent Transport Systems . Communications access for land mobiles (CALM)
35 CALM non-IP networking
39 * This is the top level routine of the printer. 'bp' points
40 * to the calm header of the packet.
43 calm_fast_print(netdissect_options
*ndo
, const u_char
*eth
, const u_char
*bp
, u_int length
)
45 printf("CALM FAST src:%s; ", etheraddr_string(eth
+6));
52 printf("SrcNwref:%d; ", srcNwref
);
53 printf("DstNwref:%d; ", dstNwref
);
56 default_print(bp
, length
);