summaryrefslogtreecommitdiff
path: root/trafgen_l2.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-22 16:23:46 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-22 16:23:46 +0200
commit5f06441c06d46499743689468971ecea9e14f984 (patch)
tree2aa88c575952d4a2ec59d94fd1bc809fc7da33ca /trafgen_l2.c
parentf2478b5dde8fcdfa1bf33065e0e55c4bd181a1d2 (diff)
trafgen: proto: Replace panic() with bug() where applicable
In some cases we use panic() in situations where the error could only happen due to an implementation error. Use bug() there as it is more applicable, as panic() is mainly used to report system call errors. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l2.c')
-rw-r--r--trafgen_l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_l2.c b/trafgen_l2.c
index e6c5b59..316d236 100644
--- a/trafgen_l2.c
+++ b/trafgen_l2.c
@@ -31,7 +31,7 @@ static uint16_t pid_to_eth(enum proto_id pid)
case PROTO_VLAN:
return ETH_P_8021Q;
default:
- panic("eth: Not supported protocol id %u\n", pid);
+ bug();
}
}